Grid Watch is a real-time power monitoring solution designed to track the stability of your local electricity grid. Using an ESP microcontroller, the system detects outages or irregularities in power supply and visualizes them through a web interface.
-
ESP Device Monitoring
The ESP device is plugged into your home power supply. Every 10 seconds, it sends aping
to the backend server, indicating that power is available. 🔌 -
Backend Processing
The backend records the timestamp of each ping. If the time difference between two consecutive pings exceeds 30 seconds, it is considered a power outage or disruption. This event is then logged into the database. 🐘 -
Web Visualization
The website fetches the logged data and displays it in a clear, bar-format chart. Each bar represents a detected outage, allowing you to easily visualize the frequency and duration of power interruptions. 📊
- Real-Time Monitoring: Immediate detection of power outages. ⏱️
- Automatic Logging: Outages are automatically recorded in the database. 📝
- Simple Setup: Just plug in the ESP device, config files and start monitoring. 🧩
- ESP Firmware: Handles periodic pings to the backend. 🖥️
- Backend Server: Receives pings, detects outages, and stores events. 🗃️
- Frontend Website: Visualizes outage data in a user-friendly format. 🌐
-
Flash the ESP:
Upload the provided firmware to your ESP device. (Make sure you add api key and wifi creds) 🔥 -
Connect to Power:
Plug the ESP into your home power supply. ⚡ -
Configure Backend:
Set up the backend server to receive pings and connect to your database. 🛠️ -
Launch the Website:
Start the frontend to view outage data in real time. 🌍
- ESP32 (Arduino framework) (PlatformIO)
- Backend: ExpressJS
- Database: PostgreSQL
- Frontend: Svelte
This project is licensed under the MIT License.