-
Have a Spotify developer account Clic on this link and log into the developer space
-
Create a Spotify App On your developer space, clic on the button « create an app » and follow the instruction.
-
Set the Redirect URI Then add your Redirect URI including your RasberryPi address. You can follow this example : https:<your—rpi-ip>_spotify_
DON’T FORGET TO SAVE YOUR CONFIGURATION !
From your Gladys interface, go to the « Modules » view, then clic on the « Advanced » tab.
Name | Version | Depot | Slug | |
---|---|---|---|---|
Gladys Spotify |
1.0.0 |
spotify-connect |
Install |
Click on install You don’t need to restart.
Clic on this link in your app to join your app and find your ID.
Again from your Gladys interface, go to the « Settings » view, then clic on the « Settings » tab.
Fill the settings with the following information
Finally restart Gladys
Clic on the « Modules » view and on the button « Set »
After clicking on the button « set » you will receive a notif with a link : Allow your Spotify Account by click on this url :* And follow the instruction. If you didn’t receive this notif, check your Gladys’ logs by using the SSH method.
Congratulation your Gladys are configured ! You can test if everything works properly in the « Scripts » view.
gladys.music.playPlaylist('spotify:album:4ydl8Ci7OsndhI2ALnrpIv')
If you would like Gladys broadcast, install raspotify (next step).
Connect any RPI device and execute this command :
curl -sL https://dtcooper.github.io/raspotify/install.sh | sh
As the author would say :
Spotify Connect client for the Raspberry Pi that Just Works™.
raspotify doc
If raspotify doesn’t broadcast, try edit /etc/default/raspotify Add/Modify : OPTIONS="--device hw:0" (0 is number of your audio card) and CACHE_ARGS="--cache /var/cache/raspotify"