diff --git a/apps/ios/ChangeLog b/apps/ios/ChangeLog index 904ad1f7d..f16ff9af6 100644 --- a/apps/ios/ChangeLog +++ b/apps/ios/ChangeLog @@ -16,4 +16,5 @@ 0.15: Enable calendar and weather updates via custom notifications (via shortcuts app) 0.16: Always request Current Time service from iOS 0.17: Default to passing full UTF8 strings into messages app (which can now process them with an international font) -0.18: Fix UTF8 conversion (check for `font` library, not `fonts`) \ No newline at end of file +0.18: Fix UTF8 conversion (check for `font` library, not `fonts`) +0.19: Convert numeric weather values to int from BangleDumpWeather shortcut \ No newline at end of file diff --git a/apps/ios/boot.js b/apps/ios/boot.js index fe9cde77d..1054a735f 100644 --- a/apps/ios/boot.js +++ b/apps/ios/boot.js @@ -191,6 +191,11 @@ E.on('notify',msg=>{ wdir: d.wdir, loc: d.loc } + // Convert string fields to numbers for iOS weather shortcut + const numFields = ['code', 'wdir', 'temp', 'hi', 'lo', 'hum', 'wind', 'uv', 'rain']; + numFields.forEach(field => { + if (weatherEvent[field] != null) weatherEvent[field] = +weatherEvent[field]; + }); require("weather").update(weatherEvent); NRF.ancsAction(msg.uid, false); return; diff --git a/apps/ios/metadata.json b/apps/ios/metadata.json index 6efcac15e..03b116640 100644 --- a/apps/ios/metadata.json +++ b/apps/ios/metadata.json @@ -1,7 +1,7 @@ { "id": "ios", "name": "iOS Integration", - "version": "0.18", + "version": "0.19", "description": "Display notifications/music/etc from iOS devices", "icon": "app.png", "tags": "tool,system,ios,apple,messages,notifications",