GithubHelp home page GithubHelp logo

sensor's Introduction

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

sensor's People

Contributors

apateonas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.