fix #468 MQTT status at sunset

This commit is contained in:
lumapu 2022-12-05 23:16:54 +01:00
parent 3c6e3221e8
commit 9da0fc4058
8 changed files with 222 additions and 138 deletions

View file

@ -134,7 +134,7 @@
e.addEventListener("click", setTime);
}
if(!obj["ts_sun_upd"]) {
if(0 == obj["ts_sunrise"]) {
var e = document.getElementById("sun");
if(null != e)
e.parentNode.removeChild(e);