Merge pull request #3901 from stweedo/ios
ios 0.19: Convert numeric weather values to int from BangleDumpWeather shortcutmaster
commit
c95d14be61
|
|
@ -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
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue