Auto refresh
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
{% for device in devices %}
|
||||
{% set reading = latest.get(device.id) %}
|
||||
{% set stat = stats.get(device.id) %}
|
||||
{% set collected_age = latest_relative.get(device.id) %}
|
||||
<a class="metric-card metric-link" href="/devices/{{ device.id }}">
|
||||
<div class="card-heading">
|
||||
<h2>{{ device.name }}</h2>
|
||||
@@ -27,6 +28,7 @@
|
||||
<strong>{{ "%.1f"|format(reading.temperature) if reading.temperature is not none else "n/a" }}°C</strong>
|
||||
<span>{{ reading.humidity if reading.humidity is not none else "n/a" }}% RH</span>
|
||||
</div>
|
||||
<p class="muted">{{ collected_age or "n/a" }}</p>
|
||||
<dl class="mini-stats">
|
||||
<div>
|
||||
<dt>Day low</dt>
|
||||
|
||||
Reference in New Issue
Block a user