From b99371e2782e71794cdefb28fe134c19f37a5184 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Tue, 5 Jul 2022 17:40:57 +0200 Subject: [PATCH 01/14] Music Messages -> Messages Music --- apps/messagesmusic/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/messagesmusic/README.md b/apps/messagesmusic/README.md index 7aa9209df..8f9c65fa4 100644 --- a/apps/messagesmusic/README.md +++ b/apps/messagesmusic/README.md @@ -8,7 +8,7 @@ It is suggested to use Messages Music along side the app Quick Launch. Messages Music v0.01 has been verified to work with Messages v0.31 on Bangle.js 2 fw2v13. -Music Messages should work with forks of the original Messages app. At least as long as functions pushMessage() in the library and showMusicMessage() in app.js hasn't been changed too much. +Messages Music should work with forks of the original Messages app. At least as long as functions pushMessage() in the library and showMusicMessage() in app.js hasn't been changed too much. Messages app is created by Gordon Williams with contributions from [Jeroen Peters](https://github.com/jeroenpeters1986). From a7f4b8392762e3b472a4f3591e855e8ef1e09f14 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Tue, 5 Jul 2022 18:38:41 +0200 Subject: [PATCH 02/14] Remove unnecessary line of code This change doesn't change functionality of the app. But it does make it compatible with @rigrig's version of the messages app. I think it's something to do with asynchronous code - but I'm really not qualified to say. --- apps/messagesmusic/app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/messagesmusic/app.js b/apps/messagesmusic/app.js index a6f7e075e..27f3f6e4d 100644 --- a/apps/messagesmusic/app.js +++ b/apps/messagesmusic/app.js @@ -1,7 +1,6 @@ let showMusic = () => { Bangle.CLOCK = 1; // To pass condition in messages library require('messages').pushMessage({"t":"add","artist":" ","album":" ","track":" ","dur":0,"c":-1,"n":-1,"id":"music","title":"Music","state":"play","new":true}); - Bangle.CLOCK = undefined; }; var settings = require('Storage').readJSON('messages.settings.json', true) || {}; //read settings if they exist else set to empty dict From 13a79980989ddc718b9a096d48f4f7284bff7e77 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Tue, 5 Jul 2022 18:43:06 +0200 Subject: [PATCH 03/14] Update ChangeLog --- apps/messagesmusic/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/messagesmusic/ChangeLog b/apps/messagesmusic/ChangeLog index 5560f00bc..9f4cafb0e 100644 --- a/apps/messagesmusic/ChangeLog +++ b/apps/messagesmusic/ChangeLog @@ -1 +1,2 @@ 0.01: New App! +0.02: Remove one line of code that didn't do anything other than in some instances hinder the function of the app. From 39a792d9ef70c3db83272b681861f6904c51c527 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Tue, 5 Jul 2022 18:43:33 +0200 Subject: [PATCH 04/14] Update metadata.json --- apps/messagesmusic/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/messagesmusic/metadata.json b/apps/messagesmusic/metadata.json index edc6835ed..c29ffbc34 100644 --- a/apps/messagesmusic/metadata.json +++ b/apps/messagesmusic/metadata.json @@ -1,7 +1,7 @@ { "id": "messagesmusic", "name":"Messages Music", - "version":"0.01", + "version":"0.02", "description": "Uses Messages library to push a music message which in turn displays Messages app music controls", "icon":"app.png", "type": "app", From 8c6bfd96c6774e9d21c85e3ff8b8df933c72d97a Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Tue, 5 Jul 2022 18:50:34 +0200 Subject: [PATCH 05/14] tested with messages v0.41 fw2v14 --- apps/messagesmusic/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/messagesmusic/README.md b/apps/messagesmusic/README.md index 8f9c65fa4..85608118d 100644 --- a/apps/messagesmusic/README.md +++ b/apps/messagesmusic/README.md @@ -6,7 +6,7 @@ Making the music controls accessible this way lets one start a music stream on t It is suggested to use Messages Music along side the app Quick Launch. -Messages Music v0.01 has been verified to work with Messages v0.31 on Bangle.js 2 fw2v13. +Messages Music v0.02 has been verified to work with Messages v0.41 on Bangle.js 2 fw2v14. Messages Music should work with forks of the original Messages app. At least as long as functions pushMessage() in the library and showMusicMessage() in app.js hasn't been changed too much. From b00c6e48c4a989ba8d6ba1766328b9ca957fd397 Mon Sep 17 00:00:00 2001 From: Leon Matthes Date: Tue, 5 Jul 2022 23:14:19 +0200 Subject: [PATCH 06/14] Fix "Vibrate: off" being ignored by messages app --- apps/messages/ChangeLog | 3 ++- apps/messages/metadata.json | 2 +- apps/messages/widget.js | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/messages/ChangeLog b/apps/messages/ChangeLog index 14f667ad7..9476f172d 100644 --- a/apps/messages/ChangeLog +++ b/apps/messages/ChangeLog @@ -53,4 +53,5 @@ 0.38: Add telegram foss handling 0.39: Set default color for message icons according to theme 0.40: Use default Bangle formatter for booleans -0.41: Add notification icons in the widget \ No newline at end of file +0.41: Add notification icons in the widget +0.42: Fix messages ignoring "Vibrate: Off" setting diff --git a/apps/messages/metadata.json b/apps/messages/metadata.json index a423ecafb..e5a68a8e6 100644 --- a/apps/messages/metadata.json +++ b/apps/messages/metadata.json @@ -1,7 +1,7 @@ { "id": "messages", "name": "Messages", - "version": "0.41", + "version": "0.42", "description": "App to display notifications from iOS and Gadgetbridge/Android", "icon": "app.png", "type": "app", diff --git a/apps/messages/widget.js b/apps/messages/widget.js index 13eb1c0ef..f7d581ad9 100644 --- a/apps/messages/widget.js +++ b/apps/messages/widget.js @@ -62,7 +62,9 @@ draw:function(recall) { Bangle.drawWidgets(); },buzz:function() { if ((require('Storage').readJSON('setting.json',1)||{}).quiet) return; // never buzz during Quiet Mode - require("buzz").pattern((require('Storage').readJSON("messages.settings.json", true) || {}).vibrate || ":"); + var pattern = (require('Storage').readJSON("messages.settings.json", true) || {}).vibrate; + if (pattern === undefined) { pattern = ":"; } // pattern may be "", so we can't use || ":" here + require("buzz").pattern(pattern); },touch:function(b,c) { var w=WIDGETS["messages"]; if (!w||!w.width||c.xw.x+w.width||c.yw.y+w.iconwidth) return; From b615abd9b68d822097bdb7f3a0d436aacf5f847e Mon Sep 17 00:00:00 2001 From: buergi Date: Tue, 5 Jul 2022 23:48:24 +0200 Subject: [PATCH 07/14] Fixed existance of multiple change logs with different cases --- apps/UI4swatch/{Changelog => ChangeLog} | 0 apps/color_catalog/{Changelog => ChangeLog} | 0 apps/gpstouch/ChangeLog | 4 ++-- apps/gpstouch/Changelog | 2 -- apps/sonicclk/ChangeLog | 8 ++++++-- apps/sonicclk/Changelog | 6 ------ 6 files changed, 8 insertions(+), 12 deletions(-) rename apps/UI4swatch/{Changelog => ChangeLog} (100%) rename apps/color_catalog/{Changelog => ChangeLog} (100%) delete mode 100644 apps/gpstouch/Changelog delete mode 100644 apps/sonicclk/Changelog diff --git a/apps/UI4swatch/Changelog b/apps/UI4swatch/ChangeLog similarity index 100% rename from apps/UI4swatch/Changelog rename to apps/UI4swatch/ChangeLog diff --git a/apps/color_catalog/Changelog b/apps/color_catalog/ChangeLog similarity index 100% rename from apps/color_catalog/Changelog rename to apps/color_catalog/ChangeLog diff --git a/apps/gpstouch/ChangeLog b/apps/gpstouch/ChangeLog index e0cd31e10..e4a0bdfe8 100644 --- a/apps/gpstouch/ChangeLog +++ b/apps/gpstouch/ChangeLog @@ -1,2 +1,2 @@ -0.01: New App!... -0.02: First update with ChangeLog Added +0.01: First version +0.02: Enchanced contrast of icon image diff --git a/apps/gpstouch/Changelog b/apps/gpstouch/Changelog deleted file mode 100644 index e4a0bdfe8..000000000 --- a/apps/gpstouch/Changelog +++ /dev/null @@ -1,2 +0,0 @@ -0.01: First version -0.02: Enchanced contrast of icon image diff --git a/apps/sonicclk/ChangeLog b/apps/sonicclk/ChangeLog index 2e00ef107..5cdaa3764 100644 --- a/apps/sonicclk/ChangeLog +++ b/apps/sonicclk/ChangeLog @@ -1,2 +1,6 @@ -... -0.06: First update with ChangeLog Added +0.01: [MAJOR] Added sonic clock app +0.02: [PATCH] Fixed text alignment issue; Increased acceleration required to activate twist; +0.03: [MINOR] Added settings menu to control twist threshold and LCD Activity +0.04: [PATCH] Call `Bangle.setUI` when exiting settings menu, settings tap moved to top +0.05: [PATCH] Firmware 2v11 - use `wakeOnTwist` rather than manual `setLCDPower`; Reset sonic on `fullReset` +0.06: Use default Bangle formatter for booleans diff --git a/apps/sonicclk/Changelog b/apps/sonicclk/Changelog deleted file mode 100644 index 5cdaa3764..000000000 --- a/apps/sonicclk/Changelog +++ /dev/null @@ -1,6 +0,0 @@ -0.01: [MAJOR] Added sonic clock app -0.02: [PATCH] Fixed text alignment issue; Increased acceleration required to activate twist; -0.03: [MINOR] Added settings menu to control twist threshold and LCD Activity -0.04: [PATCH] Call `Bangle.setUI` when exiting settings menu, settings tap moved to top -0.05: [PATCH] Firmware 2v11 - use `wakeOnTwist` rather than manual `setLCDPower`; Reset sonic on `fullReset` -0.06: Use default Bangle formatter for booleans From a256bbed0095924b761657d23234e8f84396949e Mon Sep 17 00:00:00 2001 From: Marco H Date: Wed, 6 Jul 2022 08:12:33 +0200 Subject: [PATCH 08/14] Use official writing of OpenWeatherMap Short documentation on how to get a OWN API key --- apps/owmweather/README.md | 6 +++--- apps/owmweather/interface.html | 23 +++++++++++++++++++---- apps/owmweather/metadata.json | 4 ++-- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/apps/owmweather/README.md b/apps/owmweather/README.md index 694724c4a..ba0427455 100644 --- a/apps/owmweather/README.md +++ b/apps/owmweather/README.md @@ -1,12 +1,12 @@ -# Open Weather Map weather provider +# OpenWeatherMap weather provider -This updates [Weather](https://banglejs.com/apps/#weather) with data from the Open Weather Map API +This updates [Weather](https://banglejs.com/apps/#weather) with data from the OpenWeatherMap API ## Usage Just install and configure the app. This needs an internet-enabled Gadgetbridge version. Install [My Location](https://banglejs.com/apps/#mylocation) to change the location for the weather requests. -Install one of the text input libraries to modify the API key in the settings +Install one of the text input libraries to set the API key in the app settings or use the web interface. ## Creator diff --git a/apps/owmweather/interface.html b/apps/owmweather/interface.html index f629a5be9..3f9467a83 100644 --- a/apps/owmweather/interface.html +++ b/apps/owmweather/interface.html @@ -2,14 +2,28 @@ - -

Set OWM API key

-

-

+ +

Set OpenWeatherMap (OWM) API key

+

+ +

Where to get your personal API key?

+

Go to https://home.openweathermap.org/users/sign_up and sign up for a free account.
+ After registration you can login and optain your personal API key.

+