mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 13:26:50 +01:00
Bangle.js: add condition "code" to weather JSON
Fixes #2504: Weather: support for language independent condition code or icon name
This commit is contained in:
parent
54749ec9d9
commit
c8ceb4e44d
@ -587,6 +587,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
o.put("t", "weather");
|
o.put("t", "weather");
|
||||||
o.put("temp", weatherSpec.currentTemp);
|
o.put("temp", weatherSpec.currentTemp);
|
||||||
o.put("hum", weatherSpec.currentHumidity);
|
o.put("hum", weatherSpec.currentHumidity);
|
||||||
|
o.put("code", weatherSpec.currentConditionCode);
|
||||||
o.put("txt", weatherSpec.currentCondition);
|
o.put("txt", weatherSpec.currentCondition);
|
||||||
o.put("wind", weatherSpec.windSpeed);
|
o.put("wind", weatherSpec.windSpeed);
|
||||||
o.put("wdir", weatherSpec.windDirection);
|
o.put("wdir", weatherSpec.windDirection);
|
||||||
|
Loading…
Reference in New Issue
Block a user