Playing Sirius Stations

Im using the code below to play sirius stations on my Sonos but it shows the whole link as the sirius channel on my computer or ipad in the controller software. How can I make it show the name of the station e.g.: 51 - Bpm like it does when I select that station through my controller. Any ideas. Thank you.

luup.call_action("urn:micasaverde-com:serviceId:Sonos1", "PlayURI", {URIToPlay="sirradio:svc%3a%2f%2fRadio%2fChannelInfo%2fv1%3fsid%3d0001-thebeat%26channel%3d51%26logo%3dBlackWithSIRIUSLogo?a=http%3a%2f%2fdownload.zing.siriusxm.com%2fContentServer%2fStatic%2fApps%2fSIR%2fimages%2fthebeat-300-BlackWithSIRIUSLogo-v4.png"}, 86)

Ok, after TuneIn and Pandora, I can try to make things easy for Sirius too.

Please select a Sirius radio using the Sonos control application.

Then in the vera UI, reload lua engine (Reload button) and then when reload is finished, go to the Advanced tab of the Sonos device and tell me what is the value of the variable AVTransportURI.
I need the value of the variable AVTransportURIMetaData too. Unfortunatelly, the value is truncated in the advanced tab. So please run this code in the test luup box:

luup.log(luup.variable_get("urn:upnp-org:serviceId:AVTransport", "AVTransportURIMetaData",  xx))

replacing xx by the id of your Sonos device. Then check the logs and copy and paste in the forum the XML file that was logged.

Then with these first information, I will determine if I can handle that properly. In this case, I will produce an updated specific version for you with additional logs.

Thank you… I will check later today… I appreciate your help…

Sorry Never got back but I stopped working on this function till now. Any headway come about playing sirius thru sonos with vera. Thank you…

Cant get Sirius to work… Anyone else have any luck???

As I told you 6 months agoi, to help you I need to know what is the value of two variables when you play a Sirius radio.
Please run this following code and copy/paste the result from the logs:

luup.log(luup.variable_get("urn:upnp-org:serviceId:AVTransport", "AVTransportURI", xx)) luup.log(luup.variable_get("urn:upnp-org:serviceId:AVTransport", "AVTransportURIMetaData", xx))
Is Sirius a free service ? Do you need to specify an account to use it ?

I have tried to get the logs and I just cant figure it out. Its a pay service. Sorry for being a pest…

I will add these informations in the Help tab in the next version.

Thank you… your work is great and I appreciate all ur help…

Ok, so what are the 4 values displayed in the new table at the bottom of the the Help tab when you play a Sirius radio station ?

These are the values from the boxes… Thank you for your assistance…

Marco

AVTransportURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288

AVTransportURIMetaData dc:title51 - BPM</dc:title>upnp:classobject.item.audioItem.audioBroadcast</upnp:class>SA_RINCON9479_marcodegennaro

CurrentTrackURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288

CurrentTrackMetaData x-sonosapi-hls:r%3athebeat?sid=37&flags=288<r:streamContent>BR P|TYPE=SNG|TITLE Angel On My Shoulder|ARTIST Kaskade+EDX+Tamra</r:streamContent><r:radioShowMd>Dance Hits,</r:radioShowMd>upnp:albumArtURIhttp://www.siriusxm.com/albumart/Live/2230/kaskadeedxta_51859DEA_m.jpg</upnp:albumArtURI>dc:titlex-sonosapi-hls:r:thebeat?sid=37&flags=288</dc:title>upnp:classobject.item.audioItem.musicTrack</upnp:class>

[quote=“djmarcox, post:12, topic:174263”]AVTransportURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288
CurrentTrackURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288[/quote]

Could you check if only the sid value changes when you select another radio ?
If “r%3athebeat” is a changing part of the URL, it will be difficult.

So sirius has different types of stations for different types of music… The station the beat when I play it on any of my radios has the exact same values for all of them…

AVTransportURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288
CurrentTrackURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288

when I change the station to a different sirius station called area it changes to

AVTransportURI x-sonosapi-hls:r%3aarea33?sid=37&flags=288
CurrentTrackURI x-sonosapi-hls:r%3aarea33?sid=37&flags=288

Seems like the part that changes is after the first a and before the 33… but is constant amongst different radios, just per station… Thanks for help and Ill get any more info that u may need…

So, you think that the general URL mode for Sirius is: x-sonosapi-hls:r%3a?sid=37&flags=288 with being the id/name of the radio station.
sid is always 37 ?

If you are sure about this model, I could add “SR:” as possible value for PlayURI action (SR for Sirius Radio). Examples: SR:thebeat or SR:area33

Last difficulty is to provide your account information (login) when setting a station, but I can retrieve it from the metadata, like for other service. So it should be doable, we can try.

And it looks like Sirius provides info on what is being played using the r:streamContent tag.
Could you check if this tag has always the same format ?
I could either display it, or try to decode it to extract title, artist, …

if you want I can email u the login info for my sirius acct so u can test it… give me ur email if that works… thank you…

That would have been a good idea but unfortunately I think sirius is not a Sonos service available in my country.

here are some sample data from other stations…Thanks for your help… Anything else you may need let me know…

AVTransportURI x-sonosapi-hls:r%3asiriushits1?sid=37&flags=288

AVTransportURIMetaData dc:title2 - SiriusXM Hits 1</dc:title>upnp:classobject.item.audioItem.audioBroadcast</upnp:class>SA_RINCON9479_marcodegennaro

CurrentTrackURI x-sonosapi-hls:r%3asiriushits1?sid=37&flags=288

CurrentTrackMetaData x-sonosapi-hls:r%3asiriushits1?sid=37&flags=288<r:streamContent>BR P|TYPE=SNG|TITLE |ARTIST </r:streamContent><r:radioShowMd>Top 40 Hits,</r:radioShowMd>upnp:albumArtURI/getaa?s=1&u=x-sonosapi-hls%3ar%253asiriushits1%3fsid%3d37%26flags%3d288</upnp:albumArtURI>dc:titlex-sonosapi-hls:r:siriushits1?sid=37&flags=288</dc:title>upnp:classobject.item.audioItem.musicTrack</upnp:class>

AVTransportURI x-sonosapi-hls:r%3aarea33?sid=37&flags=288

AVTransportURIMetaData dc:title52 - Electric Area</dc:title>upnp:classobject.item.audioItem.audioBroadcast</upnp:class>SA_RINCON9479_marcodegennaro

CurrentTrackURI x-sonosapi-hls:r%3aarea33?sid=37&flags=288

CurrentTrackMetaData x-sonosapi-hls:r%3aarea33?sid=37&flags=288<r:streamContent></r:streamContent><r:radioShowMd>Progressive House, Trance & Electro,</r:radioShowMd>upnp:albumArtURI/getaa?s=1&u=x-sonosapi-hls%3ar%253aarea33%3fsid%3d37%26flags%3d288</upnp:albumArtURI>dc:titlex-sonosapi-hls:r:area33?sid=37&flags=288</dc:title>upnp:classobject.item.audioItem.musicTrack</upnp:class>

AVTransportURI x-sonosapi-hls:r%3ashade45?sid=37&flags=288

AVTransportURIMetaData dc:title45 - Shade 45</dc:title>upnp:classobject.item.audioItem.audioBroadcast</upnp:class>SA_RINCON9479_marcodegennaro

CurrentTrackURI x-sonosapi-hls:r%3ashade45?sid=37&flags=288

CurrentTrackMetaData x-sonosapi-hls:r%3ashade45?sid=37&flags=288<r:streamContent>BR P|TYPE=SNG|TITLE Pound Cake|ARTIST Drake/Jay-Z</r:streamContent><r:radioShowMd>Eminem’s Uncut Hip-Hop Channel-XL,</r:radioShowMd>upnp:albumArtURIhttp://www.siriusxm.com/albumart/Live/1600/drakejayz_524B70A8_m.jpg</upnp:albumArtURI>dc:titlex-sonosapi-hls:r:shade45?sid=37&flags=288</dc:title>upnp:classobject.item.audioItem.musicTrack</upnp:class>

has this been figured out yet? i am trying to create a Scene to change the SiriusXM channel

thank you

JL