android: Allow alarm enable/disable
parent
2e261b3a56
commit
9c8da97552
|
|
@ -28,3 +28,4 @@
|
||||||
0.27: Issue newline before GB commands (solves issue with console.log and ignored commands)
|
0.27: Issue newline before GB commands (solves issue with console.log and ignored commands)
|
||||||
0.28: Navigation messages no longer launch the Maps view unless they're new
|
0.28: Navigation messages no longer launch the Maps view unless they're new
|
||||||
0.29: Support for http request xpath return format
|
0.29: Support for http request xpath return format
|
||||||
|
0.30: Allow alarm enable/disable
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
var a = require("sched").newDefaultAlarm();
|
var a = require("sched").newDefaultAlarm();
|
||||||
a.id = "gb"+j;
|
a.id = "gb"+j;
|
||||||
a.appid = "gbalarms";
|
a.appid = "gbalarms";
|
||||||
a.on = true;
|
a.on = event.d[j].on !== undefined ? event.d[j].on : true;
|
||||||
a.t = event.d[j].h * 3600000 + event.d[j].m * 60000;
|
a.t = event.d[j].h * 3600000 + event.d[j].m * 60000;
|
||||||
a.dow = ((dow&63)<<1) | (dow>>6); // Gadgetbridge sends DOW in a different format
|
a.dow = ((dow&63)<<1) | (dow>>6); // Gadgetbridge sends DOW in a different format
|
||||||
a.last = last;
|
a.last = last;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "android",
|
"id": "android",
|
||||||
"name": "Android Integration",
|
"name": "Android Integration",
|
||||||
"shortName": "Android",
|
"shortName": "Android",
|
||||||
"version": "0.29",
|
"version": "0.30",
|
||||||
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
|
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,system,messages,notifications,gadgetbridge",
|
"tags": "tool,system,messages,notifications,gadgetbridge",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue