1
0
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:
Richard de Boer 2021-12-17 19:14:43 +01:00 committed by Gitea
parent 54749ec9d9
commit c8ceb4e44d

View File

@ -587,6 +587,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
o.put("t", "weather");
o.put("temp", weatherSpec.currentTemp);
o.put("hum", weatherSpec.currentHumidity);
o.put("code", weatherSpec.currentConditionCode);
o.put("txt", weatherSpec.currentCondition);
o.put("wind", weatherSpec.windSpeed);
o.put("wdir", weatherSpec.windDirection);