Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hifipower-0.2b2.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file hifipower-0.2b2.tar.gz.

File metadata

  • Download URL: hifipower-0.2b2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for hifipower-0.2b2.tar.gz
Algorithm Hash digest
SHA256 9a41b90478d81e199b8d3d99dc36ad417a7aba04ba010a5323db2353922900ee
MD5 95728c652b0e9f7fedc2fa0cbd3d116e
BLAKE2b-256 14f856599a7f211260d88890f458faa974ad5af5c8874a968217110901de4607

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page