{% extends "base.html" %}

{% block title %}{{ sensor.title() }} – {{ sensor.location }} – My IoT{% endblock %}

{% block head %}
  <meta http-equiv="refresh" content="{{ minutes * 60 / Self::AUTO_REFRESH_PER_MINUTE }}">
{% endblock %}

{% block body %}
  <div class="hero {{ reading.value|color_class }}">
    <div class="hero-head">
      {{ NavbarPartialTemplate::new("sensor")|safe }}
    </div>

    <div class="hero-body">
      <div class="container">
        <h1 class="title is-4" title='{{ "{:?}"|f