1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-23 07:11:52 +02:00

Fossil Hybrid HR: Fix weather (unit must be lower case)

This commit is contained in:
Andreas Shimokawa 2020-02-16 13:09:08 +01:00
parent 977e94b359
commit 23cbc2e7f1
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ public class QHybridCoordinator extends AbstractDeviceCoordinator {
@Override @Override
public boolean supportsWeather() { public boolean supportsWeather() {
return false; return true; // FIXME: not for old Q?
} }
@Override @Override

View File

@ -583,7 +583,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
.put("set", new JSONObject() .put("set", new JSONObject()
.put("weatherInfo", new JSONObject() .put("weatherInfo", new JSONObject()
.put("alive", ts + 60 * 60) .put("alive", ts + 60 * 60)
.put("unit", "C") // FIXME: do not hardcode .put("unit", "c") // FIXME: do not hardcode
.put("temp", weatherSpec.currentTemp - 273) .put("temp", weatherSpec.currentTemp - 273)
.put("cond_id", 2) // FIXME do not hardcode 2=cloudy .put("cond_id", 2) // FIXME do not hardcode 2=cloudy
) )