diff --git a/src/CHANGES.md b/src/CHANGES.md index d2170bf1..f248814e 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,7 +1,8 @@ # Development Changes ## 0.8.117 - 2024-05-09 -* fix reboot issue #1607 +* fix reboot issue #1607 #1606 +* fix max temperature tooltip if only one inverter is configured #1605 ## 0.8.116 - 2024-05-05 * calculation of max AC power diff --git a/src/hm/hmInverter.h b/src/hm/hmInverter.h index 2263188c..445a7bab 100644 --- a/src/hm/hmInverter.h +++ b/src/hm/hmInverter.h @@ -234,6 +234,7 @@ class Inverter { initAssignment(&recordAlarm, AlarmData); toRadioId(); curCmtFreq = this->config->frequency; // update to frequency read from settings + resetAlarms(true); } uint8_t getPosByChFld(uint8_t channel, uint8_t fieldId, record_t<> *rec) { @@ -594,8 +595,8 @@ class Inverter { memset(mLastYD, 0, sizeof(float) * 6); if(clear) { - tsMaxAcPower = 0; - tsMaxTemperature = 0; + tsMaxAcPower = *Timestamp; + tsMaxTemperature = *Timestamp; } } diff --git a/src/web/html/style.css b/src/web/html/style.css index 2e83078f..cda2df23 100644 --- a/src/web/html/style.css +++ b/src/web/html/style.css @@ -687,7 +687,7 @@ div.hr { border-radius: 3px; display: inline-block; position: absolute; - transform: translate(-50%,-100%); + transform: translate(-50%,-50%); margin:0 auto; color: var(--fg2); min-width: 100px; diff --git a/src/web/html/visualization.html b/src/web/html/visualization.html index ab909ba1..d1f6ded6 100644 --- a/src/web/html/visualization.html +++ b/src/web/html/visualization.html @@ -55,11 +55,11 @@ ]); } - function numMid(val, unit, des, opt={class: "fs-6"}) { + function numMid(val, unit, des, opt={class: "row"}) { return ml("div", {class: "col-6 col-sm-4 col-md-3 mb-2"}, [ - ml("div", {class: "row"}, + ml("div", opt, ml("div", {class: "col"}, [ - ml("span", opt, String(Math.round(val * 100) / 100)), + ml("span", {class: "fs-6"}, String(Math.round(val * 100) / 100)), ml("span", {class: "fs-8 mx-1"}, unit) ]) ), @@ -147,7 +147,7 @@ ]), ml("div", {class: "hr"}), ml("div", {class: "row mt-2"},[ - numMid(obj.ch[0][11], "W", "{#MAX_AC_POWER}", {class: "fs-6 tooltip", data: maxAcPwrDate}), + numMid(obj.ch[0][11], "W", "{#MAX_AC_POWER}", {class: "row tooltip", data: maxAcPwrDate}), numMid(obj.ch[0][8], "W", "{#DC_POWER}"), numMid(obj.ch[0][0], "V", "{#AC_VOLTAGE}"), numMid(obj.ch[0][1], "A", "{#AC_CURRENT}"),