mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 23:06:11 +02:00
0.8.117
* fix max temperature tooltip if only one inverter is configured #1605
This commit is contained in:
parent
4191aafeeb
commit
fe80d3997d
4 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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}"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue