Giter VIP home page Giter VIP logo

iot-web-service-on-raspberry-pi-4's Introduction

IOT Web Service on Raspberry Pi 4

Abstract

This project will use flask to return the sensors data to "http://your-ip/node-01" as a web service in JSON type.

Requirement

Devices

Software

  • Linux OS
  • Python 3
  • flask, RPI.GPIO, board, serial, adafruit-blinka, unzip

Usage

  • Download and install Python 3 on Official Website
  • Download the project to /home/pi/ and unzip the project
$ cd /home/pi
$ sudo apt-get install unzip
$ wget https://github.com/yimincai/IOT-Web-Service-on-Raspberry-Pi-4/archive/master.zip
$ unzip IOT-Web-Service-on-Raspberry-Pi-4-master.zip
  • Install require libs:
$ pip install flask RPi.GPIO board serial
$ pip3 install adafruit-blinka
  • Download the project to /home/pi
  • add this line to /ect/profile to let project auto run on boot
$ sudo python3 /home/pi/Sensors/app.py &
  • Change python files permission
$ sudo chmod 777 /home/pi/Sensors/app.py
$ sudo chmod 777 /home/pi/Sensors/sensors.py
  • Reboot your Raspberry Pi 4 to test the service
$ sudo reboot

iot-web-service-on-raspberry-pi-4's People

Contributors

yimincai avatar dominiclauyf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.