A smart energy intelligence socket system that monitors, analyzes, and controls electricity usage in real time while calculating live cost in Ghana Cedis.
# PowerView
Smart Energy Intelligence System for Real-Time Power Monitoring, Cost Tracking, and Remote Control
---
## Overview
PowerView is an IoT-based energy intelligence platform designed to transform electrical appliances into measurable and controllable smart nodes.
It enables real-time monitoring of electrical consumption, automated energy cost estimation, and secure remote device control through a cloud-connected architecture.
The system is designed for residential, commercial, and industrial environments where visibility, control, and optimization of energy usage are required.
---
## System Modules
- ESP32-C3 Smart Socket Firmware
- FastAPI Backend (Telemetry and Control Engine)
- Supabase PostgreSQL Database
- Next.js Dashboard (User Interface and Analytics Layer)
- Redis and Celery (Background Processing and Task Queue)
---
## Core Features
- Real-time voltage, current, power, and energy monitoring
- Continuous energy consumption tracking
- Automated billing calculation in Ghana Cedis (GH₵)
- Remote ON/OFF control of connected appliances
- Smart alert system for overload and abnormal usage
- Device provisioning and authentication system
- Scalable multi-device architecture
---
## System Architecture
PowerView follows a distributed IoT architecture:
ESP32 Device ↓ (WiFi / HTTPS) FastAPI Backend ↓ Redis Queue + Celery Workers ↓ Supabase PostgreSQL Database ↓ Next.js Dashboard
---
## Key Capabilities
### Edge Layer
- Sensor data acquisition on ESP32-C3
- Local preprocessing of electrical measurements
- Real-time relay control execution
### Cloud Layer
- Central telemetry ingestion API
- Energy computation and billing engine
- Device management and control services
### Application Layer
- Real-time monitoring dashboard
- Historical energy analytics
- Billing visualization per device and time period
---
## Billing System
PowerView implements a continuous energy billing model based on:
- Real-time energy consumption (kWh)
- Configurable …