summaryrefslogtreecommitdiff
path: root/wasp/wasp.py
diff options
context:
space:
mode:
authorTait Berlette <54515877+taitberlette@users.noreply.github.com>2021-08-18 17:13:49 (GMT)
committerDaniel Thompson <daniel.thompson@linaro.org>2021-08-23 19:09:02 (GMT)
commitdc40430faaa5d9911e2dd46c414d790e28560cf8 (patch)
treeb0a18764d0835157111f123ec8f4b2e6007b421b /wasp/wasp.py
parenta28a2cd7f462a217ab5598853835e806c83967f7 (diff)
apps: Fixed weather app with GadgetBridge.
When I created the weather app I didn't have GadgetBridge installed, so I tried to follow the protocol on the [espurino website](https://www.espruino.com/Gadgetbridge), but it wasn't very helpful and I made some mistakes. This commit should fix these mistakes to stop the weather app from crashing, and so it displays the correct values. I have also added a new settings option called "Units", where apps can see what units the user would prefer (metric/imperial). Signed-off-by: Tait Berlette <54515877+taitberlette@users.noreply.github.com>
Diffstat (limited to 'wasp/wasp.py')
-rw-r--r--wasp/wasp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index 541807f..52448b6 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -113,6 +113,7 @@ class Manager():
self.musicstate = {}
self.musicinfo = {}
self.weatherinfo = {}
+ self.units = "Metric"
self._theme = (
b'\x7b\xef' # ble