mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-14 06:57:17 +02:00
0.7.24
* merge PR #1069 make MqTT client ID configurable * fix #1016, general MqTT status depending on inverter state machine * changed icon for fully available inverter to a filled check mark #1070 * fixed `last_success` update with MqTT #1068 * removed `improv` esp-web-installer script, because it is not fully functional at this time
This commit is contained in:
parent
b586d7e623
commit
85dae3805f
8 changed files with 34 additions and 23 deletions
|
@ -119,10 +119,12 @@
|
|||
function parseIv(obj) {
|
||||
var p = div(["none"]);
|
||||
for(var i of obj) {
|
||||
var icon = iconWarn;
|
||||
var cl = "icon-warn";
|
||||
avail = "";
|
||||
var icon = iconSuccess;
|
||||
var cl = "icon-success";
|
||||
var avail = "";
|
||||
if(false == i["enabled"]) {
|
||||
icon = iconWarn;
|
||||
cl = "icon-warn";
|
||||
avail = "disabled";
|
||||
}
|
||||
else if(false == i["is_avail"]) {
|
||||
|
@ -131,16 +133,14 @@
|
|||
avail = "not yet available";
|
||||
}
|
||||
else if(0 == i["ts_last_success"]) {
|
||||
icon = iconSuccess;
|
||||
avail = "available but no data was received until now";
|
||||
}
|
||||
else {
|
||||
icon = iconSuccess;
|
||||
avail = "available and is ";
|
||||
if(false == i["is_producing"])
|
||||
avail += "not ";
|
||||
else
|
||||
cl = "icon-success";
|
||||
icon = iconSuccessFull;
|
||||
avail += "producing";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue