spd/sensor-hub.git
6 years agoSensor archiver: monitor mqtt topic and record events. master
Pat Thoyts [Fri, 19 Jan 2018 14:07:04 +0000 (14:07 +0000)]
Sensor archiver: monitor mqtt topic and record events.

This monitors a topic (spd/sensors/# by default) and records events into
a MongoDB database for use in later data mining.
Added an init script to enable automatic starting on boot.

6 years agoUpdated the monitor to read the Arduino device and publish to MQTT
Pat Thoyts [Fri, 19 Jan 2018 14:01:29 +0000 (14:01 +0000)]
Updated the monitor to read the Arduino device and publish to MQTT

7 years agoPublish new data to MQTT server.
Pat Thoyts [Sun, 17 Sep 2017 08:26:19 +0000 (09:26 +0100)]
Publish new data to MQTT server.

Added new thread that pick object date from a queue and posts it
to the MQTT broker. Data format now compatible with the ESP8266
sensors.

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.