|
|
@ -142,12 +142,12 @@ |
|
|
|
e.addEventListener("click", setTime); |
|
|
|
} |
|
|
|
|
|
|
|
if(obj["ts_sunrise"] > 0) { |
|
|
|
if(obj["disNightComm"]) { |
|
|
|
if(((obj["ts_sunrise"] - obj["ts_offset"]) < obj["ts_now"]) |
|
|
|
&& ((obj["ts_sunset"] + obj["ts_offset"]) > obj["ts_now"])) { |
|
|
|
commInfo = "Polling inverter(s), will stop at sunset " + (new Date((obj["ts_sunset"] + obj["ts_offset"]) * 1000).toLocaleString('de-DE')); |
|
|
|
} |
|
|
|
else if(obj["disNightComm"]) { |
|
|
|
else { |
|
|
|
commInfo = "Night time, inverter polling disabled, "; |
|
|
|
if(obj["ts_now"] > (obj["ts_sunrise"] - obj["ts_offset"])) { |
|
|
|
commInfo += "stopped at " + (new Date((obj["ts_sunset"] + obj["ts_offset"]) * 1000).toLocaleString('de-DE')); |
|
|
|