Added field to live view which shows amount of eventlog events
This commit is contained in:
parent
d9ecb64a4d
commit
997c54edb4
@ -67,6 +67,12 @@ void WebApiWsLiveClass::loop()
|
||||
addField(root, i, inv, c, FLD_IRR);
|
||||
}
|
||||
|
||||
if (inv->hasChannelFieldValue(CH0, FLD_EVT_LOG)) {
|
||||
root[i][F("events")] = inv->EventLog()->getEntryCount();
|
||||
} else {
|
||||
root[i][F("events")] = -1;
|
||||
}
|
||||
|
||||
if (inv->getLastStatsUpdate() > _newestInverterTimestamp) {
|
||||
_newestInverterTimestamp = inv->getLastStatsUpdate();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user