0.40: Ensure we send health 'activity' message to gadgetbridge (added 2v26)
parent
d20255a544
commit
9caa8e372b
|
|
@ -39,4 +39,5 @@
|
||||||
Allow `calendar-` to take an array of items to remove
|
Allow `calendar-` to take an array of items to remove
|
||||||
0.37: Support Gadgetbridge canned responses
|
0.37: Support Gadgetbridge canned responses
|
||||||
0.38: Don't rewrite settings file on every boot!
|
0.38: Don't rewrite settings file on every boot!
|
||||||
0.39: Move GB message handling into a library to reduce boot time from 40ms->13ms
|
0.39: Move GB message handling into a library to reduce boot time from 40ms->13ms
|
||||||
|
0.40: Ensure we send health 'activity' message to gadgetbridge (added 2v26)
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
setInterval(sendBattery, 10*60*1000);
|
setInterval(sendBattery, 10*60*1000);
|
||||||
// Health tracking - if 'realtime' data is sent with 'rt:1', but let's still send our activity log every 10 mins
|
// Health tracking - if 'realtime' data is sent with 'rt:1', but let's still send our activity log every 10 mins
|
||||||
Bangle.on('health', h=>{
|
Bangle.on('health', h=>{
|
||||||
require("android").gbSend({ t: "act", stp: h.steps, hrm: h.bpm, mov: h.movement });
|
require("android").gbSend({ t: "act", stp: h.steps, hrm: h.bpm, mov: h.movement, act: h.activity }); // h.activity added in 2v26
|
||||||
});
|
});
|
||||||
// Music control
|
// Music control
|
||||||
Bangle.musicControl = cmd => {
|
Bangle.musicControl = cmd => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "android",
|
"id": "android",
|
||||||
"name": "Android Integration",
|
"name": "Android Integration",
|
||||||
"shortName": "Android",
|
"shortName": "Android",
|
||||||
"version": "0.39",
|
"version": "0.40",
|
||||||
"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