diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2016-04-12 02:12:00 -0400 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2016-04-12 02:12:00 -0400 |
commit | d48715b967e7ba5bf87fe2df8ff31654cfb35b18 (patch) | |
tree | 123a482c4bfe9149fa22ad81347e263e158fa087 /templates/show_entries.html | |
parent | 614562bf2cf048b049af5304fead92a46f080d3e (diff) | |
download | Sensor-Server-d48715b967e7ba5bf87fe2df8ff31654cfb35b18.tar.gz Sensor-Server-d48715b967e7ba5bf87fe2df8ff31654cfb35b18.tar.bz2 Sensor-Server-d48715b967e7ba5bf87fe2df8ff31654cfb35b18.zip |
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
Diffstat (limited to 'templates/show_entries.html')
-rw-r--r-- | templates/show_entries.html | 14 |
1 files changed, 1 insertions, 13 deletions
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 %} - <form action="{{ url_for('add_entry') }}" method=post class=add-entry> - <dl> - <dt>Temperature: - <dd><input type=number size=30 name=temperature> - <dt>Humidity: - <dd><input type=number size=30 name=humidity> - <dt>Pressure: - <dd><input type=number size=30 name=pressure> - <dd><input type=submit value=Submit> - </dl> - </form> - {% endif %} + {{ wgraph.render()|safe }} <ul class=weather> {% for entry in weather %} <li><h2>{{ entry.date }}</h2>Temp: {{ entry.temperature }}, Humidity: {{ entry.humidity }}, Pressure: {{ entry.pressure }} |