mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
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…
x
Reference in New Issue
Block a user