On/off control via web API for hi-fi audio equipment
high fidelity equipment power controller daemon
A daemon running on an Orange Pi or RPi, exposing a web API for switching the audio equipment on or off, using a relay connected with one of the GPIO pins.
This software reads a configuration file (/etc/hifipowerd.conf) and gets the pin numbers for shutdown and reboot buttons, automatic mode sense and relay drive output. Then the web API is started, exposing three endpoints:
address/hifi/power (GET) - get the current state as JSON,
address/hifi/power/on (GET) - turns the power on,
address/hifi/power/off (GET) - turns the power off.
Use PulseAudio or ALSA to detect lack of audio signal on the input (configurable), then if no audio is present for a preset time (e.g. 10 minutes), turn the equipment off automatically. Prevents idle power draw by e.g. vacuum tube amplifiers.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size hifipower-0.1b7.tar.gz (4.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|