All the previous difficulties I've been through to setup spotify connect in a raspberry PI with a Hifiberry DAC, seem to be highly minimized by using Volumio and some extra tweaks.
I set up another RPI (ain't they fun?), this time with a Hifiberry Amp+ (a 25w little marvel). Also I made a little DIY cabinet.. More on that later.
- To make it easier, I set up Volumio, which gave me Airplay out of the box, and also automatic support of the Hifiberry amp+
- Volumio lets you handle the amp's volume thru software! This fix is necessary, however:
By default, hardware colume control won’t work. Do enable this, edit /etc/mpd.conf and replace the “audio_output” section with the following configuration:
audio_output {type "alsa"name "Output"device "hw:0,0"mixer_type "hardware"mixer_device "default"mixer_control "Master"dop "no"}
- To handle the library thru my phone, I installed Mupeace in Android. AWESOME.
SPOTIFY CONNECT
- But I wanted spotify connect.. I followed the instructions from my previous posts:
- See "CONFIGURING SOUND & SPOTIFY CONNECT" in http://charlysaenz.blogspot.com.ar/2016/01/raspberry-pi-b-as-spotify-connect.html
- Modify console_callbacks.py according to:
- Problem with volumio is that I had to install the above stuff as root.. (sudo -i). Couldn't get it done in a different way.
- So, basically the whole installation will run under /root folder.
- In that folder I'll create a spconnect.sh script with this content:
/root/spotify-connect-web.sh --name volConnect1 --username myuser --password mypwd --bitrate 320 &
- Then the tricky part to run this on the startup. See the last part of the link below ("/etc/init.d")
- Create a script in /etc/init.d named spconnect, to handle the service, use the skeleton provided.
- sudo chmod +x /etc/init.d/spconnect
- cd /etc/init.d
- sudo update-rc.d spconnect defaults
- Reboot and ready!! Volume handling from the spotify client will work!
http://raspberrywebserver.com/serveradmin/run-a-script-on-start-up.html#disqus_thread