1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

WaspOS: add condition code to weather JSON

This commit is contained in:
vanous 2022-02-02 15:43:45 +01:00
parent 1e6cde6790
commit ed1836a2bd

View File

@ -493,6 +493,7 @@ public class WaspOSDeviceSupport 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("loc", weatherSpec.location); o.put("loc", weatherSpec.location);