mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-03 03:01:40 +02:00
fix #397 MQTT reports zero values
fix #397 remove "not producing" if not yet available for MQTT and HTML
This commit is contained in:
parent
64fb587cf3
commit
11da974772
2 changed files with 34 additions and 30 deletions
|
@ -153,11 +153,13 @@
|
|||
for(var i of obj) {
|
||||
html += "Inverter #" + i["id"] + ": " + i["name"] + " (v" + i["version"] + ") is ";
|
||||
if(false == i["is_avail"])
|
||||
html += "not ";
|
||||
html += "available and is ";
|
||||
if(false == i["is_producing"])
|
||||
html += "not ";
|
||||
html += "producing\n";
|
||||
html += "not yet available";
|
||||
else {
|
||||
html += "available and is ";
|
||||
if(false == i["is_producing"])
|
||||
html += "not ";
|
||||
html += "producing\n";
|
||||
}
|
||||
|
||||
if(false == i["is_avail"]) {
|
||||
if(i["ts_last_success"] > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue