{% extends 'base.html' %} {% block title %}Temperatur {{ dev.name }}{% endblock %} {% block content %}

{{ dev.name }} {{ MONTHS[first.month - 1] }} {{ first.year }}

← {{ MONTHS[(first.month - 2) % 12] }} {% if next_m %}{{ MONTHS[first.month % 12] }} →{% endif %}
{{ dev.temp_min|num }}–{{ dev.temp_max|num }}
Sollbereich °C
{{ stats.count }}
Ablesungen
{{ stats.out }}
außerhalb
{{ stats.missing }}
Praxistage ohne Ablesung
{{ stats.min|num if stats.min is not none else '–' }} / {{ stats.max|num if stats.max is not none else '–' }}
Min / Max °C
{% if first.year == now.year and first.month == now.month %}

Ablesung eintragen

{% set p = dev %}{% set back = '/temperatur/' ~ dev.id %}{% include 'temperatur/_form.html' %}
{% endif %}
{% for d in days|reverse %} {% if d.readings %} {% for r in d.readings %} {% if loop.first %}{% endif %} {% endfor %} {% else %} {% endif %} {% else %} {% endfor %}
TagZeitAktuellMinMaxKürzelMaßnahme / Bemerkung
{{ WEEKDAYS[d.day.weekday()] }} {{ d.day.strftime('%d.%m.') }}{{ r.ts.strftime('%H:%M') }} {{ r.current|num }} {{ r.min_value|num if r.min_value is not none else '' }} {{ r.max_value|num if r.max_value is not none else '' }} {{ r.user.initials if r.user else '–' }} {% if not r.in_range %}außerhalb {% endif %}{{ r.action or '' }}{% if r.action and r.note %} · {% endif %}{{ r.note or '' }}{% if r.created_at and (r.created_at - r.ts).total_seconds() > 3600 %} (nachgetragen {{ r.created_at.strftime('%d.%m. %H:%M') }}){% endif %}
{{ WEEKDAYS[d.day.weekday()] }} {{ d.day.strftime('%d.%m.') }} {% if d.free %}{{ d.free }}{% elif d.expected %}keine Ablesung{% else %}–{% endif %}
Keine Tage in diesem Monat.
{% endblock %}