Code Monkey home page Code Monkey logo

home-automation's Introduction

Home Automation System

A smart home automation system with device self-discovery

Have you ever wondered how Alexa automatically discovers IoT devices in your local network?

The underlying protocol is called UPnP (Universal Plug-n-Play). It uses a protocol called SSDP(Simple Service Discovery Protocol) to discover devices in the local network and retreive their IP address and their services description.

This project aims to demo that through a simple implementation of SSDP. The Node.js server uses SSDP to discover devices on the local network, and uses Socket.io to transmit to the client in real-time. Clients can not only connect and use devices, they can even associate with their account

Hardware List:

  • NodeMCU ESP8266 (To emulate a smart LED Bulb)
  • LEDs for switching one (prefferably coloured ones)
  • 330 ohms resistor X 4
  • Breadboard
  • Jumper Wires

Circuit Diagram

Circuit Diagram

Made using Fritzing

Instructions

  • After setting up the circuit and flashing the code, boot up the NodeMCU.
  • It starts in station mode, creating a WiFi hotspot with a name starting with ESP
  • Connect to the hostpot, go to 192.168.4.1.
  • Add in your WiFi credentials, and then after the MCU reboots, you are ready to use it.

Software Requirements

  • Node.js 14.15.4 LTS
  • Yarn 1.22.10

Instructions

  • To install dependencies:
yarn install
  • Copy the .env.sample and rename it to .env.
  • Edit the .env file to fill in your server details such as port number, JWT secret and MongoDB URI. To access the frontend, set NODE_ENV to "production".
  • To start the server:
yarn start
  • Navigate to http://localhost:<PORT> to access your dashboard.

home-automation's People

Contributors

gitaalekhyapaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jeetshub

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.