Browse Source

0.8.117

* fix max temperature tooltip if only one inverter is configured #1605
pull/1626/head
lumapu 8 months ago
parent
commit
fe80d3997d
  1. 3
      src/CHANGES.md
  2. 5
      src/hm/hmInverter.h
  3. 2
      src/web/html/style.css
  4. 8
      src/web/html/visualization.html

3
src/CHANGES.md

@ -1,7 +1,8 @@
# Development Changes # Development Changes
## 0.8.117 - 2024-05-09 ## 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 ## 0.8.116 - 2024-05-05
* calculation of max AC power * calculation of max AC power

5
src/hm/hmInverter.h

@ -234,6 +234,7 @@ class Inverter {
initAssignment(&recordAlarm, AlarmData); initAssignment(&recordAlarm, AlarmData);
toRadioId(); toRadioId();
curCmtFreq = this->config->frequency; // update to frequency read from settings curCmtFreq = this->config->frequency; // update to frequency read from settings
resetAlarms(true);
} }
uint8_t getPosByChFld(uint8_t channel, uint8_t fieldId, record_t<> *rec) { uint8_t getPosByChFld(uint8_t channel, uint8_t fieldId, record_t<> *rec) {
@ -594,8 +595,8 @@ class Inverter {
memset(mLastYD, 0, sizeof(float) * 6); memset(mLastYD, 0, sizeof(float) * 6);
if(clear) { if(clear) {
tsMaxAcPower = 0; tsMaxAcPower = *Timestamp;
tsMaxTemperature = 0; tsMaxTemperature = *Timestamp;
} }
} }

2
src/web/html/style.css

@ -687,7 +687,7 @@ div.hr {
border-radius: 3px; border-radius: 3px;
display: inline-block; display: inline-block;
position: absolute; position: absolute;
transform: translate(-50%,-100%); transform: translate(-50%,-50%);
margin:0 auto; margin:0 auto;
color: var(--fg2); color: var(--fg2);
min-width: 100px; min-width: 100px;

8
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"}, [ 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("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) ml("span", {class: "fs-8 mx-1"}, unit)
]) ])
), ),
@ -147,7 +147,7 @@
]), ]),
ml("div", {class: "hr"}), ml("div", {class: "hr"}),
ml("div", {class: "row mt-2"},[ 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][8], "W", "{#DC_POWER}"),
numMid(obj.ch[0][0], "V", "{#AC_VOLTAGE}"), numMid(obj.ch[0][0], "V", "{#AC_VOLTAGE}"),
numMid(obj.ch[0][1], "A", "{#AC_CURRENT}"), numMid(obj.ch[0][1], "A", "{#AC_CURRENT}"),

Loading…
Cancel
Save