Skip to content

Commit 853e395

Browse files
authored
Merge pull request #3911 from RKBoss6/iosWeatherUpdates
[iOS] Add feels-like value parsing for weather app support
2 parents daafdc8 + 2d8b1e8 commit 853e395

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

apps/ios/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
0.16: Always request Current Time service from iOS
1818
0.17: Default to passing full UTF8 strings into messages app (which can now process them with an international font)
1919
0.18: Fix UTF8 conversion (check for `font` library, not `fonts`)
20-
0.19: Convert numeric weather values to int from BangleDumpWeather shortcut
20+
0.19: Convert numeric weather values to int from BangleDumpWeather shortcut
21+
0.20: Add feels-like temperature data field to weather parsing from BangleDumpWeather shortcut.

apps/ios/boot.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ E.on('notify',msg=>{
180180
let weatherEvent = {
181181
t: "weather",
182182
temp: d.temp,
183+
feels: d.feels,
183184
hi: d.hi,
184185
lo: d.lo,
185186
hum: d.hum,
@@ -192,7 +193,7 @@ E.on('notify',msg=>{
192193
loc: d.loc
193194
}
194195
// Convert string fields to numbers for iOS weather shortcut
195-
const numFields = ['code', 'wdir', 'temp', 'hi', 'lo', 'hum', 'wind', 'uv', 'rain'];
196+
const numFields = ['code', 'wdir', 'temp','feels', 'hi', 'lo', 'hum', 'wind', 'uv', 'rain'];
196197
numFields.forEach(field => {
197198
if (weatherEvent[field] != null) weatherEvent[field] = +weatherEvent[field];
198199
});
@@ -345,4 +346,4 @@ E.emit("ANCS", {
345346
} else {
346347
Bangle.ancsConvertUTF8 = E.asUTF8;
347348
}
348-
}
349+
}

apps/ios/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "ios",
33
"name": "iOS Integration",
4-
"version": "0.19",
5-
"description": "Display notifications/music/etc from iOS devices",
4+
"version": "0.20",
5+
"description": "Display/pull notifications, music, weather, and agenda from iOS devices",
66
"icon": "app.png",
77
"tags": "tool,system,ios,apple,messages,notifications",
88
"dependencies": {"messages":"module"},

0 commit comments

Comments
 (0)