mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Add wind speed to JSON produced for Bangle.js - fixes https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/1974
This commit is contained in:
parent
d98f8d7484
commit
8599d2f8db
@ -501,6 +501,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
o.put("hum", weatherSpec.currentHumidity);
|
o.put("hum", weatherSpec.currentHumidity);
|
||||||
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("loc", weatherSpec.location);
|
o.put("loc", weatherSpec.location);
|
||||||
uartTxJSON("onSendWeather", o);
|
uartTxJSON("onSendWeather", o);
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user