Record sensor readings in the cloud
Components:
- Raspberry Pi
- DHT11 temperature and humidity sensor
- Cloud (GCF or AWS)
Parts:
- Send HTTP from Raspberry Pi to endpoint
- Read sensor measurements from Raspberry Pi
- Read Raspberry Pi measurements in the cloud
- Save data to DB (BitQuery)
Plan:
- Learn to send HTTP requests from Raspberry Pi
- Connect Raspberry Pi to internet
- Send dummy HTTP request and pick up with GCF
- use pastbin to test
- Send requests every minute with cron
- make sure python path is specified in bash script
- add
MAILTO=""
to cron to stop mail
- Write script to setup cron.
- Test on Raspberry Pi
- Read sensor measurements from Raspberry Pi
- Wire up sensor
- type
pinout
for pi pinout - GPIO with Python
- type
- Read to json
- send json over HTTP
- recorded in pastebin
- Wire up sensor
- GCF
- Pick up http put with GCF
- Learn BigQuery
- learn how to setup cloud storage
- learn basic SQL
- learn how to add data to cloud storage
- Setup dataset and table manually
- insert data into table from GCF
- Todo: use terraform to setup dataset. Script should be run by
deploy
.
- save measurements in DB
- Query DB
- Send data when GET
- Plot data
- AWS
- Pick up http put with AWS Lambd
- Add persistance
- save measurements in DB
- Query DB
- Send data when GET
- Plot data