succd: Add highlight colors for temperatures
All checks were successful
/ test (push) Successful in 10s
/ test (pull_request) Successful in 10s

Highlight out-of-range temperatures for the user.  The limits are
currently by intuition and should be reconsidered.
This commit is contained in:
Rahix 2024-11-10 01:46:29 +01:00
parent c02d24414f
commit 4ac1b5eb32

View file

@ -417,10 +417,28 @@ window.addEventListener("load", (_) => {
} }
tempSEM.innerHTML = data.Temperatures.SEM + " °C"; tempSEM.innerHTML = data.Temperatures.SEM + " °C";
tempDPBottom.innerHTML = data.Temperatures.DPBottom + " °C"; tempSEM.style = (data.Temperatures.SEM > 30) ?
tempDPTop.innerHTML = data.Temperatures.DPTop + " °C"; colors.highlightCaution : colors.default;
tempDPInlet.innerHTML = data.Temperatures.DPInlet + " °C";
humiditySEM.innerHTML = data.Humidity.SEM + " %"; humiditySEM.innerHTML = data.Humidity.SEM + " %";
humiditySEM.style = (data.Humidity.SEM > 59) ?
colors.highlightCaution : colors.default;
tempDPTop.innerHTML = data.Temperatures.DPTop + " °C";
tempDPTop.style = (data.Temperatures.DPTop > 30) ?
colors.highlightCaution : colors.default;
tempDPInlet.innerHTML = data.Temperatures.DPInlet + " °C";
tempDPInlet.style = (data.Temperatures.DPInlet > 30) ?
colors.highlightCaution : colors.default;
tempDPBottom.innerHTML = data.Temperatures.DPBottom + " °C";
if (data.Temperatures.DPBottom > 200) {
tempDPBottom.style = colors.highlightFault;
} else if (data.Temperatures.DPBottom > 50) {
tempDPBottom.style = colors.highlightNeutral;
} else {
tempDPBottom.style = colors.default;
}
let t = []; let t = [];
if (data.Feedback.RoughReached) { if (data.Feedback.RoughReached) {