Nice! After some fiddling around with chroot I got this up and running. One small question though:
Does anyone know how to make the device name permanent? When I run
./spotify-connect-web.sh --username 12345678 --password xyz123 --bitrate 320
the pi shows up as “TestConnect” (remote name: TestConnect). Accessing the WebUI under
it’s pretty easy to change that name but as soon as I stop and restart chroot it goes back to the default name.
Once you have installed the chroot pre-build, you have a new directory in your user home folder called
for instance, if you did with PI as user you should have
Cd in this directory, then cd to
and place here your key.
This is the same thing than
sudo cp spotify_appkey.key spotify-connect-web-chroot/usr/src/app/
(if the key is in the directory from where you type the command.
Spotify doesn’t allow this, not even on the same network… I would’ve gone premium sooner if they did. They might allow this with the official manufacturer stuff though, or the manufacturers found a way around it re-streaming to other speakers. But spotify only allows one stream at a time.
after that download I find the “spotify-connect-web-chroot” under “/root/spotify-connect-web-chroot”
I copy my spotify_appkey.key to /root/spotify-connect-web-chroot
with ./spotify-connect-web.sh --username myusername --password mypassword --bitrate 320 I get the following error:
Traceback (most recent call last):
File “main.py”, line 9, in
from connect import Connect
File “/usr/src/app/connect.py”, line 8, in
from console_callbacks import audio_arg_parser, mixer, error_callback, connection_callbacks, debug_callbacks, playback_callbacks, playback_setup
File “/usr/src/app/console_callbacks.py”, line 16, in
audio_arg_parser.add_argument(’–mixer’, ‘-m’, help=‘alsa mixer name for volume control’, default=alsa.mixers())
IndexError: list index out of range
1 - I put my key in ./spotify-connect-web-chroot/usr/src/app
2 - Your problem seems to be a problem with alsa. You can try to use a different miser by adding -m mixername or -D devicename in your command line
In fact, in the base version, spotify-connect keep alsa device even when not playing music.
With this fork https://github.com/Fornoth/spotify-connect-web/network when not playing spotify-connect, you can use mpd (don’t know for airplay). You have to stop mpd playing and not pause to be able to use spotify connect. In the same way you have to stop playing spotify to use mpd.
Wonder could I use the new code here: github.com/julfla/spotify-conne … f107b42c6f and inject it into Volumio somewhere so it automatically kills the daemon once it detects MPD/Airplay initiating, and restarts it on stop…