view weather_server/templates/location.html @ 2:cda47993a193

server: fix bugs and improve template.
author Paul Fisher <paul@pfish.zone>
date Sun, 29 Sep 2019 01:18:18 -0400
parents f66df122f18d
children d54155a199d8
line wrap: on
line source

<!doctype html>
<html>
    <head>
        <title>Weather for {{ location.name }}</title>
    </head>
    <body>
        {% if last_reading %}
            Temperature: {{ last_reading.temp_f }}<br>
            Dew point: {{ last_reading.dew_point_f }}<br>
            As of: {{ date }}
        {% else %}
            No weather yet
        {% endif %}
    </body>
</html>