From 319606aed93d95209c341b468a3b04e9e116692f Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Wed, 28 Sep 2016 13:55:58 +0100 Subject: [PATCH] Display the pressure and humidity graphs --- INSTALL | 5 +++ static/sensor-hub.html | 78 +++++++++++++++++++++++++++++++++++------- 2 files changed, 71 insertions(+), 12 deletions(-) diff --git a/INSTALL b/INSTALL index 9f85e6a..b72f22c 100644 --- a/INSTALL +++ b/INSTALL @@ -1,3 +1,8 @@ +Requires python3, cherrypy, pyserial and twisted. + +Copy the sensor-hub.config.sample to sensor-hub.config and update for the +local installation. + Install the sensor-hub.conf file into /etc/init to create the service. Then service sensor-hub start. diff --git a/static/sensor-hub.html b/static/sensor-hub.html index 4574e37..401f1cc 100644 --- a/static/sensor-hub.html +++ b/static/sensor-hub.html @@ -18,6 +18,8 @@ body {margin:0 auto;max-width:980px;padding:1em;color:#000;background-color:#fff #result th {text-align:left;background-color:#eee;} #result tbody td {vertical-align:top;font-family:fixed;font-size:11pt;background-color:#fff;padding:6px 4px 6px 4px;} #tooltip {position:absolute;display:none;border:1px solid #fdd;padding:2px;background-color:#fee;opacity:0.80;} +span.func {cursor: pointer; color: blue; text-decoration:underline;} +span.func:hover {text-decoration:none; text-shadow: 1px 1px 1px #555; } div.loading { background: rgba(255,255,255,.8) url('loading.gif') 50% 50% no-repeat; } @@ -26,10 +28,15 @@ div.loading { background: rgba(255,255,255,.8) url('loading.gif') 50% 50% no-rep
-

Download view data as ASCII or JSON

-

Fetch another week: update with an additional weeks historical data.

-

Fetch another 30 days: update with an additional month historical data.

-

+

+
+

Download view data as ASCII +or JSON

+

Fetch another week: + update with an additional weeks historical data.

+

Fetch another 30 days: + update with an additional month historical data.

+

- +