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 | 3 years ago | |
---|---|---|
LICENSE | 3 years ago | |
README.md | 3 years ago | |
setsnapstream | 3 years ago | |
snapswitch | 3 years ago | |
snapswitch.service | 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