Skip to main content

Control an LCD display and amplifier relay for use in an AirPlay Raspberry Pi server.

Project description

QBee gpio controller

A python script to control an LCD and amplifier relay for use in an AirPlay Raspberry Pi server.

  • Detect sound ouput and turn on the amplifier power supply.
  • Get the track information and display it on an LCD (using a fifo pipe exposed by shairport-sync).
  • Auto turn off amplifier power supply and/or shutdown after set period of inactivity.

Usage

python -m pip install --user qbee-gpio

For first time usage: ~/.local/bin/qbee --init-config then change what you need in .qbee.yaml.

For starting up automatically, create /etc/systemd/system/qbee.service file with (adjust users/paths):

[Unit]
Description=Qbee
After=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
User=qbee
Group=qbee
ExecStart=/home/qbee/.local/bin/qbee
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target

Then run:

sudo systemctl enable qbee
sudo systemctl start qbee

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

qbee_gpio-1.0.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

qbee_gpio-1.0.0-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

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