This is a PPI (Pi Power Interface) for bakery. A PPI enables bakery to remotely power on and power off Raspberry Pis.
Configuration must be provided in ppiConfig.json. See example_ppiConfig.json for an example. Both the ppi binary and The ppiConfig.json (or symlink) must be placed in the working directory of bakery itself.
This ppi assumes a very simple web api:
- poweron: /poweron/
- poweroff: /poweroff/
is read from the ppiConfig.json file. is de an ID by which the Power manager (physical part) can idintify which port of the power manager to poweron of poweroff. The relation between PiId and is stored in ppiConfig.json
Two example implementations for a power manager are in the espNode and arduinoYunPPM directories