We have moved at community.getvera.com

Author Topic: Playing Sirius Stations  (Read 12309 times)

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #15 on: November 19, 2013, 07:28:52 am »
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, ...

Offline djmarcox

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #16 on: November 19, 2013, 07:36:06 am »
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...

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #17 on: November 19, 2013, 08:29:20 am »
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.
« Last Edit: November 19, 2013, 08:33:44 am by lolodomo »

Offline djmarcox

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #18 on: November 19, 2013, 11:16:40 am »
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       <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>2 - SiriusXM Hits 1</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON9479_marcodegennaro</desc></item></DIDL-Lite>

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

CurrentTrackMetaData          <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:application/x-mpegURL:*">x-sonosapi-hls:r%3asiriushits1?sid=37&amp;flags=288</res><r:streamContent>BR P|TYPE=SNG|TITLE |ARTIST </r:streamContent><r:radioShowMd>Top 40 Hits,</r:radioShowMd><upnp:albumArtURI>/getaa?s=1&amp;u=x-sonosapi-hls%3ar%253asiriushits1%3fsid%3d37%26flags%3d288</upnp:albumArtURI><dc:title>x-sonosapi-hls:r:siriushits1?sid=37&amp;flags=288</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>



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

AVTransportURIMetaData       <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>52 - Electric Area</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON9479_marcodegennaro</desc></item></DIDL-Lite>

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

CurrentTrackMetaData       <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:application/x-mpegURL:*">x-sonosapi-hls:r%3aarea33?sid=37&amp;flags=288</res><r:streamContent></r:streamContent><r:radioShowMd>Progressive House\, Trance &amp; Electro,</r:radioShowMd><upnp:albumArtURI>/getaa?s=1&amp;u=x-sonosapi-hls%3ar%253aarea33%3fsid%3d37%26flags%3d288</upnp:albumArtURI><dc:title>x-sonosapi-hls:r:area33?sid=37&amp;flags=288</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>


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

AVTransportURIMetaData       <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>45 - Shade 45</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON9479_marcodegennaro</desc></item></DIDL-Lite>

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

CurrentTrackMetaData   <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:application/x-mpegURL:*">x-sonosapi-hls:r%3ashade45?sid=37&amp;flags=288</res><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:albumArtURI>http://www.siriusxm.com/albumart/Live/1600/drakejayz_524B70A8_m.jpg</upnp:albumArtURI><dc:title>x-sonosapi-hls:r:shade45?sid=37&amp;flags=288</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>



Offline Sliptronic

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #19 on: December 22, 2013, 10:25:53 pm »
has this been figured out yet?  i am trying to create a Scene to change the SiriusXM channel

thank you

JL
« Last Edit: December 23, 2013, 03:24:28 pm by Sliptronic »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #20 on: December 30, 2013, 07:19:26 am »
Hi djmarcox and Sliptronic.

Please try the version in trunl: http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk#

To load a Sirius radio, use this URI format in PlayURI: SR:<stationID>
For example: SR:shade45

Before running this action, be sure that you have already played (using the Sonos application) a Sirius radio on the Sonos zone since the new version is installed. It is required for the plugin to retrieve and store your "login".

I would appreciate to get logs as feedback. I have assumed that the service is named "Sirius" but I am not sure. The name is required to retrieve the corresponding service id. By the way, I have set the service id to 37 by default, so it should work even if the service name is not exactly "Sirius".

Remember that you can go in the Help tab and see the value of the variable AVTransportURI to determine your stationID. The format is: x-sonosapi-hls:r%3astationID?sid=37&flags=288

I am waiting for your feedback.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #21 on: December 30, 2013, 07:40:41 am »
I even tried to extract the song title and the artist. So tell me if title and artist are correctly displayed in the Player tab.
Give me a feedback too regarding the station icon. Is it correctly displayed or not ?

Offline djmarcox

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #22 on: December 31, 2013, 12:35:11 am »
Thank you.. I was away... Just got in.. Im gonna install tonite and get back to you... Thank you again...

Offline djmarcox

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #23 on: January 02, 2014, 10:03:24 am »
Sorry got tied up with the new year and didn't have much chance to play with but from the few mins that I did it doesn't work properly.  When I play uri with a station name it just plays the last thing that wad playing on that sonos.. If nothing was playing last then does nothing... Hope you had a great new year, and Ill play more with it today when I get home from work.. Thanks again...

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #24 on: January 02, 2014, 06:03:45 pm »
Sorry got tied up with the new year and didn't have much chance to play with but from the few mins that I did it doesn't work properly.  When I play uri with a station name it just plays the last thing that wad playing on that sonos.. If nothing was playing last then does nothing... Hope you had a great new year, and Ill play more with it today when I get home from work.. Thanks again...

I will certainly need your logs to help me to understand what's wrong.

+ I added a new variable "SonosServicesKeys" at the bottom of hte Help tab. Can you tell me what value do you get (be carreful that there is not one of your account password in this value before plublishing it - normally not). I should normally find an entry with id 37.

Offline djmarcox

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #25 on: January 02, 2014, 10:04:45 pm »
Disregard the first post of not working... I re uploaded the files and seems to be working fine... You are the man... I have attached my logs for you...   Thanks again...


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

AVTransportURIMetaData     <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>51 - BPM</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON9479_marcodegennaro</desc></item></DIDL-Lite>

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

CurrentTrackMetaData   <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:application/x-mpegURL:*">x-sonosapi-hls:r%3athebeat?sid=37&amp;flags=288</res><r:streamContent>BR P|TYPE=SNG|TITLE The Spark Remix|ARTIST Afrojack+Tiesto+twoloud+Spree Wilson</r:streamContent><r:radioShowMd>Dance Hits,</r:radioShowMd><upnp:albumArtURI>http://www.siriusxm.com/albumart/Live/Default/DefaultMDS_m_51.jpg</upnp:albumArtURI><dc:title>x-sonosapi-hls:r:thebeat?sid=37&amp;flags=288</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>

SonosServicesKeys   254=SA_RINCON65031_ 37=SA_RINCON9479_marcodegennaro -1=SA_RINCON3_djmarcox@aol.com

Offline djmarcox

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #26 on: January 03, 2014, 12:31:02 am »
The station icon working, the information sections isnt... When I play a radio station info comes up but when I play sirius it doesnt.  I dont need this to work for any of my uses but maybe someone else may... Im just providing the feed back for you since you have asked.  I dont want you to think Im complaining.. Im very grateful for the time and effort you put into making this happen.  Thank you again...  Im attaching two screenshots.  One when a radios staion is playing and one when sirius radio is playing.  Thank you again....

Offline Sliptronic

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Playing Sirius Stations
« Reply #27 on: January 03, 2014, 08:19:22 pm »
Ok this is working except for the artist/track here is the meta data


AVTransportURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288
AVTransportURIMetaData <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>51 - BPM</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON9479_*********</desc></item></DIDL-Lite>
CurrentTrackURI x-sonosapi-hls:r%3athebeat?sid=37&flags=288
CurrentTrackMetaData <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:application/x-mpegURL:*">x-sonosapi-hls:r%3athebeat?sid=37&amp;flags=288</res><r:streamContent>BR P|TYPE=SNG|TITLE Raise Your Weapon|ARTIST deadmau5</r:streamContent><r:radioShowMd>Dance Hits,</r:radioShowMd><upnp:albumArtURI>http://www.siriusxm.com/albumart/Live/0100/deadmau5_4FDED73E_m.jpg</upnp:albumArtURI><dc:title>x-sonosapi-hls:r:thebeat?sid=37&amp;flags=288</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>
SonosServicesKeys


Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #28 on: January 04, 2014, 07:11:51 am »
Happy that it works.
I will take a look for the title/artist extraction.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Playing Sirius Stations
« Reply #29 on: January 04, 2014, 07:43:24 am »
Can one of you two check the logs after you played a Sirius radio using SR:xxx and extract the line containing: "Service name for serviceId:"