Merge branch 'teleinfo-dev' into teleinfo

This commit is contained in:
Charles 2020-06-18 17:12:43 +02:00
commit dc745fc56b
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