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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qbee_gpio-1.0.0.tar.gz.
File metadata
- Download URL: qbee_gpio-1.0.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61f000ae5845d19d8aa14186ac9884d5d1f129acdfc7f90be2374130046bad5f
|
|
| MD5 |
89008fd2813c92040b2ccd517941f419
|
|
| BLAKE2b-256 |
5722e37c12a54f40fcf43b47dcdb054a131317963200d30f680391bab3eba247
|
File details
Details for the file qbee_gpio-1.0.0-py3-none-any.whl.
File metadata
- Download URL: qbee_gpio-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd4429270b4179d2d40533e988b6d82e94172b8b8402178febc8ff35e2f657ce
|
|
| MD5 |
eb9b53a9a594ad4f971cb3de98c3a6ab
|
|
| BLAKE2b-256 |
04d325cb40ac2d6d37efa7eadd40ebb80a25e3bd77ef6411dbb82beab96e3751
|