Trying to fix the banglejs app store after breaking it with the terminalclock app

pull/1474/head
Stiralbios 2022-02-13 16:21:46 +01:00
parent ef4ac921d3
commit fdbfccda48
10 changed files with 26 additions and 23 deletions

View File

@ -1,21 +0,0 @@
{ "id": "terminal_clock",
"name": "Terminal Clock",
"shortName":"Terminal Clock",
"icon": "icon.png",
"version":"0.01",
"type": "clock",
"supports": ["BANGLEJS","BANGLEJS2"],
"description": "A terminal clock displaying multiple informations",
"storage": [
{"name": "terminal_clock.app.js","url": "app.js"},
{"name": "terminal_clock.settings.js", "url": "settings.js"},
{"name": "terminal_clock.img","url": "app-icon.js","evaluate": true}
],
"data": [
{"name": "terminal_clock.json"},
],
"screenshots": [
{"url": "screenshot1.png"},
{"url": "screenshot2.png"}
]
}

View File

@ -128,7 +128,7 @@ var settings = Object.assign({
showHRM: "Yes", showHRM: "Yes",
showActivity: "Yes", showActivity: "Yes",
showStepCount: "Yes", showStepCount: "Yes",
}, require('Storage').readJSON("terminal_clock.json", true) || {}); }, require('Storage').readJSON("terminalclock.json", true) || {});
// draw immediately at first // draw immediately at first
draw(); draw();
// Show launcher when middle button pressed // Show launcher when middle button pressed

View File

Before

Width:  |  Height:  |  Size: 1022 B

After

Width:  |  Height:  |  Size: 1022 B

View File

@ -0,0 +1,24 @@
{
"id": "terminalclock",
"name": "Terminal Clock",
"shortName":"TerminalClock",
"icon": "app.png",
"version":"0.01",
"type": "clock",
"tags": "clock",
"supports": ["BANGLEJS","BANGLEJS2"],
"description": "A terminal cli like clock displaying multiple sensor data",
"readme": "README.md",
"storage": [
{"name": "terminalclock.app.js","url": "app.js"},
{"name": "terminalclock.settings.js","url": "settings.js"},
{"name": "terminalclock.img","url": "app-icon.js","evaluate": true}
],
"data": [
{"name": "terminalclock.json"},
],
"screenshots": [
{"url": "screenshot1.png"},
{"url": "screenshot2.png"}
]
}

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -1,5 +1,5 @@
(function(back) { (function(back) {
var FILE = "terminal_clock.json"; var FILE = "terminalclock.json";
// Load settings // Load settings
var settings = Object.assign({ var settings = Object.assign({
HRMinConfidence: 40, HRMinConfidence: 40,