{% extends "base.html" %} {% block title %}Dashboard - SwitchBot Temps{% endblock %} {% block content %}

Today so far

Vet Temperatures

Make report
{% if devices %}
{% for device in devices %} {% set reading = latest.get(device.id) %} {% set stat = stats.get(device.id) %} {% set collected_age = latest_relative.get(device.id) %}

{{ device.name }}

{{ device.device_type }}
{% if reading %}
{{ "%.1f"|format(reading.temperature) if reading.temperature is not none else "n/a" }}°C {{ reading.humidity if reading.humidity is not none else "n/a" }}% RH

{{ collected_age or "n/a" }}

Day low
{{ "%.1f"|format(stat.low) if stat else "n/a" }}°C
Day high
{{ "%.1f"|format(stat.high) if stat else "n/a" }}°C
Battery
{{ reading.battery if reading.battery is not none else "n/a" }}%
{% else %}

Waiting for the first reading.

{% endif %}
{% endfor %}

Day graph

Temperature readings from midnight to now.

{% else %}

No devices yet

Start the collector and it will populate device names from the SwitchBot API automatically.

{% endif %} {% endblock %}