Remote web dashboard for Polivalka plant watering system.
Frontend: GitHub Pages (static HTML/CSS/JS) Backend: AWS Lambda + API Gateway Communication: AWS IoT Core (MQTT) Database: DynamoDB
Browser → GitHub Pages → API Gateway → Lambda → AWS IoT MQTT → ESP32
↓
DynamoDB
See lambda/ directory for Python code:
command_handler.py - Send commands to devicesensor_data_handler.py - Get sensor historydevices_handler.py - List devicesDeploy to AWS Lambda and create API Gateway endpoints.
Update api.js:
const API_BASE = 'https://YOUR_API_GATEWAY_ID.execute-api.us-east-1.amazonaws.com';
main branchYour site will be available at:
https://maximshurygin.github.io/polivalka-web/
{
"action": "water",
"duration_sec": 10
}
{
"action": "read_sensor"
}
{
"action": "stop"
}
Total: $0-12/year
Local testing:
python3 -m http.server 8080
open http://localhost:8080
MIT