{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
Barometer Dashboard
{% if monitor.running %}
● Monitoring
{% else %}
● Stopped
{% endif %}
{% if latest %}
{{ "%.2f"|format(latest.pressure) }} hPa
Last reading: {{ latest.timestamp }}
{% else %}
{% endif %}
Background Monitoring
{% if monitor.running %}
Currently monitoring every
{{ monitor.interval }} seconds
{% else %}
Start automatic data collection in the background
{% endif %}