AdrienDesola / gladys-spotify

Use Spotify connect with @GladysProject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gladys Spotify spotify-login.png

Requirements

  1. Have a Spotify developer account Clic on this link and log into the developer space

spotify-login.png
  1. Create a Spotify App On your developer space, clic on the button « create an app » and follow the instruction.

My App
Create an app
  1. Set the Redirect URI Then add your Redirect URI including your RasberryPi address. You can follow this example : https:<your—rpi-ip>_spotify_

App credentials

DON’T FORGET TO SAVE YOUR CONFIGURATION !

spotify save buttons

2. Installation

From your Gladys interface, go to the « Modules » view, then clic on the « Advanced » tab.

Name Version Depot Slug

Gladys Spotify

1.0.0

https://github.com/AdrienDesola/gladys-spotify.git

spotify-connect

Install

Click on install You don’t need to restart.

3. Settings

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.

spotify app credentials

Fill the settings with the following information

gladys settings

Finally restart Gladys

4. Initialization of the module

gladys list modules

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).

Transform your RPI into a Spotify Connect Box spotify setup

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 author
raspotify doc

Troubleshooting

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"

About

Use Spotify connect with @GladysProject

License:MIT License


Languages

Language:JavaScript 100.0%