On/off control via web API for hi-fi audio equipment
Project description
# hifipower
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.
Future features
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hifipower-0.1b4.tar.gz
.
File metadata
- Download URL: hifipower-0.1b4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcb47066c25d2b573446457ce2bb481db9b11a7a3e6a2365e7b3120baae63544 |
|
MD5 | afb5d629df6155c134528c8b2709b94b |
|
BLAKE2b-256 | 8d9c50bc9576df1b83d68dcbf47eebd07fdde8fc8064a0da0b18a6943c1da9fd |