volumio / Volumio2

Volumio 2 - Audiophile Music Player
http://volumio.org
Other
1.37k stars 315 forks source link

rest API, control spotify SPOP plugin, playlist #1755

Open petershaw23 opened 5 years ago

petershaw23 commented 5 years ago

Hi, is there a way to control the spotify SPOP plugin via REST api? I want to play Spotify playllists, like "Discover Weekly" via RST API, like i can with "normal" playlists:

curl volumio.local/api/v1/commands/?cmd="playplaylist&name=playlistname"

Is this possible? Creating a "normal" playlist by adding the spotify playlist to the queue, then clicking "save playlist", is too cumbersome, especially for "discover weekly", which is being re-generated weekly by spotify

bluepuma77 commented 5 years ago

To me it seems looking at the sources, that you can only play/pause and play track x from the current playlist.

You have more control over volumio via websockets API. Check forum for Using API to play Spotify album?, comment 5 has some node code.