diff --git a/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp b/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp index 287f2da5c..ee228cb3f 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp @@ -176,6 +176,15 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph) else if (toUpper(splitted[1]) == "ENERGY_GJ") { mqttServer_setMeterType("energy", "GJ", "h", "GJ/h"); } + else if (toUpper(splitted[1]) == "TEMPERATURE_C") { + mqttServer_setMeterType("temperature", "°C", "m", "°C/m"); // m = Minutes + } + else if (toUpper(splitted[1]) == "TEMPERATURE_F") { + mqttServer_setMeterType("temperature", "°F", "m", "°F/m"); // m = Minutes + } + else if (toUpper(splitted[1]) == "TEMPERATURE_K") { + mqttServer_setMeterType("temperature", "K", "m", "K/m"); // m = Minutes + } } if ((toUpper(_param) == "CLIENTID") && (splitted.size() > 1)) diff --git a/sd-card/html/edit_config_template.html b/sd-card/html/edit_config_template.html index 535717d6e..291b9bebc 100644 --- a/sd-card/html/edit_config_template.html +++ b/sd-card/html/edit_config_template.html @@ -1166,13 +1166,16 @@