Skip to content

apateonas/sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Read sensor to cloud


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:

  1. Learn to send HTTP requests from Raspberry Pi
    1. Connect Raspberry Pi to internet
    2. Send dummy HTTP request and pick up with GCF
      • use pastbin to test
    3. Send requests every minute with cron
      • make sure python path is specified in bash script
      • add MAILTO="" to cron to stop mail
    4. Write script to setup cron.
    5. Test on Raspberry Pi
  2. Read sensor measurements from Raspberry Pi
    1. Wire up sensor
    2. Read to json
    3. send json over HTTP
      • recorded in pastebin
  3. GCF
    1. Pick up http put with GCF
    2. Learn BigQuery
      1. learn how to setup cloud storage
      2. learn basic SQL
      3. 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.
    3. save measurements in DB
    4. Query DB
    5. Send data when GET
    6. Plot data
  4. AWS
    1. Pick up http put with AWS Lambd
    2. Add persistance
      • save measurements in DB
    3. Query DB
    4. Send data when GET
    5. Plot data

About

Record sensor readings in the cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published