From 115f5ed9f04f79dbf5fa3962a5ec94d4117fc7e4 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Mon, 30 Apr 2018 14:07:22 -0500 Subject: [PATCH] Templates for pressure transmitter and sets level/volume to only send every 5 min --- html_templates/Overview.html | 35 +++++++++++ html_templates/Scaling.html | 113 ++++++++++++++++++++++++++++++++++- html_templates/Trends.html | 2 +- python_driver/config.txt | 2 +- python_driver/pondlevel.py | 19 +++--- 5 files changed, 161 insertions(+), 10 deletions(-) diff --git a/html_templates/Overview.html b/html_templates/Overview.html index d7eaf67..632ab14 100644 --- a/html_templates/Overview.html +++ b/html_templates/Overview.html @@ -65,6 +65,41 @@ <% } %> + +<% if (channels["pondlevel.pressure_psi"].value > 0.0){ %> +
+
+

Pressure

+
+
+
+
+ + + +
+ + <%= channels["pondlevel.pressure_psi"].timestamp %> + +
+
+ +
+
+
+
+<% } %> +

Configuration

diff --git a/html_templates/Scaling.html b/html_templates/Scaling.html index 29f104e..4cfa93a 100644 --- a/html_templates/Scaling.html +++ b/html_templates/Scaling.html @@ -1,7 +1,10 @@
- +
+

Level

+
+

Raw Max (mA)

@@ -104,6 +107,114 @@
+
+
+

Pressure

+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +