Update 'README.md'
This commit is contained in:
42
README.md
42
README.md
@@ -109,8 +109,46 @@ Enable on boot
|
|||||||
|
|
||||||
## onlyone - utility
|
## onlyone - utility
|
||||||
|
|
||||||
cd /srv
|
**Prerequisites**
|
||||||
git clone https://git.limbosolutions.com/marcio.fernandes/onlyone.git
|
- 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user