{% extends "base.html" %} {% block content %}

ESP32 Collector

Recent sensor uploads rendered with Jinja.

{{ reading_count }} stored readings
{{ latest.device_id if latest else "n/a" }} latest device
{{ "%.1f"|format(latest.temperature_c) if latest else "n/a" }} latest temp C
{{ "%.1f"|format(latest.humidity) if latest else "n/a" }} latest humidity %
{% if readings %}
{% for reading in readings|reverse %} {% endfor %}
Time Device Sensor Temp C Humidity %
{{ reading.received_at }} {{ reading.device_id }} {{ reading.sensor_type }} {{ "%.1f"|format(reading.temperature_c) }} {{ "%.1f"|format(reading.humidity) }}
{% else %}
No readings yet. Your ESP32 should post JSON to /metrics.
{% endif %} {% endblock %}