Fix weather temp checkbox persistence
This commit is contained in:
@@ -163,4 +163,4 @@ Examples:
|
||||
5. Add config backup/restore.
|
||||
6. Improve BMS out-of-range behavior without changing NimBLE connect timeout.
|
||||
|
||||
- Fixed WebUI temperature probe scan by registering `/temps/scan`, `/temps/assign`, and `/temps/clear` firmware routes.\n\n- Added per-temperature-sensor `weather` flag and WebUI outside temperature badge with emoji thresholds: below 50°F ice, 50-74°F happy, 75-84°F sun, and 85°F+ fire.\n\n- Improved WebUI temperature sensor config checkbox layout with compact On/Weather controls.\n\n- Temperature probe assignment now enforces one logical slot per physical DS18B20 address; assigning a probe to a new slot clears the old slot mapping.\n\n- Added per-slot WebUI Clear buttons for temperature probe assignments using the existing `/temps/clear` API.\n
|
||||
- Fixed WebUI temperature probe scan by registering `/temps/scan`, `/temps/assign`, and `/temps/clear` firmware routes.\n\n- Added per-temperature-sensor `weather` flag and WebUI outside temperature badge with emoji thresholds: below 50°F ice, 50-74°F happy, 75-84°F sun, and 85°F+ fire.\n\n- Improved WebUI temperature sensor config checkbox layout with compact On/Weather controls.\n\n- Temperature probe assignment now enforces one logical slot per physical DS18B20 address; assigning a probe to a new slot clears the old slot mapping.\n\n- Added per-slot WebUI Clear buttons for temperature probe assignments using the existing `/temps/clear` API.\n\n- Fixed weather temp checkbox persistence by saving the `weather` flag from WebUI temp config and auto-saving checkbox changes.\n
|
||||
@@ -561,11 +561,11 @@ function renderConfigControls(data){
|
||||
<input id="tempName${i}" value="${t.name||""}" placeholder="Temp name">
|
||||
<div class="checkGroup">
|
||||
<label class="checkPill">
|
||||
<input id="tempEnabled${i}" type="checkbox" ${t.enabled?"checked":""}>
|
||||
<input id="tempEnabled${i}" type="checkbox" ${t.enabled?"checked":""} onchange="saveTempConfig()">
|
||||
On
|
||||
</label>
|
||||
<label class="checkPill">
|
||||
<input id="tempWeather${i}" type="checkbox" ${t.weather?"checked":""}>
|
||||
<input id="tempWeather${i}" type="checkbox" ${t.weather?"checked":""} onchange="saveTempConfig()">
|
||||
Weather
|
||||
</label>
|
||||
<button class="off" onclick="clearTempAssignment('${t.id}')">Clear</button>
|
||||
@@ -623,6 +623,7 @@ async function saveTempConfig(){
|
||||
name:name,
|
||||
address:temps[i].address||"",
|
||||
enabled:enabled,
|
||||
weather:weather,
|
||||
weather:weather
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user