Giter VIP home page Giter VIP logo

ifp-class-iot's Introduction

Step 1: install raspbian OS on the RPi

tar -zxvf ...

Step 2: operate a raspberry pi

locate IP adress of router

ifconfig

find the IP adress of the RPi by scanning the IP of the router

nmap -F 192.168.178.1-254

ssh to the RPi

Shutdown safely

shutdown -h now
# then pull out the power cable

Restart

shutdown -r now

Step 3: initial server setup

Once raspbian is setup we do the digital ocean initial server setup https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-8

Step 4: Build the circuit with Python and GPIO

python3 -m venv ~/venv
source ~/venv/bin/activate
sh install_librairies.sh

if there is a problem at this stage sudo chown -R pi ~/venv/lib/python3.5/site-packages/

Modify if needed electronics.py with the help of https://pinout.xyz/

python electronics.py

Step 5: Publish the data using MQTT

Understanding the concept of MQTT:

  • mosquitto_sub -d -t ifp_mqtt
  • mosquitto_pub -d -t ifp_mqtt -m "Hello IFP"

Demo of posting sensor data to MQTT:

  • first tab python mqtt_subscriber.py
  • second tab python mqtt_publisher.py

Getting a dashboard: python publish_to_thingsboard

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.