From bf9f0e4db721e8b5d56517725f4df250dfedf3e3 Mon Sep 17 00:00:00 2001 From: Adam Schmalhofer Date: Wed, 8 Dec 2021 20:38:15 +0100 Subject: [PATCH 1/4] Workaround call notifications with gadgetbridge I have missed a few calls as my watch didn't inform me about them. Using gbdebug it turns out the cmd left empty. --- apps/gbridge/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gbridge/widget.js b/apps/gbridge/widget.js index 53f832b07..dc10587e1 100644 --- a/apps/gbridge/widget.js +++ b/apps/gbridge/widget.js @@ -184,7 +184,7 @@ case "call": var note = { size: 55, title: event.name, id: "call", body: event.number, icon:require("heatshrink").decompress(atob("jEYwIMJj4CCwACJh4CCCIMOAQMGAQMHAQMDAQMBCIMB4PwgHz/EAn4CBj4CBg4CBgACCAAw="))} - if (event.cmd === "incoming") { + if (event.cmd === "incoming" || event.cmd === "") { require("notify").show(note); if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) { Bangle.buzz(); From c88121daf8341392f5b7d59a308ee77a98cd5eaf Mon Sep 17 00:00:00 2001 From: Adam Schmalhofer Date: Wed, 8 Dec 2021 21:05:21 +0100 Subject: [PATCH 2/4] Bumbed gbridge version --- apps.json | 2 +- apps/gbridge/ChangeLog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps.json b/apps.json index e5d6dad8a..611a78923 100644 --- a/apps.json +++ b/apps.json @@ -282,7 +282,7 @@ { "id": "gbridge", "name": "Gadgetbridge", - "version": "0.24", + "version": "0.25", "description": "The default notification handler for Gadgetbridge notifications from Android. This will eventually be replaced by the 'Android' app.", "icon": "app.png", "type": "widget", diff --git a/apps/gbridge/ChangeLog b/apps/gbridge/ChangeLog index fddb1eb80..5a08af49f 100644 --- a/apps/gbridge/ChangeLog +++ b/apps/gbridge/ChangeLog @@ -24,3 +24,4 @@ 0.22: Respect Quiet Mode 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.25: workaround call notification From b99024f9caa9b4fa44a6d9a353734794e6bc075c Mon Sep 17 00:00:00 2001 From: Adam Schmalhofer Date: Thu, 9 Dec 2021 21:14:31 +0100 Subject: [PATCH 3/4] Fix gbridge inflating steps --- apps/gbridge/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gbridge/widget.js b/apps/gbridge/widget.js index dc10587e1..7cb7147ec 100644 --- a/apps/gbridge/widget.js +++ b/apps/gbridge/widget.js @@ -262,7 +262,7 @@ // Send a summary of activity to Gadgetbridge function sendActivity(hrm) { var steps = currentSteps - lastSentSteps; - lastSentSteps = 0; + lastSentSteps = currentSteps; gbSend({ t: "act", stp: steps, hrm:hrm }); } From 8ef3a6a1a6327caeba441a35c3e09b526c6c1d17 Mon Sep 17 00:00:00 2001 From: Adam Schmalhofer Date: Thu, 9 Dec 2021 21:22:44 +0100 Subject: [PATCH 4/4] Updated gbride changelog --- apps/gbridge/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gbridge/ChangeLog b/apps/gbridge/ChangeLog index 5a08af49f..67d421f33 100644 --- a/apps/gbridge/ChangeLog +++ b/apps/gbridge/ChangeLog @@ -25,3 +25,4 @@ 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.25: workaround call notification + Fix inflated step number