METHOD 1: Spotify Connect web by Fornoth
Tested on RPi2, RuneAudio 0.4-beta_20170229, Boss Dac. It works perfect!
From this thread:
#3315
You need to extend partition first.
curl -OL https://github.com/Fornoth/spotify-connect-web/releases/download/0.0.3-alpha/spotify-connect-web.sh
nano /root/spotify-connect-web.sh
Remove all 'sudo '
#!/bin/bash
set -e
DIR=~/spotify-connect-web-chroot
if [ "$1" == "install" ]; then
mkdir -p $DIR
cd $DIR
curl -L https://github.com/Fornoth/spotify-connect-web/releases/download/0.0.3-alpha/spotify-connect-web_0.0.3-alpha_chroot.tar.gz | tar xz
else
trap "umount $DIR/dev $DIR/proc" EXIT
mount --bind /dev $DIR/dev
mount -t proc proc $DIR/proc/
cp /etc/resolv.conf $DIR/etc/
chroot $DIR /bin/bash -c "cd /usr/src/app && python main.py $*"
fi
chmod +x spotify-connect-web.sh
/root/spotify-connect-web.sh install
wget https://github.com/RafaPolit/moode-spotify-connect-web/raw/master/spotify_appkey.key
mv /root/spotify_appkey.key /root/spotify-connect-web-chroot/usr/src/app
Now test:
/root/spotify-connect-web.sh --name RuneAudio --device 0 --mixer Digital --username abc --password xyz --bitrate 320
--device <value> --mixer <value> from alsamixer:
If everything's OK. Now you can see RuneAudio Connect on your Spotify app!
Store this service file as /usr/lib/systemd/system/spotify-connect.service:
nano /usr/lib/systemd/system/spotify-connect.service
[Unit]
Description=Spotify Connect
After=network.target
[Service]
ExecStart=/usr/bin/sh /root/spotify-connect-web.sh --name RuneAudio --device 0 --mixer Digital --username abc --password xyz --bitrate 320
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
To test the service execute:
systemctl start spotify-connect
If all works, you can enable the service (start on boot):
systemctl enable spotify-connect
Adjust Spotify volume on app or web, also control volume on RuneAudio.
After successfully install v0.0.3. You can update to v0.0.4 by the same this way. If you install v0.0.4 first, it's not working.
More information:
https://github.com/Fornoth/spotify-connect-web/releases
Many thanks to RuneAudio team for a wonderful Audiophile OS.
Many thanks to @Fornoth, @hongdagx35,
@[deleted],
@[deleted]...
METHOD 2: Spotifyd by Simon Persson
Many thanks to dynobot!
#631526