diff options
| author | Tait Berlette <54515877+taitberlette@users.noreply.github.com> | 2021-08-18 17:13:49 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel.thompson@linaro.org> | 2021-08-23 19:09:02 (GMT) |
| commit | dc40430faaa5d9911e2dd46c414d790e28560cf8 (patch) | |
| tree | b0a18764d0835157111f123ec8f4b2e6007b421b /wasp/boards/simulator/main.py | |
| parent | a28a2cd7f462a217ab5598853835e806c83967f7 (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/boards/simulator/main.py')
| -rw-r--r-- | wasp/boards/simulator/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wasp/boards/simulator/main.py b/wasp/boards/simulator/main.py index 05a9655..e63d469 100644 --- a/wasp/boards/simulator/main.py +++ b/wasp/boards/simulator/main.py @@ -14,10 +14,10 @@ wasp.system.set_music_info({ }) wasp.system.set_weather_info({ - 'temp': '22', - 'hum': '100%', + 'temp': 295, + 'hum': 100, 'txt': 'Cloudy', - 'wind': '25km/h', + 'wind': 25, 'loc': 'Toronto' }) |
