succd: Render temperature unit in template as well
This commit is contained in:
parent
edb9051708
commit
0e45650972
|
@ -164,24 +164,24 @@ td > span {
|
|||
<tr>
|
||||
<th rowspan="4">Temperatures</th>
|
||||
<th>DP Bottom</th>
|
||||
<td id="temp-dp-bottom">{{ .Temperatures.DPBottom }}</td>
|
||||
<td id="temp-dp-bottom">{{ .Temperatures.DPBottom }} °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DP Top</th>
|
||||
<td id="temp-dp-top">{{ .Temperatures.DPTop }}</td>
|
||||
<td id="temp-dp-top">{{ .Temperatures.DPTop }} °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DP Inlet</th>
|
||||
<td id="temp-dp-inlet">{{ .Temperatures.DPInlet }}</td>
|
||||
<td id="temp-dp-inlet">{{ .Temperatures.DPInlet }} °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>SEM Environment</th>
|
||||
<td id="temp-sem">{{ .Temperatures.SEM }}</td>
|
||||
<td id="temp-sem">{{ .Temperatures.SEM }} °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Humidity</th>
|
||||
<th>SEM Environment</th>
|
||||
<td id="humidity-sem">{{ .Humidity.SEM }}</td>
|
||||
<td id="humidity-sem">{{ .Humidity.SEM }}%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
@ -419,7 +419,7 @@ window.addEventListener("load", (_) => {
|
|||
tempSEM.innerHTML = data.Temperatures.SEM + " °C";
|
||||
tempSEM.style = (data.Temperatures.SEM > 30) ?
|
||||
colors.highlightCaution : colors.default;
|
||||
humiditySEM.innerHTML = data.Humidity.SEM + " %";
|
||||
humiditySEM.innerHTML = data.Humidity.SEM + "%";
|
||||
humiditySEM.style = (data.Humidity.SEM > 59) ?
|
||||
colors.highlightCaution : colors.default;
|
||||
|
||||
|
|
Loading…
Reference in a new issue