diff --git a/README.md b/README.md index 1e42268..d51e5a8 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,48 @@ Enable on boot sudo systemctl enable squeezelite -## onlyone - utility +## 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 + + - cd /srv - git clone https://git.limbosolutions.com/marcio.fernandes/onlyone.git