aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2016-04-13 00:50:54 -0400
committerMatt Kohls <mattkohls13@gmail.com>2016-04-13 00:50:54 -0400
commitb34f83f65e4d2f74844d19a4974f96143fdd8136 (patch)
tree7fa978dae4eb61d9bd77ae82f895ce4d9177d8f4 /templates
parentd48715b967e7ba5bf87fe2df8ff31654cfb35b18 (diff)
downloadSensor-Server-b34f83f65e4d2f74844d19a4974f96143fdd8136.tar.gz
Sensor-Server-b34f83f65e4d2f74844d19a4974f96143fdd8136.tar.bz2
Sensor-Server-b34f83f65e4d2f74844d19a4974f96143fdd8136.zip
Initial graph working
sensor.py added route to draw graph show_entries.html added spot for graph reformatted tabs
Diffstat (limited to 'templates')
-rw-r--r--templates/show_entries.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/show_entries.html b/templates/show_entries.html
index 1f18d68..5a9d989 100644
--- a/templates/show_entries.html
+++ b/templates/show_entries.html
@@ -1,11 +1,13 @@
{% extends "layout.html" %}
{% block body %}
- {{ wgraph.render()|safe }}
- <ul class=weather>
- {% for entry in weather %}
- <li><h2>{{ entry.date }}</h2>Temp: {{ entry.temperature }}, Humidity: {{ entry.humidity }}, Pressure: {{ entry.pressure }}
- {% else %}
- <li><em>No entries here so far</em>
- {% endfor %}
- </ul>
+ <figure>
+ <embed type="image/svg+xml" src="/wgraph.svg" />
+ </figure>
+ <ul class=weather>
+ {% for entry in weather %}
+ <li><h2>{{ entry.date }}</h2>Temp: {{ entry.temperature }}, Humidity: {{ entry.humidity }}, Pressure: {{ entry.pressure }}
+ {% else %}
+ <li><em>No entries here so far</em>
+ {% endfor %}
+ </ul>
{% endblock %}