The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => Sonos Plugin => Topic started by: djmarcox on February 09, 2013, 03:20:04 pm

Title: Playing Sirius Stations
Post by: djmarcox on February 09, 2013, 03:20:04 pm
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.

Code: [Select]
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)
Title: Re: Playing Sirius Stations
Post by: lolodomo on February 10, 2013, 03:07:50 am
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:
Code: [Select]
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.
Title: Re: Playing Sirius Stations
Post by: lolodomo on February 10, 2013, 03:18:05 am
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.
Title: Re: Playing Sirius Stations
Post by: djmarcox on February 12, 2013, 12:29:18 pm
Thank you.. I will check later today.. I appreciate your help...
Title: Re: Playing Sirius Stations
Post by: djmarcox on June 22, 2013, 11:30:38 am
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..
Title: Re: Playing Sirius Stations
Post by: djmarcox on September 17, 2013, 09:13:01 pm
Cant get Sirius to work... Anyone else have any luck????
Title: Re: Playing Sirius Stations
Post by: lolodomo on September 18, 2013, 10:08:04 am
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:
Code: [Select]
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 ?
Title: Re: Playing Sirius Stations
Post by: djmarcox on October 19, 2013, 01:17:22 pm
I have tried to get the logs and I just cant figure it out.  Its a pay service.  Sorry for being a pest...
Title: Re: Playing Sirius Stations
Post by: lolodomo on October 26, 2013, 07:23:00 am
I will add these informations in the Help tab in the next version.
Title: Re: Playing Sirius Stations
Post by: djmarcox on November 02, 2013, 03:16:15 pm
Thank you... your work is great and I appreciate all ur help...
Title: Re: Playing Sirius Stations
Post by: lolodomo on November 18, 2013, 11:58:28 am
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 ?
Title: Re: Playing Sirius Stations
Post by: djmarcox on November 18, 2013, 06:05:45 pm

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

Marco




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 Angel On My Shoulder|ARTIST Kaskade+EDX+Tamra</r:streamContent><r:radioShowMd>Dance Hits,</r:radioShowMd><upnp:albumArtURI>http://www.siriusxm.com/albumart/Live/2230/kaskadeedxta_51859DEA_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>
Title: Re: Playing Sirius Stations
Post by: lolodomo on November 19, 2013, 06:23:04 am
AVTransportURI     x-sonosapi-hls:r%3athebeat?sid=37&flags=288
CurrentTrackURI    x-sonosapi-hls:r%3athebeat?sid=37&flags=288

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.
Title: Re: Playing Sirius Stations
Post by: djmarcox on November 19, 2013, 06:47:25 am
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..
Title: Re: Playing Sirius Stations
Post by: lolodomo on November 19, 2013, 07:24:17 am
So, you think that the general URL mode for Sirius is: x-sonosapi-hls:r%3a<station>?sid=37&flags=288 with <station> being the id/name of the radio station.
sid is always 37 ?

If you are sure about this model, I could add "SR:<station>" 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.
Title: Re: Playing Sirius Stations
Post by: lolodomo 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, ...
Title: Re: Playing Sirius Stations
Post by: djmarcox 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...
Title: Re: Playing Sirius Stations
Post by: lolodomo 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.
Title: Re: Playing Sirius Stations
Post by: djmarcox 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>


Title: Re: Playing Sirius Stations
Post by: Sliptronic 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
Title: Re: Playing Sirius Stations
Post by: lolodomo 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.
Title: Re: Playing Sirius Stations
Post by: lolodomo 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 ?
Title: Re: Playing Sirius Stations
Post by: djmarcox 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...
Title: Re: Playing Sirius Stations
Post by: djmarcox 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...
Title: Re: Playing Sirius Stations
Post by: lolodomo 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.
Title: Re: Playing Sirius Stations
Post by: djmarcox 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
Title: Re: Playing Sirius Stations
Post by: djmarcox 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....
Title: Re: Playing Sirius Stations
Post by: Sliptronic 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

Title: Re: Playing Sirius Stations
Post by: lolodomo on January 04, 2014, 07:11:51 am
Happy that it works.
I will take a look for the title/artist extraction.
Title: Re: Playing Sirius Stations
Post by: lolodomo 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:"
Title: Re: Playing Sirius Stations
Post by: djmarcox on January 04, 2014, 12:09:44 pm
I will do if u tell me how.  Lol. 
Title: Re: Playing Sirius Stations
Post by: Sliptronic on January 04, 2014, 05:18:03 pm
No problem are you looking for the LUUP logs?

Another suggestion it may be easier for you is to play things from the SONOS Favorites
Title: Re: Playing Sirius Stations
Post by: Sliptronic on January 04, 2014, 05:32:22 pm
01/04/14 17:28:28.613   luup_log:87: Sonos: Service name for serviceId: 37: SiriusXM <0x2f94c680>
Title: Re: Playing Sirius Stations
Post by: lolodomo on January 04, 2014, 06:29:42 pm
01/04/14 17:28:28.613   luup_log:87: Sonos: Service name for serviceId: 37: SiriusXM <0x2f94c680>

Thank you, I will update the code accordingly.
Title: Re: Playing Sirius Stations
Post by: lolodomo on January 05, 2014, 05:48:37 am
Please try the new version in the trunk. I should have fixed the issue with media information.
You should see in the Player tab the following information:
- SiriusXM with the name of your radio
- Title: song title
- Artist
- Information: something like "BR P|TYPE=SNG|TITLE Raise Your Weapon|ARTIST deadmau5"

I only changed I_Sonos1.xml and J_Sonos1.js.
Don't forget to refresh your WEB browser cache after upload and reload.
Title: Re: Playing Sirius Stations
Post by: djmarcox on January 05, 2014, 07:50:40 pm
Thank you... Works perfect... You are the man...
Title: Re: Playing Sirius Stations
Post by: lolodomo on January 07, 2014, 08:18:21 am
 8) another thing finished
Title: Re: Playing Sirius Stations
Post by: Ramias on April 12, 2014, 07:08:28 pm
Is this now in the beta 4 version of the plugin?

I've read this thread but could use a brief summary.

I have my Sirius station added as a favorite, but changing the station via LUUP code does not work the same way it does for TuneIn radio stations.

Thanks
Title: Re: Playing Sirius Stations
Post by: lolodomo on April 14, 2014, 08:49:22 am
You have the main explanations in one of my posts in page 2: http://forum.micasaverde.com/index.php/topic,13612.msg145824.html#msg145824

Use action PLayURI with SR.

FR is for favorite radios, not for Sonos favorites.
Is your Sirius radio in your favorite radios or your Sonos favorites ?
Title: Re: Playing Sirius Stations
Post by: Ramias on April 15, 2014, 09:56:20 am
Still no luck.  This is what I get. 

AVTransportURI in the GUI shows this when I change the station using the Sonso software:

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

So I use espnradio as the station name.

This is what my logs show:


Quote
08   04/15/14 9:32:35.129   JobHandler_LuaUPnP::HandleActionRequest argument Code=luup.call_action("urn:micasaverde-com:serviceId:Sonos1","PlayURI",{URIToPlay="SR:espnradio"}, Volume=50, 73) <0x3052d680>
01   04/15/14 9:32:35.130   LuaInterface::LoadCode: [string "luup.call_action("urn:micasaverde-com:serviceId:Sonos1","PlayUR..."]:1: ')' expected near '=' <0x3052d680>
01   04/15/14 9:32:35.130   JobHandler_LuaUPnP::RunLua failed: luup.call_action("urn:micasaverde-com:serviceId:Sonos1","PlayURI",{URIToPlay="SR:espnradio"}, Volume=50, 73) <0x3052d680>
Title: Re: Playing Sirius Stations
Post by: lolodomo on April 15, 2014, 11:25:42 am
That's weird. Your logs seem to lead to a syntax error !!!
Are you sure to have updated all your files, especially I_Sonos1;xml ?

I wil try exactly the same call_action this evening.
Title: Re: Playing Sirius Stations
Post by: Ramias on April 15, 2014, 03:10:03 pm
Please let me know.  I re-uploaded (and reloaded Vera a few times) all of the Sonos files earlier this morning.

WinSCP shows today's date for that file and it was from the beta 4 download.

I did not delete and recreate my Sonos devices though I don't think that should be needed just when manually updating files.

I just downloaded I_Sonos.xml from my Vera and from here http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/tags/beta4/I_Sonos1.xml#

and ran a FC (file compare windows utility) against them and it reported no differences.
Title: Re: Playing Sirius Stations
Post by: Ramias on April 18, 2014, 07:11:56 pm
Ok.

It now works.

I got a Sonos 1 today so I created a new Sonos device (But have not changed the Sonos beta 4 files on my machine since I posted this last) and it now works.
Title: Re: Playing Sirius Stations
Post by: shallowearth on March 01, 2015, 01:20:59 am
Does anyone have a list of Sirius Radio Station IDs?  Or know an Easy way to discover them.  I have been able to guess some but they aren't 100% intuitive.  They don't match the actual Channel name, For example:

siriushits1
firstwave
classicrewind
Title: Re: Playing Sirius Stations
Post by: lolodomo on March 01, 2015, 04:43:30 am
One of my message's in page 2 of this topic explains how to find the station ID.

Quote
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