February 28

Beginning of my Sensor Network

The first step of my sensor network is completed. A BMP280 barometer sensor, a Raspberry Pi with an MQTT broker, a round robin database, an apache webserver and some Python and shell magic.

 

bmp280

A Python scripts reads the pressure and the temperatur from the sensor and sends the values to an MQTT broker. This happens every minute. A shell script running as a sort of a deamon reads these values and sends them to the appropriate RRD. Every five minutes another shell script reads the database and creates graphs for last hour, last week, last month, and last year. The graphs are copied to the local web server.

Here is the one-week-graph for the air pressure:

bmp280_press_1week

And the corresponding graph for the temperature:

bmp280_temp_1week

The scripts are on github.


Tags: , , , ,
Copyright © 2014. All rights reserved.

Posted 2016-02-28 by Daniel LeMath in category "Raspberry Pi

Leave a Reply

Your email address will not be published. Required fields are marked *