spd/sensor-hub.git
8 years agoSupport days without any data in the history download.
Pat Thoyts [Wed, 28 Sep 2016 13:16:09 +0000 (14:16 +0100)]
Support days without any data in the history download.

If a day has no data then we cannot locate the oldest record so added
the date range in the response and we can use that instead.
This avoids getting stuck in the history download as we fetch 1 day at
a time.

8 years agoDisplay the pressure and humidity graphs
Pat Thoyts [Wed, 28 Sep 2016 12:55:58 +0000 (13:55 +0100)]
Display the pressure and humidity graphs

8 years agoMerge branch 'pt/webapp'
Pat Thoyts [Wed, 18 May 2016 09:04:01 +0000 (10:04 +0100)]
Merge branch 'pt/webapp'

8 years agoRemoved the tcl monitor program
Pat Thoyts [Wed, 18 May 2016 09:03:51 +0000 (10:03 +0100)]
Removed the tcl monitor program

8 years agoSwitched to a python serial port monitor which updates mongodb on the fly.
Pat Thoyts [Wed, 18 May 2016 09:00:48 +0000 (10:00 +0100)]
Switched to a python serial port monitor which updates mongodb on the fly.

The database is now directly updated by the serial monitor which is using
twisted to read the serial lines. Timestamps and values are now numerical
and not stored in the db as strings so minor change in the wsgi to handle
that.

8 years agoInclude the humidity and pressure data in the sensor log JSON items and ASCII download.
Pat Thoyts [Tue, 17 May 2016 22:54:02 +0000 (23:54 +0100)]
Include the humidity and pressure data in the sensor log JSON items and ASCII download.

8 years agoSupport either ISO or time_t dates for download.
Pat Thoyts [Tue, 17 May 2016 22:53:12 +0000 (23:53 +0100)]
Support either ISO or time_t dates for download.

8 years agoSupport incremental download of sensor data.
Pat Thoyts [Mon, 16 May 2016 11:59:44 +0000 (12:59 +0100)]
Support incremental download of sensor data.

Break up the data download into 1 day chunks and display all in the top
overview plot and let the user update the lower plot.

8 years agoAdded test functions to look into using indexes with mongodb.
Pat Thoyts [Mon, 16 May 2016 11:58:41 +0000 (12:58 +0100)]
Added test functions to look into using indexes with mongodb.

8 years agoSupport 'from' and 'until' parameters in the 'since' API call.
Pat Thoyts [Mon, 16 May 2016 11:58:05 +0000 (12:58 +0100)]
Support 'from' and 'until' parameters in the 'since' API call.

8 years agoAvoid plotting invalid temperature sensor values.
Pat Thoyts [Fri, 13 May 2016 09:27:34 +0000 (10:27 +0100)]
Avoid plotting invalid temperature sensor values.

8 years agoAdded update to sensordata script to add new values to the database.
Pat Thoyts [Mon, 9 May 2016 10:52:50 +0000 (11:52 +0100)]
Added update to sensordata script to add new values to the database.

Fix the official mongodb collection name as well.

8 years agoSwitch to using mongodb for the database backend.
Pat Thoyts [Fri, 22 Apr 2016 00:50:47 +0000 (01:50 +0100)]
Switch to using mongodb for the database backend.

Implemented recent, since, hosts, sensors and JSON download using mongo.

8 years agoInitial version working from a reduced text log file.
Pat Thoyts [Thu, 21 Apr 2016 09:54:36 +0000 (10:54 +0100)]
Initial version working from a reduced text log file.

The default log has values for every second, reduced to every 10 minutes.
The lab-monitor data is 1 each minute.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
8 years agoRead and log sensor output from the Arduino sensor hub device.
Pat Thoyts [Thu, 14 Apr 2016 13:30:03 +0000 (14:30 +0100)]
Read and log sensor output from the Arduino sensor hub device.