Skip to content

sbruggeman/pwrstat-api

Repository files navigation

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

About

super simple rest API returns JSON values output by CyberPower pwrstat application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors