node-sonos
node-sonos copied to clipboard
Spotify Free account support ?
Hi, Does this API works with a free Spotify account ?
I have switched my Spotify account from Premium to Free, and i cannot get this Sonos api to work anymore. I'm trying to play Spotify playlists which is something I can do without any problems (as a Free user) with the Sonos app.
One problem might be that the play() method adds the songs of the playlist to the queue, which is probably not supported by a free account (which only allows playlists to be played randomly, and prevents tracks to be played directly, i think). I suppose it should not use the queue, but do something like playTuneinRadio().
Unfortunately, I could not get anything to work with playSpotifyRadio() either. When I run the sample :
var artistId = '5WUlDfRSoLAfcVSX1WnrxN'
var artistName = 'Sia'
await sonos.office.playSpotifyRadio(artistId, artistName).then(success => {
console.log('Yeay')
}).catch(err => { console.log('Error occurred %j', err) })
I have displayed in the console :
Error occurred {}
and the Sonos app displays the following message:
Unable to play "Queen" - the associated service account cannot be found in your Sonos system.
Do I have to do anything special to play playlists/albums/artists from a free Spotify account ?