Skip to main content
Vincenzo Ceccarelli Grimaldi

Distributed energy resources

GridOS

Open-source FastAPI service for registering distributed energy resources (DERs), ingesting telemetry and issuing basic control commands.
Public, under constructionLicence: MIT

Status

The repository README is titled "under construction". The supported scope is the API service for device registration, telemetry and control; digital twin, forecasting and optimisation modules are experimental and not mounted in the default app.

Problem

DER devices speak different protocols and report in different shapes. A small, runnable service that registers devices, accepts telemetry and records control commands gives a first working path without a large deployment.

Approach

A FastAPI application with device, telemetry and control routes, in-memory storage by default and an SQLite file backend for persistence. Modbus TCP and MQTT adapters come with built-in device and broker simulators. Optional InfluxDB or TimescaleDB storage and an optional API-key gate on mutating endpoints are available. The README also describes economic dispatch and ROI backtest endpoints and a browser demo page.

Architecture

GridOS request pathLayers from top to bottom: Client (Script, browser demo or other service); then FastAPI service (Device routes · telemetry routes · control routes); then Adapters (Modbus TCP · MQTT (with built-in simulators)); then Storage (In-memory (default) · SQLite · InfluxDB / TimescaleDB (optional)).ClientScript, browser demo or other serviceFastAPI serviceDevice routes · telemetry routes · control routesAdaptersModbus TCP · MQTT (with built-in simulators)StorageIn-memory (default) · SQLite · InfluxDB / TimescaleDB (optional)

GridOS request path

  1. Client: Script, browser demo or other service
  2. FastAPI service: Device routes · telemetry routes · control routes
  3. Adapters: Modbus TCP · MQTT (with built-in simulators)
  4. Storage: In-memory (default) · SQLite · InfluxDB / TimescaleDB (optional)

Simplified from the architecture diagram in the repository README. Experimental modules are not part of the default app.

Limits

Under construction. Protocol adapters beyond Modbus TCP and MQTT, digital twin simulation, forecasting and optimisation are experimental. It is not a certified control system.

Related