source : https://docs.mopidy.com/en/latest/installation/
wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
sudo apt-get update
sudo apt-get install mopidy
sudo apt-get update
sudo apt-get dist-upgrade
apt-cache search mopidy
sudo apt-get install mopidy-spotify
sudo nano /etc/mopidy/mopidy.conf
[mpd]
hostname = <RPI_IP>
[spotify]
username = <username>
password = <password>
# visit https://www.mopidy.com/authenticate/#spotify to authorize this extension against your Spotify account.
client_id = <client_id>
client_secret = <client_secret>
[http]
enabled = true
hostname = <RPI_IP>
static_dir =
zeroconf = Mopidy HTTP server on $hostname
[local]
enabled = false
To see what’s the effective configuration for your Mopidy installation, you can run:
sudo mopidyctl config
sudo systemctl enable mopidy
sudo systemctl start mopidy
Back to Gladys interface. Install the module in "Modules" view in advanced mode :
Mopidy 1.0.0 https://github.com/AdrienDesola/gladys-mopidy.git mopidy
in "Settings" view add mopidy_url: <mopidy_ip>:<mopidy_port>
Reboot Gladys
Click on "Configuration" button in Modules menu to create Mopidy device Check in Devices menu if Mopidy appear
gladys.music.playPlaylist({ uri: 'spotify:album:4ydl8Ci7OsndhI2ALnrpIv' })
.then(gladys.music.setVolume(100));
Go in "Settings" view and Box tab. Add a musique Box. Now if back in "Dashbard" view you can see your music box and the current music status.
sudo systemctl start mopidy
sudo systemctl stop mopidy
sudo systemctl restart mopidy
sudo mopidyctl config
sudo systemctl status mopidy
Bravo !