mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
igpsport: Add iGS800
This commit is contained in:
committed by
José Rebelo
parent
014b180a30
commit
c0bcee6ba7
+44
@@ -0,0 +1,44 @@
|
||||
/* Copyright (C) 2025 Vitaliy Tomin, Thomas Kuehne
|
||||
|
||||
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.igpsport;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class IGPSportiGS800Coordinator extends IGPSportAbstractCoordinator {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(IGPSportiGS800Coordinator.class);
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_igpsport_igs800;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("iGS800");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsWeather(final GBDevice device) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -318,6 +318,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.id115.ID115Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.idasen.IdasenCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportBSC200Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportiGS630Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportiGS800Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.itag.ITagCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.jyou.BFH16DeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.jyou.TeclastH30.TeclastH30Coordinator;
|
||||
@@ -945,6 +946,7 @@ public enum DeviceType {
|
||||
BRAUN_BPW4500(BraunBPW4500DeviceCoordinator.class),
|
||||
IGPSPORT_BSC200(IGPSportBSC200Coordinator.class),
|
||||
IGPSPORT_IGS630(IGPSportiGS630Coordinator.class),
|
||||
IGPSPORT_IGS800(IGPSportiGS800Coordinator.class),
|
||||
TEST(TestDeviceCoordinator.class);
|
||||
|
||||
private DeviceCoordinator coordinator;
|
||||
|
||||
@@ -2252,6 +2252,7 @@
|
||||
<string name="devicetype_atc_ble_oepl" translatable="false">ATC_BLE_OEPL</string>
|
||||
<string name="devicetype_igpsport_bsc200">IGPSPORT BSC200</string>
|
||||
<string name="devicetype_igpsport_igs630">IGPSPORT iGS630</string>
|
||||
<string name="devicetype_igpsport_igs800">IGPSPORT iGS800</string>
|
||||
<string name="task_installing_route">Installing route</string>
|
||||
<string name="route_upload_completed">Route upload completed</string>
|
||||
<string name="route_upload_failed">Route upload failed</string>
|
||||
|
||||
Reference in New Issue
Block a user