Bug fixes on the terminalclock app

pull/1474/head
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){
if(now.getMinutes() % 10 == 0)
g.clearRect(0, 0, 240, 240);
g.clearRect(0, startY, 240, 240);
}
function drawLine(line, pos){
@ -123,7 +123,7 @@ g.clear();
// load the settings
var settings = Object.assign({
// default values
HRMinConfidence: 40,
HRMinConfidence: 50,
showDate: true,
showHRM: true,
showActivity: true,

View File

@ -7,7 +7,7 @@
"icon": "app.png",
"type": "clock",
"tags": "clock",
"supports": ["BANGLEJS","BANGLEJS2"],
"supports": ["BANGLEJS2"],
"readme": "README.md",
"storage": [
{"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";
// Load settings
var settings = Object.assign({
HRMinConfidence: 40,
HRMinConfidence: 50,
showDate: "Yes",
showHRM: "Yes",
showActivity: "Yes",
@ -18,7 +18,7 @@
"" : { "title" : "Terminal Clock" },
"< Back" : () => back(),
'HR confidence': {
value: 40|settings.HRMinConfidence, // 0| converts undefined to 0
value: 50|settings.HRMinConfidence, // 0| converts undefined to 0
min: 0, max: 100,
onchange: v => {
settings.HRMinConfidence = v;