Spotify Connect

Introduction: Spotify Connect


How to connect your favorite speakers to spotify with the official application: Spotify Connect.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Wifi on Your Raspberry

I use a USB WIFI key on my Raspberry pi A+ (under raspbian) to connect the system on my domestical network.

The reference of the usb key use in the tutorial is a TP-LINK TL-WN725N.

To connect the system you have to change te file /etc/network/interfaces:

# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d<br>auto lo
iface lo inet loopback
#iface eth0 inet manual # put # to accelerate the boot
#allow-hotplug wlan0
#iface wlan0 inet manual
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#allow-hotplug wlan1
#iface wlan1 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "*****" # put your ESSID
wpa-psk "339***************3C1" #Put your wifi password

Step 2: Install Spotify Connect

Go to /home/pi.

Download the file develop by Fornoth:

curl -O <a href=""></a>

Make it executable:

chmod u+x

Launch the installation of the pre-build Spotify-connect:

./ install

The script is download into the file "spotify-connect-web-chroot".

Step 3: Spotify Appkey

You need a spotify premium account.

You need to download your "spotify_appkey.key" on this website:

Put yout ID/password and get your key "spotify_appkey.key"

Is not possible to gat your key with the raspberry (no web browser), so you need to get it with yout laptop and send it to the raspberry with SFTP protocol (filezilla for example) to the adress:


Step 4: System Launching

To test the environement launch the command with your spotify's ID/password. Optionnal you can choos the name of connection.

./ --username ID --password password --bitrate 320 --name Rpi

For automatical lunch creat a file launch in the repetory /home/pi. Put yout Spotify's ID/password.


set -e

trap "sudo umount $DIR/dev $DIR/proc" EXIT
sudo mount --bind /dev $DIR/dev
sudo mount -t proc proc $DIR/proc/
sudo cp /etc/resolv.conf $DIR/etc/
sudo chroot $DIR /bin/bash -c "cd /usr/src/app && python --username Identifiant --password MotDePasseCompte --bitrate 320 --name Rpi"

Create the file launchspotify in the repetory /etc/init.d/:


sleep 5

sudo sh /home/pi/launch &

Make it executable

sudo chmod 755 /etc/init.d/

Finaly launch the last command to launch spotify connect at boot:

update-rc.d defaults

Be the First to Share


    • LED Strip Speed Challenge

      LED Strip Speed Challenge
    • Sculpting Challenge

      Sculpting Challenge
    • Clocks Contest

      Clocks Contest