Add temperature and humidity stuff
This commit is contained in:
parent
52231a9e9c
commit
4edabc5c56
4 changed files with 57 additions and 1 deletions
|
@ -111,6 +111,22 @@ td > span {
|
|||
<th>DP</th>
|
||||
<td id="dp">{{ if .Pumps.DPOn }}ON{{ else }}OFF{{ end }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Temperatures</th>
|
||||
<th>SEM</th>
|
||||
<td id="temp-sem">{{ .Temperatures.SEM }}</td>
|
||||
<th>DPBottom</th>
|
||||
<td id="temp-dp-bottom">{{ .Temperatures.DPBottom }}</td>
|
||||
<th>DPTop</th>
|
||||
<td id="temp-dp-top">{{ .Temperatures.DPTop }}</td>
|
||||
<th>DPInlet</th>
|
||||
<td id="temp-dp-inlet">{{ .Temperatures.DPInlet }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Humidity</th>
|
||||
<th>SEM</th>
|
||||
<td id="humidity-sem">{{ .Humidity.SEM }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Safety</th>
|
||||
<th style="font-size: 0.7em;">Pirani<br />Failsafe</th>
|
||||
|
@ -316,6 +332,11 @@ window.addEventListener("load", (_) => {
|
|||
let trough = document.querySelector("#trough");
|
||||
let thigh = document.querySelector("#thigh");
|
||||
let load = document.querySelector("#load");
|
||||
let tempSEM = document.querySelector("#temp-sem");
|
||||
let tempDPBottom = document.querySelector("#temp-dp-bottom");
|
||||
let tempDPTop = document.querySelector("#temp-dp-top");
|
||||
let tempDPInlet = document.querySelector("#temp-dp-inlet");
|
||||
let humiditySEM = document.querySelector('#humidity-sem');
|
||||
|
||||
// Buttons
|
||||
let pd = document.querySelector("#pd");
|
||||
|
@ -388,6 +409,12 @@ window.addEventListener("load", (_) => {
|
|||
dp.style = colors.default;
|
||||
}
|
||||
|
||||
tempSEM.innerHTML = data.Temperatures.SEM + " °C";
|
||||
tempDPBottom.innerHTML = data.Temperatures.DPBottom + " °C";
|
||||
tempDPTop.innerHTML = data.Temperatures.DPTop + " °C";
|
||||
tempDPInlet.innerHTML = data.Temperatures.DPInlet + " °C";
|
||||
humiditySEM.innerHTML = data.Humidity.SEM + " %";
|
||||
|
||||
let t = [];
|
||||
if (data.Feedback.RoughReached) {
|
||||
trough.innerHTML = "OK";
|
||||
|
@ -413,7 +440,7 @@ window.addEventListener("load", (_) => {
|
|||
|
||||
// Indicate all process values as unknown
|
||||
|
||||
[failsafe, highpressure, rp, dp, trough, thigh, volts, mbar].forEach((el) => {
|
||||
[failsafe, highpressure, rp, dp, trough, thigh, volts, mbar, tempDPBottom, tempDPTop, tempDPInlet].forEach((el) => {
|
||||
if (!el.innerHTML.includes("??")) {
|
||||
el.innerHTML += "??";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue