Skip to content

Instantly share code, notes, and snippets.

@JeremyOttley
Created August 26, 2017 03:52
Show Gist options
  • Select an option

  • Save JeremyOttley/1d561034997d207fac1e9f1668be05ab to your computer and use it in GitHub Desktop.

Select an option

Save JeremyOttley/1d561034997d207fac1e9f1668be05ab to your computer and use it in GitHub Desktop.
# install_pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
# install_mopidy
pip install Mopidy
# install_mopidy_spotify
pip install Mopidy-Spotify
Before starting Mopidy, you must add your Spotify Premium username and password to your Mopidy configuration file and also visit
https://www.mopidy.com/authenticate/#spotify to authorize this extension against your Spotify account:
[spotify]
username = alice
password = secret
client_id = ... client_id value you got from mopidy.com ...
client_secret = ... client_secret value you got from mopidy.com ...
The following configuration values are available:
spotify/enabled: If the Spotify extension should be enabled or not. Defaults to true.
spotify/username: Your Spotify Premium username. You must provide this.
spotify/password: Your Spotify Premium password. You must provide this.
spotify/client_id: Your Spotify application client id. You must provide this.
spotify/client_secret: Your Spotify application secret key. You must provide this.
#install_mopidy_iris
sudo pip install Mopidy-Iris
Start Mopidy mopidy
Open your Mopidy URL (eg http://localhost:6680) and click Iris
For the best experience, login to Spotify in the Settings page
Welcome to Iris!
These values are defined in your mopidy.conf file (typically ~/.config/mopidy/mopidy.conf).
country Spotify-based country code (defaults to nz)
locale Spotify-based locale code (defaults to en_NZ)
authorization_url URL to use as Spotify authentication proxy (defaults to https://jamesbarnsley.co.nz/auth2.php)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment