Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 864 Bytes

File metadata and controls

18 lines (12 loc) · 864 Bytes

PowerPanel API (pwrstat-api)

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.

Important Note!

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.

Usage

Using pre-built Docker Image

Building Manually

  • 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