bash plumbing to make snapcast clients switch to any stream that started playing
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Norwin fd7494ef2f mention `meta` source type 3 years ago
LICENSE Initial commit 3 years ago
README.md mention `meta` source type 3 years ago
setsnapstream add scripts 3 years ago
snapswitch add scripts 3 years ago
snapswitch.service add scripts 3 years ago

README.md

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