Runs PowerMaster+ UPS management software from a Docker container. Original idea from Reddit and Fredrik JΓΆnsson (see https://github.com/fjollberg/rpi-powerwalker-plus)
PowerMaster is the controller software for BlueWalker/PowerWalker UPS devices.
The software is organised in a "Local" component, typically run on a computer with a USB-connection with the UPS device, and a "Remote" component, run on all other hosts which listens to UPS events "Local" broadcasts.
This container provides the "Local" service.
Before to start check and in case change the "env.mk" entry:
PMASTERP_URL="https://powerwalker.com/wp-content/uploads/2022/01/pmp122_linux64.zip"
The Makefile is offering following entrypoints:
all β
Build&Setup Powerwalker+
build ποΈ Build Powerwalker+ image&container
connect π§ Connect Powerwalker+ container
cleanup π§Ή Cleanup Powerwalker+ container&image
setup π§ Setup Powerwalker+ container
start π Start Powerwalker+ container
status π Status Powerwalker+ container
stop π Stop Powerwalker+ container
debug π Debug Powerwalker+ (debug-purpose)
logs π Logs Powerwalker+ container
PowerMaster+ Docker container setup is done issuing:
make all
or
make build
make setup
later you can browse to http://localhost:3052/local
You can stop PowerMaster+ Docker container issuing:
make stop
Once built You can start PowerMaster+ Docker container issuing:
make start
You can cleanup PowerMaster+ Docker image & container issuing:
make cleanup
make connect
Connecting to the container with another shell makes it possible to kill the java process and start a new manually in order to catch output.
./jre/bin/java -classpath lib/Startup.jar -Xmx256m -Xms128m -Djava.net.preferIPv4Stack=true -Djava.library.path=./bin -Djava.ext.dirs=./jre/lib/ext com.cyberpowersystems.ppbe.startup.Startup start
Assuming you use the provided jre and that /opt/pmasterp/data is the current working directory.