bash plumbing to make snapcast clients switch to any stream that started playing
Find a file
2021-10-02 14:01:09 +02:00
LICENSE Initial commit 2021-02-24 09:36:41 +01:00
README.md mention meta source type 2021-10-02 14:01:09 +02:00
setsnapstream add scripts 2021-02-24 09:54:46 +01:00
snapswitch add scripts 2021-02-24 09:54:46 +01:00
snapswitch.service add scripts 2021-02-24 09:54:46 +01:00

snapcast-autoswitch

bash plumbing to make snapcast clients switch to any stream when it starts playing

NOTE: snapcast recently added an meta source type in v0.22.0, making this script mostly obsolete

install

# install dependencies
apt-get install bash jq curl netcat

# link scripts into $PATH
BIN=/usr/bin
ln -sf $PWD/setsnapstream $BIN/
ln -sf $PWD/snapswitch $BIN/

# install service
ln -sf $PWD/snapswitch.service /etc/systemd/system/
systemctl start snapswitch
systemctl enable snapswitch

usage

manual switch to a stream for a given snapclient group

setsnapstream <stream id> [<snap group name> [<snapserver host>]]

license

GPL, see LICENSE file