Skip to content

Commit c95d14b

Browse files
authored
Merge pull request #3901 from stweedo/ios
ios 0.19: Convert numeric weather values to int from BangleDumpWeather shortcut
2 parents 07ce498 + 7537dd4 commit c95d14b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

apps/ios/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
0.15: Enable calendar and weather updates via custom notifications (via shortcuts app)
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)
19-
0.18: Fix UTF8 conversion (check for `font` library, not `fonts`)
19+
0.18: Fix UTF8 conversion (check for `font` library, not `fonts`)
20+
0.19: Convert numeric weather values to int from BangleDumpWeather shortcut

apps/ios/boot.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ E.on('notify',msg=>{
191191
wdir: d.wdir,
192192
loc: d.loc
193193
}
194+
// Convert string fields to numbers for iOS weather shortcut
195+
const numFields = ['code', 'wdir', 'temp', 'hi', 'lo', 'hum', 'wind', 'uv', 'rain'];
196+
numFields.forEach(field => {
197+
if (weatherEvent[field] != null) weatherEvent[field] = +weatherEvent[field];
198+
});
194199
require("weather").update(weatherEvent);
195200
NRF.ancsAction(msg.uid, false);
196201
return;

apps/ios/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "ios",
33
"name": "iOS Integration",
4-
"version": "0.18",
4+
"version": "0.19",
55
"description": "Display notifications/music/etc from iOS devices",
66
"icon": "app.png",
77
"tags": "tool,system,ios,apple,messages,notifications",

0 commit comments

Comments
 (0)