From 8599d2f8dbc6cf65dcb2e14e0ef6dd5da5b25d77 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Mon, 17 Aug 2020 11:06:16 +0100 Subject: [PATCH] Add wind speed to JSON produced for Bangle.js - fixes https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/1974 --- .../service/devices/banglejs/BangleJSDeviceSupport.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java index d5fac6fa9..8c8afa6de 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java @@ -501,6 +501,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport { o.put("hum", weatherSpec.currentHumidity); o.put("txt", weatherSpec.currentCondition); o.put("wind", weatherSpec.windSpeed); + o.put("wdir", weatherSpec.windDirection); o.put("loc", weatherSpec.location); uartTxJSON("onSendWeather", o); } catch (JSONException e) {