mirror of https://github.com/arendst/Tasmota.git
Added Load on Telemetry
This commit is contained in:
parent
0c48aa3de3
commit
c9c98a8ce3
|
@ -423,6 +423,11 @@ void TInfoShow(bool json)
|
|||
GetTextIndexed(name, sizeof(name), LABEL_HCHP, kLabel);
|
||||
ResponseAppend_P(PSTR(",\"%s\":\"%u\""),name , atoi(value));
|
||||
}
|
||||
|
||||
if (isousc) {
|
||||
ResponseAppend_P(PSTR(",\"Load\":\"%d\""),(int) ((Energy.current[0]*100.0f) / isousc));
|
||||
}
|
||||
|
||||
#ifdef USE_WEBSERVER
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue