bash plumbing to make snapcast clients switch to any stream that started playing
LICENSE | ||
README.md | ||
setsnapstream | ||
snapswitch | ||
snapswitch.service |
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