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.
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.
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.