From d48715b967e7ba5bf87fe2df8ff31654cfb35b18 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Tue, 12 Apr 2016 02:12:00 -0400 Subject: Adding code to draw graphs sensor.py starting pygal graph draws not working templates/ removed references to login.html added place for graph to go --- templates/layout.html | 5 ----- templates/show_entries.html | 14 +------------- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'templates') diff --git a/templates/layout.html b/templates/layout.html index 0f32195..2a06690 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,11 +4,6 @@

Weather

- {% if not session.logged_in %} - log in - {% else %} - log out - {% endif %}
{% for message in get_flashed_messages() %}
{{ message }}
diff --git a/templates/show_entries.html b/templates/show_entries.html index 5d9ff1a..1f18d68 100644 --- a/templates/show_entries.html +++ b/templates/show_entries.html @@ -1,18 +1,6 @@ {% extends "layout.html" %} {% block body %} - {% if session.logged_in %} -
-
-
Temperature: -
-
Humidity: -
-
Pressure: -
-
-
-
- {% endif %} + {{ wgraph.render()|safe }}