A simple script for setting up a raspberry pi as a snapcast server or client.
This is meant as a helper script to run on a Raspberry Pi using the base Raspbian image.
Installation and final product is a Sonos like multi room audio system. Requires at least one server install (though you can run both server and client on the same machine). To add additional clients simply install, they will connect as long as they are on the same internal network (one client per Pi or set of speakers).
After installation you can access the audio controls on port 1780 of your Server Raspberry Pi IP. (e.g. 192.168.1.3:1780). This will allow you to mute individual clients.
Assumptions
- Using Spotify as the audio source. This will install the librespot library from scratch (only required on the Server install).
- At least a Raspberry Pi 3.
- Clean install of Raspbian to start. If you've previously edited your config files the patches may cause damage to those files.
- HifiBerry DAC will be used as the audio output.
Two supported flags --server and --client
./install --client
or ./install --server
- Config.patch Update's proper config to /boot/config.conf. (Removes dtparam=audio=on and replaces it with dtoverlay=hifiberry-dacplus)
- Asound.patch Add's proper asound config for audio output through the HifiBerry DAC.
- Wpa.patch Must edit this patch file to add your SSID and PSK password for the Raspberry Pi to auto boot to wifi.
- None. This is a convenience script for me to use, feel free to do with it as you will, but I likely won't be doing much support in the future.