Home
Vendor-neutral REST gateway for RCT Power inverters, with Energy Manager and Prometheus metrics
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.
-
Energy Manager
Battery actions (charge, hold, discharge), operating modes per inverter, and a read-only charging plan preview (Dry-Run, sends no inverter command).
-
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.
-
Monitoring & Export
Prometheus text format at
GET /metricsand optional push export to InfluxDB 2 or QuestDB. -
Secure by Default
Hardened container, encrypted admin and dispatch databases, loopback bind, and TLS terminated at your reverse proxy.
-
Admin GUI
Overview, inverters, Energy Manager, time-series database, API tokens and settings in one responsive interface.
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.
Screenshots¶

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¶
- Environment Variables: start parameters; everything else is set in the GUI.
- Operation: production constraints.
- Hardware Verification: what is verified on real inverters.
- Protocol Specification: vendor protocol PDF.
- Troubleshooting: common problems.