From 765a683c894b1e09e1aae1c450b48a53db5b54a6 Mon Sep 17 00:00:00 2001 From: Marco H Date: Mon, 29 Nov 2021 10:23:54 +0100 Subject: [PATCH 1/5] Update app.js Improving messages and added Celsius sign --- apps/thermom/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/thermom/app.js b/apps/thermom/app.js index baa38e8ec..971ce8f56 100644 --- a/apps/thermom/app.js +++ b/apps/thermom/app.js @@ -3,9 +3,9 @@ function onTemperature(p) { g.setFont("6x8",2).setFontAlign(0,0); var x = g.getWidth()/2; var y = g.getHeight()/2 + 10; - g.drawString("Temperature", x, y - 45); + g.drawString("Temperature:", x, y - 45); g.setFontVector(70).setFontAlign(0,0); - g.drawString(p.temperature.toFixed(1), x, y); + g.drawString(p.temperature.toFixed(1) + "°C", x, y); } function drawTemperature() { @@ -23,6 +23,6 @@ setInterval(function() { drawTemperature(); }, 20000); drawTemperature(); -E.showMessage("Loading..."); +E.showMessage("Reading temperature..."); Bangle.loadWidgets(); -Bangle.drawWidgets(); \ No newline at end of file +Bangle.drawWidgets(); From cd674865479142016b7cb51844b75fbb7f91305f Mon Sep 17 00:00:00 2001 From: Marco H Date: Mon, 29 Nov 2021 10:25:14 +0100 Subject: [PATCH 2/5] Update ChangeLog --- apps/thermom/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/thermom/ChangeLog b/apps/thermom/ChangeLog index 78fed5826..544382f29 100644 --- a/apps/thermom/ChangeLog +++ b/apps/thermom/ChangeLog @@ -1 +1,2 @@ 0.02: New App! +0.03 Improved messages and added Celsius sign From baba42ae25a9a90cc53aae0d99ad634d7e57df6c Mon Sep 17 00:00:00 2001 From: Marco H Date: Mon, 29 Nov 2021 10:36:31 +0100 Subject: [PATCH 3/5] Fix changelog syntax --- apps/thermom/ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/thermom/ChangeLog b/apps/thermom/ChangeLog index 544382f29..6ab6ba8e5 100644 --- a/apps/thermom/ChangeLog +++ b/apps/thermom/ChangeLog @@ -1,2 +1,2 @@ 0.02: New App! -0.03 Improved messages and added Celsius sign +0.03: Improved messages and added Celsius sign From c9d0a199477bf6c6b39a852c73d71fca666adda2 Mon Sep 17 00:00:00 2001 From: Marco H Date: Mon, 29 Nov 2021 10:40:32 +0100 Subject: [PATCH 4/5] Add space after temperature value Add space after temperature value --- apps/thermom/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/thermom/app.js b/apps/thermom/app.js index 971ce8f56..7eae9b3d4 100644 --- a/apps/thermom/app.js +++ b/apps/thermom/app.js @@ -5,7 +5,7 @@ function onTemperature(p) { var y = g.getHeight()/2 + 10; g.drawString("Temperature:", x, y - 45); g.setFontVector(70).setFontAlign(0,0); - g.drawString(p.temperature.toFixed(1) + "°C", x, y); + g.drawString(p.temperature.toFixed(1) + " °C", x, y); } function drawTemperature() { From 075d7a840ca46181a72da0dc6ba667e64787b950 Mon Sep 17 00:00:00 2001 From: Marco H Date: Mon, 29 Nov 2021 10:43:42 +0100 Subject: [PATCH 5/5] Update apps.json --- apps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps.json b/apps.json index af798e293..43a5c4ac7 100644 --- a/apps.json +++ b/apps.json @@ -3893,8 +3893,8 @@ { "id": "thermom", "name": "Thermometer", - "version": "0.02", - "description": "Displays the current temperature, updated every 20 seconds", + "version": "0.03", + "description": "Displays the current temperature in degree Celsius, updated every 20 seconds", "icon": "app.png", "tags": "tool", "supports": ["BANGLEJS"],