Merge pull request #3901 from stweedo/ios

ios 0.19: Convert numeric weather values to int from BangleDumpWeather shortcut
master
Gordon Williams 2025-06-23 16:47:35 +01:00 committed by GitHub
commit c95d14be61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -17,3 +17,4 @@
0.16: Always request Current Time service from iOS 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.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`) 0.18: Fix UTF8 conversion (check for `font` library, not `fonts`)
0.19: Convert numeric weather values to int from BangleDumpWeather shortcut

View File

@ -191,6 +191,11 @@ E.on('notify',msg=>{
wdir: d.wdir, wdir: d.wdir,
loc: d.loc 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); require("weather").update(weatherEvent);
NRF.ancsAction(msg.uid, false); NRF.ancsAction(msg.uid, false);
return; return;

View File

@ -1,7 +1,7 @@
{ {
"id": "ios", "id": "ios",
"name": "iOS Integration", "name": "iOS Integration",
"version": "0.18", "version": "0.19",
"description": "Display notifications/music/etc from iOS devices", "description": "Display notifications/music/etc from iOS devices",
"icon": "app.png", "icon": "app.png",
"tags": "tool,system,ios,apple,messages,notifications", "tags": "tool,system,ios,apple,messages,notifications",