Skip to content

Smart Home Project, based on Arduino/ESP8622 devices (clients)

Notifications You must be signed in to change notification settings

yorikya/roomserver

Repository files navigation

roomserver

Smart Home Project, based on Arduino/ESP8622 devices (clients)

This project has a few components for Smart Home, based those components you a build smart home with a cheap Arduino/ESP8622 devices.

Room

Content

  • Client - Arduino/ESP8622 device which communicates with the server and introduces a single room
  • Server - Server is written in Golang, accept room clients view and control them, rendering HTML for clients.

Install

Golang

go get github.com/yorikya/roomserve

Git

git clone https://github.com/yorikya/roomserve.git

Usage

Server

go run .

Client

  1. Replace ssID and wifiPass with your own local network in file
const String ssID     = "YuriIotLocal";         
const String wifiPass = "12345678";
  1. Upload arduino code to an Arduino device with WiFi module or just use ESP8622 bord with GPIO pins
  2. Each client runs local server on port 80:
curl http://10.0.0.9/logs 

Endpoints:

  • /logs last 50 internal logs
  • /action internal use endpoint for ardiono commands
  • /data sensors values

Features

Server

  • Accept rooms/devices via configuration file
  • Web server rendering room view
  • Web socket using for updating web view
  • Comunicate with clients to perform actions for diffrent devices
  • Serving static files

Client

  • Send DHT Sensor data
  • Control Door lock
  • Air Conditioner remote control
  • Control Room Light
  • Control RGB Strip

About

Smart Home Project, based on Arduino/ESP8622 devices (clients)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published