Add Moyoung KT80 smartwatch

This commit is contained in:
Luis Pabon
2025-06-11 20:58:00 +02:00
committed by Arjan Schrijver
parent fd89a37259
commit a86c552581
3 changed files with 70 additions and 0 deletions
@@ -0,0 +1,67 @@
/* Copyright (C) 2025 Arjan Schrijver
This file is part of Gadgetbridge.
Gadgetbridge is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gadgetbridge is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.moyoung;
import androidx.annotation.DrawableRes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
public class KT80Coordinator extends AbstractMoyoungDeviceCoordinator {
private static final Logger LOG = LoggerFactory.getLogger(KT80Coordinator.class);
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("KT80");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_kt80;
}
@Override
@DrawableRes
public int getDefaultIconResource() {
return R.drawable.ic_device_banglejs;
}
@Override
@DrawableRes
public int getDisabledIconResource() {
return R.drawable.ic_device_banglejs_disabled;
}
@Override
public String getManufacturer() {
return "Unspecified";
}
@Override
public int getMtu() {
return 508;
}
@Override
public boolean supportsCalendarEvents() {
return false;
}
}
@@ -50,6 +50,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.FireBolttTalkCoordin
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.R50ProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.RainbuvvyT97Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ViranC29Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.KT80Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.onemoresonoflow.OneMoreSonoFlowCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.asteroidos.AsteroidOSDeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.bandwpseries.BandWPSeriesDeviceCoordinator;
@@ -683,6 +684,7 @@ public enum DeviceType {
COLMI_V89(ColmiV89Coordinator.class),
MISIRUN_C17(MisirunC17Coordinator.class),
C20(C20Coordinator.class),
KT80(KT80Coordinator.class),
KSIX_VENTURE(KsixVentureCoordinator.class),
FIREBOLTT_TALK(FireBolttTalkCoordinator.class),
VIRAN_C29(ViranC29Coordinator.class),
+1
View File
@@ -2018,6 +2018,7 @@
<string name="devicetype_colmi_v89">Colmi V89</string>
<string name="devicetype_misirun_c17">Misirun C17</string>
<string name="devicetype_c20">C20</string>
<string name="devicetype_kt80">KT80</string>
<string name="devicetype_ksix_venture">KSIX Venture</string>
<string name="devicetype_fireboltt_talk">Fire-Boltt Talk</string>
<string name="devicetype_viran_c29">Viran C29</string>