forked from CFenner/MMM-Netatmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netatmo.classic.njk
33 lines (33 loc) · 1.08 KB
/
netatmo.classic.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="netatmo">
{% if loaded %}
<div class="modules {{ 'horizontal' if horizontal }}">
{% for module in moduleList %}
<div class="netatmo-module">
{% if showModuleNameOnTop %}
<div class="name {{ fontClassModuleName }}">{{ module.name }}</div>
{% endif %}
<div class="data">
<table>
{% for measurement in module.measurementList %}
<tr>
<td class="small">{{ measurement.label|safe }}</td>
<td class="small">
<span class="value">{{ measurement.value|safe }}</span>
<span class="unit">{{ measurement.unit }}</span>
</td>
</tr>
{% endfor %}
</table>
</div>
{% if not showModuleNameOnTop %}
<div class="name {{ fontClassModuleName }}">{{ module.name }}</div>
{% endif %}
</div>
{% endfor %}
</div>
{% else %}
<div class="dimmed light small">
{{ labelLoading|safe }}
</div>
{% endif %}
</div>