Control an LCD display and amplifier relay for use in an AirPlay and/or Spotify Connect Raspberry Pi server.
Project description
qbee-gpio
A python script to control an LCD and amplifier relay for use in an AirPlay and/or Spotify Connect Raspberry Pi server.
- Detect sound ouput and turn on the amplifier power supply.
- Get the track information and display it on an LCD.
- Auto turn off amplifier power supply and/or shutdown after set period of inactivity.
Additional documentation:
Installation
sudo python -m pip install qbee-gpio
For first time usage:
qbee --init-config
then change what you need in ~/.qbee.yaml
.
Usage
qbee
Pass a -v
flag for verbose logging.
Detailed setup
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=/usr/local/bin/qbee
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
Enable to run on boot: sudo systemctl enable qbee --now
.
Optionally, specify a CONFIG
env variable when running the script:
CONFIG="/etc/qbee.yaml" qbee ...
.
The default config will be located at ~/.qbee.yaml
.
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
File details
Details for the file qbee_gpio-3.0.2.tar.gz
.
File metadata
- Download URL: qbee_gpio-3.0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7412ce295cfbf5294c3516b4a4f7414dd35cdafbd8ee9631749e48949108f736 |
|
MD5 | f28369ba96a6422ff7bb0c20047f1632 |
|
BLAKE2b-256 | b0c0659cfefc99350936dc2e1d10c0e071d083495575bb1998edefbc6a009750 |
File details
Details for the file qbee_gpio-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: qbee_gpio-3.0.2-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b1441c8e9381163bc9311d3557451ef691fadd5861d5639ca21efc7f7e27ba |
|
MD5 | cb1c5be3f079a0ff5be79806bf63bf20 |
|
BLAKE2b-256 | 44fc8be51a1647f9dff670b5e50e4627574e308548ad6f255b4ebdb4745e1dfe |