Merge pull request #1058 from adamschmalhofer/fix-gbridge

Gbridge fixes
pull/1072/head^2
Gordon Williams 2021-12-13 09:09:13 +00:00 committed by GitHub
commit 821a49c834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -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",

View File

@ -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

View File

@ -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 });
} }