Raspberry Pi setup to track a room's following conditions:
- Temperature
- Humidity
- Air pressure
- Light brightness
Inspiration based on this blog post by @inkdrop_app
- Go 1.13+
- Raspberry Pi (I used Model 3)
- ANAVI Infrared pHAT - Advanced Kit
- Cloud Firestore (Firebase)
go get github.com/jumbosushi/pi-room
git clone https://github.com/jumbosushi/pi-room.git
cd pi-room
make
I recommend this tutorial!
Follow Firebase's official doc to create a service account. Download the account's key file on your pi and update the path under TODO
in main.go
Clone the anavi-examples repo in your pi at the home directory (/home/pi
).
Run make
in the following directories:
sensors/HTU21D/c
sensors/BMP180/c
sensors/BH1750/c
pi-room
will now be able to send metrics to Firestore 🎉
I recommend running it as a cron job every couple minutes and monitoring it on CronHub