Git Product home page Git Product logo

Comments (14)

svrooij avatar svrooij commented on May 29, 2024

We got you covered, the metadata helper has specific support for spotify URLs.

Just use only the spotify uri spotify:track:3b9xTm2eiaCRTGqUEWuzxc the Sonos library will guess the rest.

Can you verify? If you found a place in this library where the Spotify uri isn’t supported that probably has to be changed to call the metadata helper before sending to the Sonos lib.

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

Doesn't seem to work. When I send

spotify:track:3b9xTm2eiaCRTGqUEWuzxc

...to 'sonos/set/sonos-sovrum/queue' I get " Error executing queue for Sonos Sovrum {}" in the log.

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

Same result with setavtransporturi

from sonos2mqtt.

svrooij avatar svrooij commented on May 29, 2024

I've got an other, "WOMP".....

How are you sending them to the device? Could you show the mqtt message you're sending? I'll try to replicate the issue. I'm always using mqtt fx to test this stuff out.

Screenshot 2020-01-24 at 21 13 00

Or with your track uri.
Screenshot 2020-01-24 at 21 16 56

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

Ha! I didn't notice until now that we used the same track for testing! :)

Skärmavbild 2020-01-25 kl  08 36 59

Skärmavbild 2020-01-25 kl  08 40 19

from sonos2mqtt.

svrooij avatar svrooij commented on May 29, 2024

I think you first have to switch it to an existing queue before you can add anything to the queue. To switch to the queue you send a message to sonos/set/sonos-vardagsrum/adv-command

{
  "cmd":"SwitchToQueue"
}

This might only work if there is a queue, so I suggest to queue one song in the sonos app. Then there is a queue to which you can add Spotify tracks.

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

I tried the adv-command you suggested, but got back "Error executing adv-command for Sonos Vardagsrum {}"

from sonos2mqtt.

svrooij avatar svrooij commented on May 29, 2024

And what happens it you switch to an empty queue from the Sonos app? #

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

Same result.

from sonos2mqtt.

svrooij avatar svrooij commented on May 29, 2024

I cannot reproduce this issue, need more information.

Node version:
sonos2mqtt version:
Sonos software version (see app):
OS:

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

I'm running the latest published docker image on Ubuntu 19.04 (fully patched)

Sonos software version: 10.6.2, build 54273060
Mosquitto 1.6.8 (eclipse-mosquitto:latest).

If I cutnpaste a full URI (x-sonos-spotify:spotify:track:2UKMqNCVsHrAYzBZMA0rxL?sid=12&flags=8224&sn=7) and publish that to either 'queue' or to 'setavtransporturi' it works in both cases.

If i do the same thing with the Spotify URI (spotify:track:2UKMqNCVsHrAYzBZMA0rxL) I get

Error executing setavtransporturi for Sonos Vardagsrum {}
Error executing queue for Sonos Vardagsrum {}

from sonos2mqtt.

svrooij avatar svrooij commented on May 29, 2024

Can you run the latest version with the following command DEBUG=sonos:* sonos2mqtt .... this should enable the debug output.

from sonos2mqtt.

flic avatar flic commented on May 29, 2024

I published spotify:track:3b9xTm2eiaCRTGqUEWuzxc to sonos/set/sonos-vardagsrum/queue:

2020-03-07T08:54:44.147Z sonos:metadata Guessing metadata for spotify:track:3b9xTm2eiaCRTGqUEWuzxc


2020-03-07T08:54:44.149Z sonos:service:avtransport:192.168.240.5 AddURIToQueue({ InstanceID: 0, EnqueuedURI: 'x-sonos-spotify:spotify:track:3b9xTm2eiaCRTGqUEWuzxc?sid=9&flags=8224&sn=7', EnqueuedURIMetaData: { Album: undefined, Artist: undefined, AlbumArtUri: undefined, Title: '', UpnpClass: 'object.item.audioItem.musicTrack', Duration: undefined, ItemId: '00032020spotify%3atrack%3a3b9xTm2eiaCRTGqUEWuzxc', ParentId: undefined, TrackUri: 'x-sonos-spotify:spotify%3atrack%3a3b9xTm2eiaCRTGqUEWuzxc?sid=9&flags=8224&sn=7', ProtocolInfo: undefined, CdUdn: 'SA_RINCON2311_X_#Svc2311-0-Token' }, DesiredFirstTrackNumberEnqueued: 0, EnqueueAsNext: true })


2020-03-07T08:54:44.159Z sonos:service:avtransport:192.168.240.5 Sonos error on AddURIToQueue { faultcode: 's:Client', faultstring: 'UPnPError', detail: { UPnPError: { errorCode: 800 } } }


2020-03-07 09:54:44.160 <error> Error executing queue for Sonos Vardagsrum {"Action":"AddURIToQueue","FaultCode":"s:Client","Fault":"UPnPError","UpnpErrorCode":800,"name":"SonosError"}

from sonos2mqtt.

svrooij avatar svrooij commented on May 29, 2024

Issue cannot be reproduced and might be fixed by the new version of node-sonos-ts anyway.

from sonos2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.