Skip to content

Commit 0a9e0a1

Browse files
authored
Merge pull request espruino#3903 from RKBoss6/Weather-Updates
[Weather] Readme edits for easier iOS compatibility, clkinfo tap to open app.
2 parents d0e4d34 + fc19684 commit 0a9e0a1

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

apps/weather/README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
# Weather
22

3-
This allows your Bangle.js to display weather reports from the Gadgetbridge app on an Android phone.
3+
This allows your Bangle.js to display weather reports from the Gadgetbridge app for an Android phone, or by using the iOS shortcut below to push weather information.
44

55
It adds a widget with a weather pictogram and the temperature.
6+
It also adds a ClockInfo list to Bangle.js.
67
You can view the full report through the app:
78

89
![Screenshot](screenshot.png)
9-
10-
## Setup
10+
## iOS Setup
11+
Use the iOS shortcut [here](https://www.icloud.com/shortcuts/dbf7159200d945179e0938c15e64f102). The shortcut uses Apple Weather for weather updates, and sends a notification, which is read by Bangle.js. To push weather every hour, or interval, you will need to create a shortcut automation for every time you want to push the weather.
12+
## Android Setup
1113

1214
1. Install [Gadgetbridge for Android](https://f-droid.org/packages/nodomain.freeyourgadget.gadgetbridge/) on your phone.
1315
2. Set up [Gadgetbridge weather reporting](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather).
1416

1517
If using the `Bangle.js Gadgetbridge` app on your phone (as opposed to the standard F-Droid `Gadgetbridge`) you need to set the package name
1618
to `com.espruino.gadgetbridge.banglejs` in the settings of the weather app (`settings -> gadgetbridge support -> package name`).
1719

18-
## Android Weather Apps
20+
### Android Weather Apps
1921

2022
There are two weather apps for Android that can connect with Gadgetbridge:
2123

@@ -49,11 +51,20 @@ When you first load QuickWeather, it will take you through the setup process. Yo
4951

5052
**Note:** at one time, the Weather Notification app also worked with Gadgetbridge. However, many users are reporting it's no longer seeing the OpenWeatherMap API key as valid. The app has not received any updates since August of 2020, and may be unmaintained.
5153

54+
55+
## Clock Infos
56+
Tap on any clockInfo when focused to directly open the weather app.
57+
Adds:
58+
* Condition ClockInfo with condition icon
59+
* Temperature ClockInfo with condition icon.
60+
* Wind speed ClockInfo.
61+
* Chance of rain ClockInfo.
62+
* Temperature ClockInfo without condition icon.
5263
## Settings
5364

5465
* Expiration timespan can be set after which the local weather data is considered as invalid
5566
* Widget can be hidden
56-
* To change the units for wind speed, you can install the [`Languages` app](https://banglejs.com/apps/?id=locale) which
67+
* To change the units for wind speed, you can install the [`Languages app`](https://banglejs.com/apps/?id=locale) which
5768
allows you to choose the units used for speed/distance/temperature and so on.
5869

5970
## Controls

apps/weather/clkinfo.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
weatherLib.on("update", this.updater);
5151
},
5252
hide: function () { weatherLib.removeListener("update", this.updater); }
53+
,run : function() {load("weather.app.js");}
5354
},
5455
{
5556
name: "condition",
@@ -61,6 +62,7 @@
6162
weatherLib.on("update", this.updater);
6263
},
6364
hide: function () { weatherLib.removeListener("update", this.updater); }
65+
,run : function() {load("weather.app.js");}
6466
},
6567
{
6668
name: "temperature",
@@ -72,6 +74,7 @@
7274
weatherLib.on("update", this.updater);
7375
},
7476
hide: function () { weatherLib.removeListener("update", this.updater); }
77+
,run : function() {load("weather.app.js");}
7578
},
7679
{
7780
name: "humidity",
@@ -83,6 +86,7 @@
8386
weatherLib.on("update", this.updater);
8487
},
8588
hide: function () { weatherLib.removeListener("update", this.updater); }
89+
,run : function() {load("weather.app.js");}
8690
},
8791
{
8892
name: "wind",
@@ -94,6 +98,7 @@
9498
weatherLib.on("update", this.updater);
9599
},
96100
hide: function () { weatherLib.removeListener("update", this.updater); }
101+
,run : function() {load("weather.app.js");}
97102
},
98103
]
99104
};

0 commit comments

Comments
 (0)