spotify on raspberry pi

system configuration

enable ipv6
first, check if its loaded

sudo sysctl -a|grep ipv6

if not load it

sudo modprobe ipv6

and also load it on every reboot with:

echo ipv6|sudo tee -a /etc/modules

install mopidy

main documentation from here

if you have another running instance of mpd/mpc shut it down – because mopidy has its own mpd/mpc

1. Add the archive’s GPG key:
wget -q -O – https://apt.mopidy.com/mopidy.gpg | sudo apt-key add –
2. Add the following to /etc/apt/sources.list, or if you have the directory /etc/apt/sources.list.d/, add it to a file called mopidy.list in that directory:
# Mopidy APT archive
deb http://apt.mopidy.com/ stable main contrib non-free
deb-src http://apt.mopidy.com/ stable main contrib non-free
For the lazy, you can simply run the following command to create /etc/apt/sources.list.d/mopidy.list:
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/mopidy.list
3. Install Mopidy and all dependencies:
sudo apt-get update
sudo apt-get install mopidy

about 25MB disk space will be used

4. now you can choose, if you want to run mopidy as a service (in the background) or only for testing as a user instance. (see also here)
running it as a user instance – first disable the service and shut it down
sudo update-rc.d mopidy disable
sudo service mopidy stop
start mopidy with
mopidy

to configure it as a service first check if its running
ps aux | grep ‚mopidy‘
sudo service mopidy status

or start it
sudo service mopidy start

service commands
sudo service mopidy start
sudo service mopidy stop
sudo service mopidy restart
sudo service mopidy status

5. configuration
the config-file contains only changes to the default config. check your config with
user
mopidy config
service
sudo mopidyctl config

user-configuration-file
nano ~/.config/mopidy/mopidy.conf

service-configuration-file
sudo nano /etc/mopidy/mopidy.conf

sample-config for the http-extension
[http]
enabled = true
hostname = ::
port = 8081
WARNING – i had problems with the hostname set to the local ip address. my spotify playlists were missing after installing the http-client.
sample for local
[local]
enabled = true
data_dir = /var/lib/mopidy/local
media_dir = /data/music
playlists_dir = /data/radio
WARNING – i had problems with my m3u radio files/playlists. after putting them into a seperate folder outside of my music folder they were loaded successfully.
sample
enabled = true
username = 1234567890
password = abcdefghijklm12345
bitrate = 320
here no warnings – use bitrate to encrease your quality
6. add-ons/extensions

add the nice http-extension MusicBox just do
pip install Mopidy-MusicBox-Webclient

7. log-file

/var/log/mopidy/mopidy.log

other configurations for mopidy

config default Radio stations – just edit the following file

/usr/local/lib/python2.7/dist-packages/mopidy_musicbox_webclient/static/js/radiostations.js

or - on musicbox
/usr/local/lib/python2.7/dist-packages/mopidy_musicbox_webclient/static/js/streamuris.js

Convert iTunes-playlists to spotify

https://support.spotify.com/is/problems/#!/article/Convert-Playlists-to-Spotify

http://groovylists.com/

http://retro.grooveshark.com/#!/playlist/1425111848/104536359

Advertisements

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s