{% include 'sidebar.html' %}

History Readings

Recent per-sensor readings and statuses
Reset
{% if sensor_rows and sensor_rows|length > 0 %} {% for row in sensor_rows %} {% set st = (row.status or 'normal')|lower %} {% endfor %} {% else %} {% endif %}
Recorded At Device Type Location Value Status
{% if row.recorded_at %} {{ row.recorded_at.strftime('%Y-%m-%d %H:%M:%S') }} {% else %}-{% endif %} {{ row.device_id or '-' }} {{ (row.device_type or '-')|upper }} {{ row.location or '-' }} {% set t = (row.device_type or '')|lower %} {% if t == 'tds' %} {{ row.value if row.value is not none else '-' }} ppm {% elif t == 'turbidity' %} {{ row.value if row.value is not none else '-' }} NTU {% elif t == 'temperature' %} {{ row.value if row.value is not none else '-' }} °C {% elif t == 'dissolved_oxygen' %} {{ row.value if row.value is not none else '-' }} mg/L {% elif t == 'conductivity' %} {{ row.value if row.value is not none else '-' }} µS/cm {% else %} {{ row.value if row.value is not none else '-' }} {% endif %} {% if st == 'critical' %} Critical {% elif st == 'warning' %} Warning {% else %} Normal {% endif %}
No readings found
Found: {{ total or 0 }} reading{{ 's' if (total or 0) != 1 else '' }}
{% if total_pages and total_pages > 1 %} {% endif %}
{% include 'footer.html' ignore missing %}