pi-room ⛅
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
Requirements
- Go 1.13+
- Raspberry Pi (I used Model 3)
- ANAVI Infrared pHAT - Advanced Kit
- Cloud Firestore (Firebase)
Installation
go get github.com/jumbosushi/pi-room
Development
git clone https://github.com/jumbosushi/pi-room.git
cd pi-room
make
Usage
1. Set up Raspberry Pi
I recommend this tutorial!
2. Set up Cloud Firestore
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
3. Download anavi scripts
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
4. Run the script
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