GithubHelp home page GithubHelp logo

playroom's Introduction

Simple room occupancy observer

Simple room occupancy observer IoT system based on two PIR modules and node server. blah blah blah...

Commands

Start server

npm run server

Build front

npm run client

stack

Hardware:

  • ESP8266 NodeMCU v3
  • PIR HC-SR501

Server:

  • Express
  • Redux
  • Socket.io

Client:

  • Hyperapp

Prerequisites

App

  • nodejs

Arduino

  • Arduino IDE

Notes

Arduino

Used third party libs:

ArduinoJson https://github.com/bblanchon/ArduinoJson

esp8266 https://github.com/esp8266/Arduino

Setup process

  1. Install Arduino IDE ( https://www.arduino.cc/en/main/software )
  2. Install ArduinoJson ( https://github.com/bblanchon/ArduinoJson )
    1. Open Arduino IDE
    2. Go to Manage Libraries from Sketch -> Include Library menu (in topbar)
    3. Search for ArduinoJson
    4. Select version 5.x
    5. Install
    6. ...
    7. Profit
  3. Install esp8266 ( https://github.com/esp8266/Arduino#installing-with-boards-manager )
  4. Should be good

Test API

Test data for POST to /update

{
    "id": 10,
    "deviceId": 15,
    "status": "occupied"
}

playroom's People

Contributors

mstaniuk 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.