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
Hashes for qbee_gpio-3.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e107451baf9f2bf4f420aa0c0b805daa44bb312582395dedb63a9474f0032e |
|
MD5 | 07e2e34dd336acc54ca2dd5b22cd5c24 |
|
BLAKE2b-256 | 2cc1dbd109db4e27a727d58467d283de034a0aeba9d88aecf23c8c4aeb58cb80 |