Skip to content

Commit 7beae69

Browse files
authored
Merge pull request #3964 from RKBoss6/patch-1
[Weather] Use local units for wind speed
2 parents e3c70df + 1a5eed1 commit 7beae69

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

apps/weather/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@
3232
Add support to automatically fetch weather at time interval defined in settings (requires GadgetBridge version 0.86.0 or higher)
3333
Add button to settings to force fetch weather data (requires GadgetBridge version 0.86.0 or higher)
3434
Add new API to get weather from Weather App for other Apps
35+
0.31: Wind speed clockInfo now shows speed in local units (kph or mph)

apps/weather/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ It adds a widget with a weather pictogram and the temperature.
66
It also adds a ClockInfo list to Bangle.js.
77
You can view the full report through the app:
88

9-
![Screenshot](screenshot.png)
9+
![Screenshot](Screenshot.png)
1010

1111
## iOS Setup
1212

apps/weather/Screenshot.png

21.7 KB
Loading

apps/weather/clkinfo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
weather.feels = require("locale").temp(weather.feels-273.15);
1010
weather.hum = `${weather.hum}%`;
1111
weather.wind = require("locale").speed(weather.wind).match(/^(\D*\d*)(.*)$/);
12-
weather.wind = `${Math.round(weather.wind[1])}kph`;
12+
weather.wind = Math.round(weather.wind[1]) +" "+ weather.wind[2];
13+
1314
} else {
1415
weather = {
1516
temp: "?",

apps/weather/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"id": "weather",
33
"name": "Weather",
4-
"version": "0.30",
4+
"version": "0.31",
55
"description": "Show Gadgetbridge/iOS weather report",
66
"icon": "icon.png",
7-
"screenshots": [{"url":"screenshot.png"}],
7+
"screenshots": [{"url":"Screenshot.png"}],
88
"tags": "widget,outdoors,clkinfo",
99
"supports": ["BANGLEJS","BANGLEJS2"],
1010
"readme": "README.md",

apps/weather/screenshot.png

-4.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)