This is a very simple REST API that wraps the PowerPanel pwrstat application for CyberPower uninterruptible power supplies. Only basic GET support for a single JSON object response for all parameters of the UPS are implemented.
The latest versions of this container disable the auto turn off features for power failure and low battery that is configured by default for pwrstat.
- Configuration example: docker-compose.yaml
- Clone GitHub repo to local computer.
- PowerPanel binary is automatically downloaded on build.
- Run Docker build, or use docker-compose.yaml, the included Docker-Compose example.
- Access JSON response at http://:5002/pwrstat