Bug fixes on the terminalclock app

master
Stiralbios 2022-02-15 18:34:43 +01:00
parent 1446533c1d
commit 55430e7135
5 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ function clearField(pos){
function clearWatchIfNeeded(now){ function clearWatchIfNeeded(now){
if(now.getMinutes() % 10 == 0) if(now.getMinutes() % 10 == 0)
g.clearRect(0, 0, 240, 240); g.clearRect(0, startY, 240, 240);
} }
function drawLine(line, pos){ function drawLine(line, pos){
@ -123,7 +123,7 @@ g.clear();
// load the settings // load the settings
var settings = Object.assign({ var settings = Object.assign({
// default values // default values
HRMinConfidence: 40, HRMinConfidence: 50,
showDate: true, showDate: true,
showHRM: true, showHRM: true,
showActivity: true, showActivity: true,

View File

@ -7,7 +7,7 @@
"icon": "app.png", "icon": "app.png",
"type": "clock", "type": "clock",
"tags": "clock", "tags": "clock",
"supports": ["BANGLEJS","BANGLEJS2"], "supports": ["BANGLEJS2"],
"readme": "README.md", "readme": "README.md",
"storage": [ "storage": [
{"name": "terminalclock.app.js","url": "app.js"}, {"name": "terminalclock.app.js","url": "app.js"},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -2,7 +2,7 @@
var FILE = "terminalclock.json"; var FILE = "terminalclock.json";
// Load settings // Load settings
var settings = Object.assign({ var settings = Object.assign({
HRMinConfidence: 40, HRMinConfidence: 50,
showDate: "Yes", showDate: "Yes",
showHRM: "Yes", showHRM: "Yes",
showActivity: "Yes", showActivity: "Yes",
@ -18,7 +18,7 @@
"" : { "title" : "Terminal Clock" }, "" : { "title" : "Terminal Clock" },
"< Back" : () => back(), "< Back" : () => back(),
'HR confidence': { 'HR confidence': {
value: 40|settings.HRMinConfidence, // 0| converts undefined to 0 value: 50|settings.HRMinConfidence, // 0| converts undefined to 0
min: 0, max: 100, min: 0, max: 100,
onchange: v => { onchange: v => {
settings.HRMinConfidence = v; settings.HRMinConfidence = v;