Mercurial > personal > weather-server
comparison weather_server/templates/index.html @ 41:4af79d69b12e v0.2.0
Use units better suited for science.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 01 Apr 2025 16:04:52 -0400 |
parents | e5a03d63b3d9 |
children |
comparison
equal
deleted
inserted
replaced
40:5cc8ce54ad84 | 41:4af79d69b12e |
---|---|
19 <a href="{{ url_for('show', location=location.key) }}"> | 19 <a href="{{ url_for('show', location=location.key) }}"> |
20 <b>{{ location.name }}</b> | 20 <b>{{ location.name }}</b> |
21 <span> | 21 <span> |
22 {%- set reading = location.latest() -%} | 22 {%- set reading = location.latest() -%} |
23 {%- if reading -%} | 23 {%- if reading -%} |
24 {{ reading.temp_f|int -}} | 24 {{ reading.temp_k|int -}} |
25 °F | 25 K |
26 {%- else -%} | 26 {%- else -%} |
27 ??? | 27 ??? |
28 {%- endif -%} | 28 {%- endif -%} |
29 </span> | 29 </span> |
30 </a> | 30 </a> |