polivalka-web

🌱 Polivalka Remote Dashboard

Remote web dashboard for Polivalka plant watering system.

Architecture

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

Setup

1. Deploy Lambda Functions

See lambda/ directory for Python code:

Deploy to AWS Lambda and create API Gateway endpoints.

2. Configure Frontend

Update api.js:

const API_BASE = 'https://YOUR_API_GATEWAY_ID.execute-api.us-east-1.amazonaws.com';

3. Enable GitHub Pages

  1. Go to repository Settings
  2. Pages → Source: main branch
  3. Save

Your site will be available at: https://maximshurygin.github.io/polivalka-web/

Features

Device Commands

Water Plant

{
  "action": "water",
  "duration_sec": 10
}

Read Sensor

{
  "action": "read_sensor"
}

Stop Pump

{
  "action": "stop"
}

Cost

Total: $0-12/year

Development

Local testing:

python3 -m http.server 8080
open http://localhost:8080

License

MIT