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.
- 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.
go get github.com/yorikya/roomserve
git clone https://github.com/yorikya/roomserve.git
go run .
- Replace
ssID
andwifiPass
with your own local network in file
const String ssID = "YuriIotLocal";
const String wifiPass = "12345678";
- Upload arduino code to an Arduino device with WiFi module or just use ESP8622 bord with GPIO pins
- 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
- 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
- Send DHT Sensor data
- Control Door lock
- Air Conditioner remote control
- Control Room Light
- Control RGB Strip