Skip to content

aro-builds/SmartGridStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔋 Smart Microgrid Event-Driven Real-Time Balancing Architecture

A publication-ready, distributed stream-processing implementation engineered for decentralized renewable energy grids. This system replaces legacy periodic batch reports with an edge-native Apache Kafka (KRaft Mode) pipeline to execute sub-millisecond local battery discharges and macro-grid power redirection.

🚀 Architectural Blueprint Overview

  1. Producer Layer (producer.py): Simulates high-frequency metric packet arrays emitting from regional solar inverters every 500ms using key-hashing partition routing.
  2. Event Broker Core (docker-compose.yaml): An ultra-fast single-node Kafka infrastructure running native KRaft consensus.
  3. Control Actuator Loop (consumer.py): Automatically computes localized load metrics and triggers reserve power injections.
  4. Operator Portal (dashboard.py): A production-grade web dashboard utilizing native math arrays for real-time SVG probability distributions and an integrated AI chat copilot layout.

🛠️ Step-by-Step Local Deployment Quickstart

1. Fire Up the Core Infrastructure Broker Containers

Ensure Docker Desktop is active in the background. Right-click your docker-compose.yaml file inside VS Code and choose Compose Up (or execute via your system terminal):

docker compose up -d
  • verify your visual streaming database logs panel is online by navigating to: http://localhost:9000 (Kafdrop GUI).

2. Activate Your Python Virtual Environment Subsystem

source venv/bin/activate
pip install kafka-python-ng requests

3. Spin Up the Real-Time Operational Code Channels

Open two separate parallel terminal panels inside your environment workspace:

  • Terminal Tab 1 (Data Feed Ingestion): Run python producer.py
  • Terminal Tab 2 (Operator Portal Engine): Run python dashboard.py

Open your local internet web browser and visit: http://localhost:8000

About

An event-driven, edge-native distributed computing architecture for decentralized renewable energy grids using Apache Kafka (KRaft mode). Features real-time statistical load balancing, automated battery reserve actuation, and an intelligent analytical operator copilot.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages