<!DOCTYPE html>
<head>
<title>STATO CORRENTE</title>
</head>
<body>
<h1>Lista Devices e Stato</h1>
<h2>La Data e l'ora sul server e': {{ time }} UTC </h2>
<h2>La Temperatura  e': {{ temp  }} C° </h2>
<h2>L' umidità e': {{ hum  }} % </h2>
<h2>LINEA: {{ status  }}  </h2>



{% for pin in pins %}
<p>Il RELE {{ pins[pin].name }}
{% if pins[pin].state == true %}
e' attualmente ON (<a href="/{{pin}}/off">SPEGNI</a>)
{% else %}
e attualmente OFF (<a href="/{{pin}}/on">ACCENDI</a>)
{% endif %}
</p>
{% endfor %}
{% if message %}
<h2>{{ message }}</h2>
{% endif %}


</body>
</html>