1
0
Fork 0
website/layouts/partials/widgets/sensors.html

22 lines
718 B
HTML

{{- if .Site.Params.widgets.sensors }}
<div class="widget-sensors widget">
<h4 class="widget-sensors__title widget__title">{{ T "sensors_title" }}</h4>
<div class="widget-sensors__content widget__content">
<p>
<b>Space status:</b> <span id="status-display">UNKNOWN</span>
</p>
<table class="sensor-table">
<tr>
<td>{{ partial "svg/thermometer-low.svg" (dict "class" "sensor-icon") }}</td>
<td>Core temperature</td>
<td><span id="temperature-display">n/a</span><br></td>
</tr>
<tr>
<td>{{ partial "svg/water-percent.svg" (dict "class" "sensor-icon") }}</td>
<td>Core humidity</td>
<td><span id="humidity-display">n/a</span></td>
</tr>
</table>
</div>
</div>
{{- end }}