Mercurial > personal > weather-server
view weather_server/templates/index.html @ 33:beedfa8eaa3f
Add grid lines to the graph.
- Adds time gridlines on the hour and 15 minutes.
- Adds temperature gridlines on 10, 5, and 1 degree intervals.
- Increases chart range.
- Changes from rounding temperature to floor()ing it.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 12 Jun 2021 20:22:46 +0000 |
parents | 27217790dc04 |
children | e5a03d63b3d9 |
line wrap: on
line source
<!doctype html> <html> <head> <title>The Weather In Places</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="shortcut icon" href="{{ url_for('static', filename='thermometer.png') }}"> <link rel="manifest" href="/static/manifest.webmanifest"> </head> <body class="home"> <h1><span>Weather</span></h1> <ul> {% for location in locations %} <li> <a href="{{ url_for('show', location=location.key) }}"> <b>{{ location.name }}</b> <span> {%- set reading = location.latest() -%} {%- if reading -%} {{ reading.temp_f|round|int -}} °F {%- else -%} ??? {%- endif -%} </span> </a> </li> {% endfor %} </ul> </body> </html>