RPi3 temperature and humidity sensor.
For explanation and documentation of the project, see https://heikokromer.com/index.php/2020/01/05/dashboard-paulisasnake/
https://tutorials-raspberrypi.de/raspberry-pi-3-wlan-einrichten-bluetooth/
https://github.com/abrauchli/python-smartgadget
-
Install the packages with
sudo apt-get install mongodb
-
Create directory
/data/db
, be sure to check permissions correctly withsudo chrown -R mongodb /data/db/
-
Start mongodb service using
sudo systemctl start mongodb.service
-
Check that it is also running with a restart of the system
-
Install python packages
python3 -m pip install pymongo==3.4.0 pandas numpy
- the data from the test sensor is stored in the database
sensirion_test
, collection istemp_and_humid
. - to check, connect to the RPi3 and run
mongo
. Then runuse sensirion_test
and find everything in the collection usingdb.temp_and_humid.find().sort({$natural:-1})
. - execute
read_sensirion_and_insert_to_mongo.py
every minute in crontab adding* * * * * python3 /home/pi/paulisasnake/Sensirion_smart_meter/read_sensirion_and_insert_to_mongo.py
to crontab -e
- NodeMCU Lua Lolin V3 Module ESP8266 ESP-12E
- DHT22 sensor
- jumper cables
- power supply
- breadboard(s)