Tested on RPi2, RuneAudio 0.4-beta_20170229, Boss Dac. It works perfect!
From this thread:
spotify-connect-autostart-t3315.html
You need to extend partition first.
- Code: Select all
curl -OL https://github.com/Fornoth/spotify-connect-web/releases/download/0.0.3-alpha/spotify-connect-web.sh
- Code: Select all
nano /root/spotify-connect-web.sh
Remove all 'sudo '
- Code: Select all
#!/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
- Code: Select all
chmod +x spotify-connect-web.sh
- Code: Select all
/root/spotify-connect-web.sh install
- Code: Select all
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:
- Code: Select all
/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:
- Code: Select all
nano /usr/lib/systemd/system/spotify-connect.service
- Code: Select all
[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:
- Code: Select all
systemctl start spotify-connect
If all works, you can enable the service (start on boot):
- Code: Select all
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, @Lazerharp, @Stert...
METHOD 2: Spotifyd by Simon Persson
Many thanks to dynobot!
spotify-connect-on-runeaudio-t6315-20.html#p27695