Update clkinfo.js

pull/2340/head
Marco H 2022-12-01 15:16:50 +01:00 committed by GitHub
parent dda81fe199
commit d547ec97a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 4 deletions

View File

@ -30,11 +30,18 @@
name: "Weather", name: "Weather",
img: atob("GBiBAf+///u5//n7//8f/9wHP8gDf/gB//AB/7AH/5AcP/AQH/DwD/uAD84AD/4AA/wAAfAAAfAAAfAAAfgAA/////+bP/+zf/+zfw=="), img: atob("GBiBAf+///u5//n7//8f/9wHP8gDf/gB//AB/7AH/5AcP/AQH/DwD/uAD84AD/4AA/wAAfAAAfAAAfAAAfgAA/////+bP/+zf/+zfw=="),
items: [ items: [
{
name: "conditionWithTemperature",
get: () => ({ text: weather.temp, img: weatherIcon(weather.code),
v: parseInt(weather.temp), min: -30, max: 55}),
show: function() { this.emit("redraw"); },
hide: function () {}
},
{ {
name: "condition", name: "condition",
get: () => ({ text: weather.txt, img: weatherIcon(weather.code), get: () => ({ text: weather.txt, img: weatherIcon(weather.code),
v: weather.code}), v: weather.code}),
show: function() { weatherItems.items[0].emit("redraw"); }, show: function() { this.emit("redraw"); },
hide: function () {} hide: function () {}
}, },
{ {
@ -42,7 +49,7 @@
hasRange : true, hasRange : true,
get: () => ({ text: weather.temp, img: atob("GBiBAAA8AAB+AADnAADDAADDAADDAADDAADDAADbAADbAADbAADbAADbAADbAAHbgAGZgAM8wAN+wAN+wAM8wAGZgAHDgAD/AAA8AA=="), get: () => ({ text: weather.temp, img: atob("GBiBAAA8AAB+AADnAADDAADDAADDAADDAADDAADbAADbAADbAADbAADbAADbAAHbgAGZgAM8wAN+wAN+wAM8wAGZgAHDgAD/AAA8AA=="),
v: parseInt(weather.temp), min: -30, max: 55}), v: parseInt(weather.temp), min: -30, max: 55}),
show: function() { weatherItems.items[1].emit("redraw"); }, show: function() { this.emit("redraw"); },
hide: function () {} hide: function () {}
}, },
{ {
@ -50,7 +57,7 @@
hasRange : true, hasRange : true,
get: () => ({ text: weather.hum, img: atob("GBiBAAAEAAAMAAAOAAAfAAAfAAA/gAA/gAI/gAY/AAcfAA+AQA+A4B/A4D/B8D/h+D/j+H/n/D/n/D/n/B/H/A+H/AAH/AAD+AAA8A=="), get: () => ({ text: weather.hum, img: atob("GBiBAAAEAAAMAAAOAAAfAAAfAAA/gAA/gAI/gAY/AAcfAA+AQA+A4B/A4D/B8D/h+D/j+H/n/D/n/D/n/B/H/A+H/AAH/AAD+AAA8A=="),
v: parseInt(weather.hum), min: 0, max: 100}), v: parseInt(weather.hum), min: 0, max: 100}),
show: function() { weatherItems.items[2].emit("redraw"); }, show: function() { this.emit("redraw"); },
hide: function () {} hide: function () {}
}, },
{ {
@ -58,7 +65,7 @@
hasRange : true, hasRange : true,
get: () => ({ text: weather.wind, img: atob("GBiBAAHgAAPwAAYYAAwYAAwMfAAY/gAZh3/xg//hgwAAAwAABg///g//+AAAAAAAAP//wH//4AAAMAAAMAAYMAAYMAAMcAAP4AADwA=="), get: () => ({ text: weather.wind, img: atob("GBiBAAHgAAPwAAYYAAwYAAwMfAAY/gAZh3/xg//hgwAAAwAABg///g//+AAAAAAAAP//wH//4AAAMAAAMAAYMAAYMAAMcAAP4AADwA=="),
v: parseInt(weather.wind), min: 0, max: 118}), v: parseInt(weather.wind), min: 0, max: 118}),
show: function() { weatherItems.items[3].emit("redraw"); }, show: function() { this.emit("redraw"); },
hide: function () {} hide: function () {}
}, },
] ]