{% extends "base.html" %} {% block title %}{{ sensor.title() }} – {{ sensor.location }} – My IoT{% endblock %} {% block head %} {% endblock %} {% block body %}
{{ NavbarPartialTemplate::new("sensor")|safe }}

{% if reading.value.is_inline() -%} {{ reading.value|safe }} {% else -%} {{ sensor.title() -}} {% endif -%}

{% if reading.value.is_inline() -%} {{ sensor.title() }} {% endif -%} {{ sensor.location }} {{ reading.timestamp|format_datetime }}
{% if chart.is_empty() %} {% else %}
{{ chart|safe }}
{% endif %} {% if reading.value.is_inline() %} {% else %}
{{ reading.value|safe }}
{% endif %}

Details

Value: {{ "{:?}"|format(reading.value) }}
Readings: {{ reading_count }}
API: JSON

Danger Zone

Sensor deletion will lead to deleting all the associated sensor readings

{% endblock %}