mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Fossil Hybrid HR: Fix weather (unit must be lower case)
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user