From 4b2951a1b4da1be336ad348d0ac03a4562e32f3d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 20 Oct 2019 21:21:51 +0200 Subject: [PATCH] add a template for the index page --- .../collector/templates/collector/index.html | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sensors/collector/templates/collector/index.html diff --git a/sensors/collector/templates/collector/index.html b/sensors/collector/templates/collector/index.html new file mode 100644 index 0000000..72b7fc7 --- /dev/null +++ b/sensors/collector/templates/collector/index.html @@ -0,0 +1,32 @@ +{% load static %} + + + + Environment Sensors + + + + +
+

{% block section_title %}Environment Sensors{% endblock %}

+

Temperature

+ {% autoescape off %} + {{ plot_temp }} + {% endautoescape %} +

Humidity

+ {% autoescape off %} + {{ plot_humidity}} + {% endautoescape %} +

Pressure

+ {% autoescape off %} + {{ plot_pressure }} + {% endautoescape %} +
+ {% block footer %} + + {% endblock %} +
+
+ + +