Skip to content

Commit

Permalink
0.8.117
Browse files Browse the repository at this point in the history
* fix max temperature tooltip if only one inverter is configured #1605
  • Loading branch information
lumapu committed May 8, 2024
1 parent 4191aaf commit fe80d39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/hm/hmInverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -594,8 +595,8 @@ class Inverter {
memset(mLastYD, 0, sizeof(float) * 6);

if(clear) {
tsMaxAcPower = 0;
tsMaxTemperature = 0;
tsMaxAcPower = *Timestamp;
tsMaxTemperature = *Timestamp;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/web/html/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/web/html/visualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
])
),
Expand Down Expand Up @@ -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}"),
Expand Down

0 comments on commit fe80d39

Please sign in to comment.