Added Load on Telemetry

This commit is contained in:
Charles 2020-06-18 17:12:23 +02:00
parent 0c48aa3de3
commit c9c98a8ce3
1 changed files with 5 additions and 0 deletions

View File

@ -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