Update 'README.md'

This commit is contained in:
2022-01-21 12:12:11 +00:00
parent 26c06e2c37
commit 2c59efc971

View File

@@ -109,9 +109,47 @@ Enable on boot
## onlyone - utility
**Prerequisites**
- Git
sudo apt install git
### Setup
1. Download git
cd /srv
git clone https://git.limbosolutions.com/marcio.fernandes/onlyone.git
1. Copy/download [configuration file](etc/onlyone/config.yaml) to /etc/onlyone
1. Change configuration file squeezelite player name
1. Setup as service
Copy/download [service file](etc/system/systemd/onlyone.service) to etc/system/systemd
sudo systemctl enable onlyone.service && sudo systemctl start onlyone.service
### How to use onlyone
- user must be part of group onlyone (group is created on first service start)
usermod -a -G onlyone USERNAME
- Start squeezelite
echo "squeezelite" > /tmp/onlyone_fifo
- Start bluealsaaplay
echo "bluetooth" > /tmp/onlyone_fifo
- checking onlyone for errors or Information
sudo systemctl status onlyone