comparison weather_server/templates/location.html @ 13:4eaa9d69c4e2

Extremely basic version of the graph drawer.
author Paul Fisher <paul@pfish.zone>
date Sun, 06 Oct 2019 17:09:23 -0400
parents 9e6289598d8c
children 9a609bcf0809
comparison
equal deleted inserted replaced
12:9e6289598d8c 13:4eaa9d69c4e2
8 href="{{ url_for('static', filename='style.css') }}"> 8 href="{{ url_for('static', filename='style.css') }}">
9 </head> 9 </head>
10 <body> 10 <body>
11 <h1><span>{{ location.name }} conditions</span></h1> 11 <h1><span>{{ location.name }} conditions</span></h1>
12 {% if last_reading %} 12 {% if last_reading %}
13 <p class="important" id="temp"> 13 <p class="plain important" id="temp">
14 <span class="key">Temperature</span> 14 <span class="key">Temperature</span>
15 <span class="value"> 15 <span class="value">
16 <span class="pad"> </span> 16 <span class="pad"> </span>
17 <span class="n"> 17 <span class="n">
18 {{- last_reading.temp_f|round|int -}} 18 {{- last_reading.temp_f|round|int -}}
19 </span> 19 </span>
20 <span class="unit">&deg;F</span> 20 <span class="unit">&deg;F</span>
21 </span> 21 </span>
22 </p> 22 </p>
23 <p class="important" id="dewpoint"> 23 <p class="plain important" id="dewpoint">
24 <span class="key">Dew point</span> 24 <span class="key">Dew point</span>
25 <span class="value"> 25 <span class="value">
26 <span class="pad"> </span> 26 <span class="pad"> </span>
27 <span class="n"> 27 <span class="n">
28 {{- last_reading.dew_point_f|round|int -}} 28 {{- last_reading.dew_point_f|round|int -}}
38 </p> 38 </p>
39 {% else %} 39 {% else %}
40 <p id="big-question-mark">?</p> 40 <p id="big-question-mark">?</p>
41 {% endif %} 41 {% endif %}
42 <script src="{{ url_for('static', filename='script.js') }}"></script> 42 <script src="{{ url_for('static', filename='script.js') }}"></script>
43 <!--
44 <script>
45 setUp(
46 document.getElementById('temp'),
47 document.getElementById('dewpoint'));
48 </script>
49 -->
43 </body> 50 </body>
44 </html> 51 </html>