originallyus / node-red-contrib-better-sonos

NodeRed node for controlling Sonos Players
MIT License
8 stars 9 forks source link

Add Spotify Tracks #15

Closed ebartz closed 5 years ago

ebartz commented 6 years ago

Hi There, thank you for maintaining this node!

I have been tinkering around a bit and find myself getting errors when adding songs from spotify.

So from my sonos Controller it looks like this:

image

Then I went to node and got myself the status from the current playlist which looks like this: image

So I thought to add a track from Spotify, the only thing to do would be executing a node that plays a song from this uri: x-sonos-spotify:spotify%3atrack%3a20nDYyRNL4u5Kukzy1pL6z?sid=9&flags=8224&sn=2

But when I Try this the only result is:

image

Do you have any Idea, what I am doing wrong?

ParkerJulius commented 6 years ago

I have the same problem. And Im not able to search for my device, i have to add it with IP. Play and pause works fine!

rephlex00 commented 6 years ago

After a ton of time playing around with this, it seems as though if a spotify track isn't playing already it will not allow you to queue a URI without a 500 error. If something is already playing, it works fine.

Error: HTTP response code 500 for "urn:schemas-upnp-org:service:AVTransport:1#Seek"

It appears to be a bug in node-sonos.

K-RAD commented 6 years ago

I'm getting the 500 error too when trying to give the uri in a payload. The issue was solved in node-sonos

matthias-burgfried commented 5 years ago

how can i fix this? is there a procedure?

ebartz commented 5 years ago

I have been working around this for some time now with just playing MP3 files. Is there still no solution to this?

If this works for someone, could you please tell us how?

ebartz commented 5 years ago

Dunno where this Bug exactly comes from but it works with https://flows.nodered.org/node/node-red-contrib-sonos So I am using this now.