I've been on a home lab kick lately and this is my favorite thing I've built. Here's the full stack:
The Hardware
22-panel Enphase solar system with Envoy-S gateway
Rainforest EAGLE-200 smart meter bridge (reads my PG&E meter in real time)
Self-hosted on my co-located Debian server
The Problem
Both devices have local APIs but they're slow, finicky, and not designed to be polled constantly. Hitting them directly every 30 seconds from a web page would be sluggish and would hammer the devices.
The Solution
A cronjob runs every 5 minutes and hits both APIs, storing the results in a SQLite database on my server. The web app reads from the DB — sub-millisecond response times.…