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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ Adds:
77
77
78
78
* Expiration time span can be set after which the local weather data is considered as invalid
79
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
-
*Forecast weather data can be enabled (this requires other App to use the data, Weather App itself doesn't show the forecast data) (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+)
81
81
* Widget can be hidden
82
82
* To change the units for wind speed, you can install the [`Languages app`](https://banglejs.com/apps/?id=locale) which
83
83
allows you to choose the units used for speed/distance/temperature and so on.
@@ -89,15 +89,17 @@ allows you to choose the units used for speed/distance/temperature and so on.
89
89
90
90
## Weather App API
91
91
92
+
Note: except `getWeather()` and `get()` it is android only for now
93
+
92
94
Weather App can provide weather and forecast data to other Apps.
93
95
94
-
* Get weather data without forecast:
96
+
* Get weather data without forecast/extended:
95
97
```javascript
96
98
constweather=require("weather");
97
99
weatherData =weather.getWeather(false); // or weather.get()
98
100
```
99
101
100
-
* Get weather data with forecast (needs forecast enabled in settings):
102
+
* Get weather data with forecast/extended (needs forecast/extended enabled in settings):
0 commit comments