Skip to content

Home

rct-manager Logo rct-manager Logo

Vendor-neutral REST gateway for RCT Power inverters, with Energy Manager and Prometheus metrics

GitHub Release Docker Pulls License


What is rct-manager?

rct-manager speaks the RCT serial protocol over TCP (port 8899) to one or more inverters and exposes measurements, optional write access and a Prometheus endpoint over HTTP. All requests to one inverter endpoint are serialized inside the process.

Key Features

  • REST API


    Measurements and opt-in, allow-listed writes with personal access tokens, fail-closed by default, RFC 9457 problem details.

    API Overview

  • Energy Manager


    Battery actions (charge, hold, discharge), operating modes per inverter, and a read-only charging plan preview (Dry-Run, sends no inverter command).

    Energy Manager ยท Charging Plan

  • Spot Market & Solar Forecast


    Quarter-hour day-ahead prices (Energy-Charts) and an Open-Meteo solar forecast, served from the database and fetched once per day.

    Spot Market

  • Monitoring & Export


    Prometheus text format at GET /metrics and optional push export to InfluxDB 2 or QuestDB.

    Prometheus Metrics

  • Secure by Default


    Hardened container, encrypted admin and dispatch databases, loopback bind, and TLS terminated at your reverse proxy.

    Authentication

  • Admin GUI


    Overview, inverters, Energy Manager, time-series database, API tokens and settings in one responsive interface.

    Quick Start

Quick Start

git clone https://github.com/Gill-Bates/rct-manager.git
cd rct-manager
python -m pip install -e .
cp settings.env.example settings.env
python -m app  # or run the container, see Docker

First start

Open http://127.0.0.1:8000/ and sign in as admin. The first start prints a boxed FIRST START block in the log with the one-time password.

Warning

Write access, dispatch and the Energy Manager are off until you enable and verify them in the GUI.

Quick Start Run with Docker

Screenshots

Energy Manager spot-market configuration and day-ahead price preview

At a glance

Topic Summary
Language Python 3.13+, FastAPI, Uvicorn
Devices 1 to 32 inverter endpoints, configured in the GUI
Authentication Personal access tokens (pat_...) as bearer tokens, fail-closed by default
Administration Web GUI: Overview, Inverters, Energy Manager, TSDB, Prometheus, API tokens, Settings, About
Writes Opt-in (enabled in the GUI) and limited to the approved parameters
Errors RFC 9457 problem details
Monitoring Prometheus text format at GET /metrics; optional push export to InfluxDB 2 or QuestDB
Transport Plain HTTP; TLS terminates at a reverse proxy
License MIT

Where to go next