{% extends "base.html" %} {% block body %}
{% let navbar_item = "sensor" %} {% include "navbar.html" %}

{% if reading.value.is_inline() -%} {% let value = reading.value.as_ref() %} {% include "value.html" %} {% else -%} {{ sensor_id -}} {% endif -%}

{% if reading.value.is_inline() -%} {{ sensor_id -}} {% endif -%} {# TODO: a custom filter. #} {{ reading.timestamp.format("%b %d, %H:%M:%S").to_string() }}

{% if reading.value.is_inline() %} {% else %}
{% let value = reading.value.as_ref() %} {% include "value.html" %}
{% endif %}

Latest reading

This is stored in the database

{{ "{:#?}"|format(reading) }}
{% endblock %}