From 437c1179b545927197637c26bb2d87d20401e5f2 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Fri, 23 Apr 2021 23:42:42 -0400 Subject: Update based on what is used now Many changes, mostly to make landing page more readable Oh and a file to read a sensor attached via i2c on a Raspberry Pi and add that to the db --- templates/interactive.html | 39 +++++++++++++++++++++++++++++++++++++++ templates/layout.html | 16 ++++++++-------- templates/show_entries.html | 43 ++++++++++++++++++++++++++++++++++--------- 3 files changed, 81 insertions(+), 17 deletions(-) create mode 100644 templates/interactive.html (limited to 'templates') diff --git a/templates/interactive.html b/templates/interactive.html new file mode 100644 index 0000000..1756865 --- /dev/null +++ b/templates/interactive.html @@ -0,0 +1,39 @@ +{% extends "layout.html" %} +{% block body %} +
+

+ + +

+

+ + +

+

+ + + +

+

+ + + +

+
+ + +
+ +
+ + +{% endblock %} diff --git a/templates/layout.html b/templates/layout.html index 2a06690..a49f142 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -1,12 +1,12 @@ -Weather - +Sensor +
-

Weather

-
-
- {% for message in get_flashed_messages() %} -
{{ message }}
- {% endfor %} +

Sensor Readings

+
+ Bedroom Mainfloor Interactive +
+
{% block body %}{% endblock %} +
diff --git a/templates/show_entries.html b/templates/show_entries.html index 572f360..86451df 100644 --- a/templates/show_entries.html +++ b/templates/show_entries.html @@ -1,19 +1,44 @@ {% extends "layout.html" %} {% block body %} +
- +
- +
+ {% if devId == 2 %}
- +
-