Giter Site home page Giter Site logo

iotworkshop's Introduction

IOT weather sensor workshop

In this workshop we will learn how to do many things! Set up a raspberry Pi, add wifi settings to it and connect with ssh, connect a temperature sensor, send data to an online time series called PubNub, set up a simple website with visualisation. Then go more complex and store the data in Influxdb and crate a Grafana dashboard.

Tools you need for this workshop:

  • Raspberry Pi 4, or 3 or 3b
  • Power supply
  • Micro SD card with 4-16 GB
  • Micro SD to usb adapter
  • Circuit breadboard
  • DHT22 sensor from Adafruit with 10ohm resistor
  • 3 connecting wires

For setting up the raspberry Pi follow the instructions in 0_pi-setup For setting up the sensor follow the instructions in 1_sensor-setup

Part 1

For sending data to pubnub and visualize it, follow the instructions for data collection in data-collecting-v1.

For visualizing the data and setting up a static website check the instructions in data-visualization-v1.

Part 2

For collecting data locally on the rpi follow instruction in data-collecting-v2. For installing and seting up a grafana dashboard follow the instructions in data-visualization-v2.

A few useful Git commands

During the workshop we made individual forks of the PyLadies Hamburg version of this repo. Changes made to the original version will not automatically be updated in our forks. To update our fork we can use the following commands to pull from the "upstream" repo.

# set the upstream
git remote add upstream https://github.com/pyladieshamburg/IOTworkshop.git
# to check this run
git remote -v
# the output should look like this
> origin    https://github.com/<YOUR_USERNAME>/IOTworkshop.git (fetch)
> origin    https://github.com/<YOUR_USERNAME>/IOTworkshop.git (push)
> upstream  https://github.com/pyladieshamburg/IOTworkshop.git (fetch)
> upstream  https://github.com/pyladieshamburg/IOTworkshop.git (push)
# origin is your fork, upstream is the original pyladieshamburg version
# fetch upstream
git fetch upstream
# merge changes from upstream to our fork
git merge upstream/master
# note if you have changes to your fork you have not yet commited you may be asked to commit or stash them.
# to stash run
git stash
# once you have successfully merged the upstream following the instructions above you can get those change back with
git stash pop

Because we found a few typos we reccomend you do this when you are at home after the workshop, so you have the latest changes ๐Ÿ˜„

Visual Checklist

Checkout the Checklist!!

iotworkshop's People

Contributors

terezaif avatar sleepypioneer avatar lenavolzhina avatar marimeireles avatar nlea avatar tailinhares avatar fer-nan-da 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.