You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/weather/README.md
+70-19Lines changed: 70 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
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.
4
4
5
5
It adds a widget with a weather pictogram and the temperature.
6
-
It also adds a ClockInfo list to Bangle.js.
6
+
It also adds a ClockInfo list to Bangle.js.
7
7
You can view the full report through the app:
8
8
9
9

@@ -12,35 +12,35 @@ You can view the full report through the app:
12
12
13
13
Use the iOS shortcut [here](https://www.icloud.com/shortcuts/73be0ce1076446f3bdc45a5707de5c4d). 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.
14
14
15
-
16
15
## Android Setup
17
16
18
-
1. Install [Gadgetbridge for Android](https://f-droid.org/packages/nodomain.freeyourgadget.gadgetbridge/) on your phone.
19
-
2. Set up [Gadgetbridge weather reporting](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather).
20
-
21
-
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
22
-
to `com.espruino.gadgetbridge.banglejs` in the settings of the weather app (`settings -> gadgetbridge support -> package name`).
17
+
1. Install [Gadgetbridge for Android](https://f-droid.org/packages/nodomain.freeyourgadget.gadgetbridge/) on your phone
18
+
2. Set up [Gadgetbridge weather reporting](https://gadgetbridge.org/basics/features/weather/)
23
19
24
20
### Android Weather Apps
25
21
26
-
There are two weather apps for Android that can connect with Gadgetbridge:
22
+
There are multiple weather apps for Android that can connect with Gadgetbridge:
Even though Tiny Weather Forecast Germany is made for Germany, it can be used around the world. To do this:
40
-
40
+
41
41
1. Tap on the three dots in the top right hand corner and go to settings
42
42
2. Go down to Location and tap on the checkbox labeled "Use location services". You may also want to check on the "Check Location checkbox". Alternatively, you may select the "manual" checkbox and choose your location.
43
-
3. Scroll down further to the "other" section and tap "Gadgetbridge support". Then tap on "Enable". You may also choose to tap on "Send current time".
43
+
3. Scroll down further to the "other" section and tap "Gadgetbridge support". Then tap on "Enable". You may also choose to tap on "Send current time".
44
44
4. If you're using the specific Gadgetbridge for Bangle.JS app, you'll want to tap on "Package name." In the dialog box that appears, you'll want to put in "com.espruino.gadgetbridge.banglejs" without the quotes. If you're using the original Gadgetbridge, leave this as the default.
45
45
46
46
### QuickWeather
@@ -51,9 +51,17 @@ If you're using OpenWeatherMap you will need the "One Call By Call" plan, which
51
51
52
52
When you first load QuickWeather, it will take you through the setup process. You will fill out all the required information as well as put your API key in. If you do not have the "One Call By Call", or commonly known as "One Call", API, you will need to sign up for that. QuickWeather will work automatically with both the main version of Gadgetbridge and Gadgetbridge for Bangle.JS.
53
53
54
+
### Breezy Weather
55
+
56
+
Enabling connection to Gadgetbridge:
57
+
58
+
1. Tap on the three dots in the top right hand corner and go to settings
59
+
2. Find "Widgets & Live wallpaper" settings
60
+
3. Under "Data sharing" tap on "Send Gadgetbridge data" and enable for Gadgetbridge flavor you are using
61
+
54
62
### Weather Notification
55
63
56
-
**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.
64
+
**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.
57
65
58
66
## Clock Infos
59
67
@@ -67,7 +75,9 @@ Adds:
67
75
68
76
## Settings
69
77
70
-
* Expiration timespan can be set after which the local weather data is considered as invalid
78
+
* Expiration time span can be set after which the local weather data is considered as invalid
79
+
* Automatic weather data request interval can be set (weather data are pushed to Bangle automatically, but this can help in cases when it fails) (requires Gadgetbridge v0.86+)
80
+
* Extended or forecast weather data can be enabled (this requires other App to use this data, Weather App itself doesn't show the forecast data) (requires Gadgetbridge v0.86+)
71
81
* Widget can be hidden
72
82
* To change the units for wind speed, you can install the [`Languages app`](https://banglejs.com/apps/?id=locale) which
73
83
allows you to choose the units used for speed/distance/temperature and so on.
@@ -76,3 +86,44 @@ allows you to choose the units used for speed/distance/temperature and so on.
76
86
77
87
* BTN2: opens the launcher (Bangle.js 1)
78
88
* BTN: opens the launcher (Bangle.js 2)
89
+
90
+
## Weather App API
91
+
92
+
Note: except `getWeather()` and `get()` it is android only for now
93
+
94
+
Weather App can provide weather and forecast data to other Apps.
95
+
96
+
* Get weather data without forecast/extended:
97
+
```javascript
98
+
constweather=require("weather");
99
+
weatherData =weather.getWeather(false); // or weather.get()
100
+
```
101
+
102
+
* Get weather data with forecast/extended (needs forecast/extended enabled in settings):
103
+
```javascript
104
+
constweather=require("weather");
105
+
weatherData =weather.getWeather(true);
106
+
```
107
+
108
+
* Fetch new data from Gadgetbridge:
109
+
```javascript
110
+
constweather=require("weather");
111
+
weather.updateWeather(false); // Can set to true if we want to ignore debounce
0 commit comments