diff weather_server/templates/location.html @ 1:f66df122f18d

get the skeleton of a webserver up?
author Paul Fisher <paul@pfish.zone>
date Sun, 29 Sep 2019 00:52:13 -0400
parents
children cda47993a193
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/weather_server/templates/location.html	Sun Sep 29 00:52:13 2019 -0400
@@ -0,0 +1,14 @@
+<!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 }}
+        {% else %}
+            No weather yet
+        {% endif %}
+    </body>
+</html>