weatherclock v0.06

master
lunctis-viribus 2023-02-25 19:17:42 +01:00
parent a414026074
commit fd33d8445e
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
"description": "A clock which displays current weather conditions (requires Gadgetbridge and Weather apps).", "description": "A clock which displays current weather conditions (requires Gadgetbridge and Weather apps).",
"icon": "app.png", "icon": "app.png",
"dependencies": {"weather":"app"}, "dependencies": {"weather":"app"},
"screenshots": [{"url":"screens/screen1.png"}, {"url":"screens/screen2.png"}], "screenshots": [{"url":"screens/screen1.png"}],
"type": "clock", "type": "clock",
"tags": "clock, weather", "tags": "clock, weather",
"supports": ["BANGLEJS","BANGLEJS2"], "supports": ["BANGLEJS","BANGLEJS2"],
@ -15,7 +15,7 @@
"storage": [ "storage": [
{"name":"weatherClock.app.js","url":"app.js"}, {"name":"weatherClock.app.js","url":"app.js"},
{"name":"weatherClock.img","url":"app-icon.js","evaluate":true}, {"name":"weatherClock.img","url":"app-icon.js","evaluate":true},
{"name":"weatherClock.settings.js","url":"weatherClock.settings.js"} {"name":"weatherClock.settings.js","url":"settings.js"}
], ],
"data": [{"name":"weatherClock.json"}] "data": [{"name":"weatherClock.json"}]
} }

View File

@ -25,21 +25,21 @@
E.showMenu({ E.showMenu({
'': { 'title': 'Weather Clock' }, '': { 'title': 'Weather Clock' },
'< Back': back, '< Back': back,
'Show DoW': { 'Day Of Week': {
value: !!s.day, value: !!s.day,
onchange: v => { onchange: v => {
s.day = v; s.day = v;
save(); save();
}, },
}, },
'Show Date': { 'Date': {
value: !!s.date, value: !!s.date,
onchange: v => { onchange: v => {
s.date = v; s.date = v;
save(); save();
}, },
}, },
'Show Wind': { 'Wind Speed': {
value: !!s.wind, value: !!s.wind,
onchange: v => { onchange: v => {
s.wind = v; s.wind = v;