Merge pull request #3903 from RKBoss6/Weather-Updates

[Weather] Readme edits for easier iOS compatibility, clkinfo tap to open app.
master
Rob Pilling 2025-06-26 17:14:15 +01:00 committed by GitHub
commit 0a9e0a1b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 5 deletions

View File

@ -1,13 +1,15 @@
# Weather # Weather
This allows your Bangle.js to display weather reports from the Gadgetbridge app on an Android phone. 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.
It adds a widget with a weather pictogram and the temperature. It adds a widget with a weather pictogram and the temperature.
It also adds a ClockInfo list to Bangle.js.
You can view the full report through the app: You can view the full report through the app:
![Screenshot](screenshot.png) ![Screenshot](screenshot.png)
## iOS Setup
## Setup 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.
## Android Setup
1. Install [Gadgetbridge for Android](https://f-droid.org/packages/nodomain.freeyourgadget.gadgetbridge/) on your phone. 1. Install [Gadgetbridge for Android](https://f-droid.org/packages/nodomain.freeyourgadget.gadgetbridge/) on your phone.
2. Set up [Gadgetbridge weather reporting](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather). 2. Set up [Gadgetbridge weather reporting](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather).
@ -15,7 +17,7 @@ You can view the full report through the app:
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 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
to `com.espruino.gadgetbridge.banglejs` in the settings of the weather app (`settings -> gadgetbridge support -> package name`). to `com.espruino.gadgetbridge.banglejs` in the settings of the weather app (`settings -> gadgetbridge support -> package name`).
## Android Weather Apps ### Android Weather Apps
There are two weather apps for Android that can connect with Gadgetbridge: There are two weather apps for Android that can connect with Gadgetbridge:
@ -49,11 +51,20 @@ When you first load QuickWeather, it will take you through the setup process. Yo
**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. **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.
## Clock Infos
Tap on any clockInfo when focused to directly open the weather app.
Adds:
* Condition ClockInfo with condition icon
* Temperature ClockInfo with condition icon.
* Wind speed ClockInfo.
* Chance of rain ClockInfo.
* Temperature ClockInfo without condition icon.
## Settings ## Settings
* Expiration timespan can be set after which the local weather data is considered as invalid * Expiration timespan can be set after which the local weather data is considered as invalid
* Widget can be hidden * Widget can be hidden
* To change the units for wind speed, you can install the [`Languages` app](https://banglejs.com/apps/?id=locale) which * To change the units for wind speed, you can install the [`Languages app`](https://banglejs.com/apps/?id=locale) which
allows you to choose the units used for speed/distance/temperature and so on. allows you to choose the units used for speed/distance/temperature and so on.
## Controls ## Controls

View File

@ -50,6 +50,7 @@
weatherLib.on("update", this.updater); weatherLib.on("update", this.updater);
}, },
hide: function () { weatherLib.removeListener("update", this.updater); } hide: function () { weatherLib.removeListener("update", this.updater); }
,run : function() {load("weather.app.js");}
}, },
{ {
name: "condition", name: "condition",
@ -61,6 +62,7 @@
weatherLib.on("update", this.updater); weatherLib.on("update", this.updater);
}, },
hide: function () { weatherLib.removeListener("update", this.updater); } hide: function () { weatherLib.removeListener("update", this.updater); }
,run : function() {load("weather.app.js");}
}, },
{ {
name: "temperature", name: "temperature",
@ -72,6 +74,7 @@
weatherLib.on("update", this.updater); weatherLib.on("update", this.updater);
}, },
hide: function () { weatherLib.removeListener("update", this.updater); } hide: function () { weatherLib.removeListener("update", this.updater); }
,run : function() {load("weather.app.js");}
}, },
{ {
name: "humidity", name: "humidity",
@ -83,6 +86,7 @@
weatherLib.on("update", this.updater); weatherLib.on("update", this.updater);
}, },
hide: function () { weatherLib.removeListener("update", this.updater); } hide: function () { weatherLib.removeListener("update", this.updater); }
,run : function() {load("weather.app.js");}
}, },
{ {
name: "wind", name: "wind",
@ -94,6 +98,7 @@
weatherLib.on("update", this.updater); weatherLib.on("update", this.updater);
}, },
hide: function () { weatherLib.removeListener("update", this.updater); } hide: function () { weatherLib.removeListener("update", this.updater); }
,run : function() {load("weather.app.js");}
}, },
] ]
}; };