mirror of https://github.com/espruino/BangleApps
commit
821a49c834
|
@ -282,7 +282,7 @@
|
||||||
{
|
{
|
||||||
"id": "gbridge",
|
"id": "gbridge",
|
||||||
"name": "Gadgetbridge",
|
"name": "Gadgetbridge",
|
||||||
"version": "0.24",
|
"version": "0.25",
|
||||||
"description": "(NOT RECOMMENDED) Handles Gadgetbridge notifications from Android. This is now replaced by the 'Android' app.",
|
"description": "(NOT RECOMMENDED) Handles Gadgetbridge notifications from Android. This is now replaced by the 'Android' app.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "widget",
|
"type": "widget",
|
||||||
|
|
|
@ -24,3 +24,5 @@
|
||||||
0.22: Respect Quiet Mode
|
0.22: Respect Quiet Mode
|
||||||
0.23: Allow notification dismiss to remove from phone too
|
0.23: Allow notification dismiss to remove from phone too
|
||||||
0.24: tag HRM power requests to allow this to work alongside other widgets/apps (fix #799)
|
0.24: tag HRM power requests to allow this to work alongside other widgets/apps (fix #799)
|
||||||
|
0.25: workaround call notification
|
||||||
|
Fix inflated step number
|
||||||
|
|
|
@ -184,7 +184,7 @@
|
||||||
case "call":
|
case "call":
|
||||||
var note = { size: 55, title: event.name, id: "call",
|
var note = { size: 55, title: event.name, id: "call",
|
||||||
body: event.number, icon:require("heatshrink").decompress(atob("jEYwIMJj4CCwACJh4CCCIMOAQMGAQMHAQMDAQMBCIMB4PwgHz/EAn4CBj4CBg4CBgACCAAw="))}
|
body: event.number, icon:require("heatshrink").decompress(atob("jEYwIMJj4CCwACJh4CCCIMOAQMGAQMHAQMDAQMBCIMB4PwgHz/EAn4CBj4CBg4CBgACCAAw="))}
|
||||||
if (event.cmd === "incoming") {
|
if (event.cmd === "incoming" || event.cmd === "") {
|
||||||
require("notify").show(note);
|
require("notify").show(note);
|
||||||
if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) {
|
if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) {
|
||||||
Bangle.buzz();
|
Bangle.buzz();
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
// Send a summary of activity to Gadgetbridge
|
// Send a summary of activity to Gadgetbridge
|
||||||
function sendActivity(hrm) {
|
function sendActivity(hrm) {
|
||||||
var steps = currentSteps - lastSentSteps;
|
var steps = currentSteps - lastSentSteps;
|
||||||
lastSentSteps = 0;
|
lastSentSteps = currentSteps;
|
||||||
gbSend({ t: "act", stp: steps, hrm:hrm });
|
gbSend({ t: "act", stp: steps, hrm:hrm });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue