Mercurial > personal > weather-server
comparison weather_server/templates/location.html @ 36:e5a03d63b3d9 default tip
Truncate, don’t round, temperatures displayed in HTML.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Fri, 02 Jul 2021 20:38:11 -0400 |
parents | 27217790dc04 |
children |
comparison
equal
deleted
inserted
replaced
35:2f3473416c11 | 36:e5a03d63b3d9 |
---|---|
17 <p class="important" id="temp"> | 17 <p class="important" id="temp"> |
18 <span class="key">Temperature</span> | 18 <span class="key">Temperature</span> |
19 <span class="value"> | 19 <span class="value"> |
20 <span class="pad"> </span> | 20 <span class="pad"> </span> |
21 <span class="n"> | 21 <span class="n"> |
22 {{- last_reading.temp_f|round|int -}} | 22 {{- last_reading.temp_f|int -}} |
23 </span> | 23 </span> |
24 <span class="unit">°F</span> | 24 <span class="unit">°F</span> |
25 </span> | 25 </span> |
26 </p> | 26 </p> |
27 <p class="important" id="dewpoint"> | 27 <p class="important" id="dewpoint"> |
28 <span class="key">Dew point</span> | 28 <span class="key">Dew point</span> |
29 <span class="value"> | 29 <span class="value"> |
30 <span class="pad"> </span> | 30 <span class="pad"> </span> |
31 <span class="n"> | 31 <span class="n"> |
32 {{- last_reading.dew_point_f|round|int -}} | 32 {{- last_reading.dew_point_f|int -}} |
33 </span> | 33 </span> |
34 <span class="unit">°F</span> | 34 <span class="unit">°F</span> |
35 </span> | 35 </span> |
36 </p> | 36 </p> |
37 <p id="timestamp"> | 37 <p id="timestamp"> |