rgraciano / echo-sonos

Amazon Echo integration with Sonos
Other
712 stars 233 forks source link

Sirius XM Canada Problems #154

Open jonkit opened 7 years ago

jonkit commented 7 years ago

I have everything setup and functioning properly. I can successfully play music from Apple Music as well as Sonos Favourites and I can change the volume, play, pause, and group/ungroup rooms.

I am having an issue playing Sirius XM channels. My AWS logs show the request being received with a success message but nothing is happening on Sonos. I will paste an example of the AWS log below.

I am wondering if this could be a problem because I am using Sirius XM Canada. I noticed in the Sonos app the service is listed as 'SiriusXM Canada' and wondered if there's something somewhere that isn't making that final connection back with the Sonos service locally. If I add a Sirius XM channel to my Sonos Favourites and request it that way, it works (This is also included in the log).

awslog.txt START RequestId: xxxxx Version: $LATEST 2017-04-10T11:40:42.385Z xxxxx session applicationId: amzn1.ask.skill.xxxxxxxx 2017-04-10T11:40:42.386Z xxxxx dispatch intent = SiriusXMChannelIntent 2017-04-10T11:40:42.386Z xxxxx SiriusXMChannelIntent received 2017-04-10T11:40:42.386Z xxxxx Advanced Mode = true 2017-04-10T11:40:43.347Z xxxxx Reading current settings 2017-04-10T11:40:43.665Z xxxxx room=kitchen newRoom= service=apple newService= 2017-04-10T11:40:43.665Z xxxxx Getting coordinator for room: kitchen 2017-04-10T11:40:43.665Z xxxxx Calling '/zones' 2017-04-10T11:40:43.802Z xxxxx Call to 'http://xxx.xxx.x.x:5005/zones' suceeded 2017-04-10T11:40:43.802Z xxxxx Coordinator for kitchen : Kitchen 2017-04-10T11:40:43.803Z xxxxx Calling '/Kitchen/siriusxm/3' 2017-04-10T11:40:43.884Z xxxxx Call to 'http://xxx.xxx.x.x:5005/Kitchen/siriusxm/3' suceeded END RequestId: xxxxx REPORT RequestId: xxxxx Duration: 1535.79 ms Billed Duration: 1600 ms Memory Size: 128 MB Max Memory Used: 33 MB START RequestId:yyyy Version: $LATEST 2017-04-10T11:51:38.514Z yyyy session applicationId: amzn1.ask.skill.xxxxxxxx 2017-04-10T11:51:38.524Z yyyy dispatch intent = FavoriteIntent 2017-04-10T11:51:38.524Z yyyy FavoriteIntent received 2017-04-10T11:51:38.524Z yyyy Advanced Mode = true 2017-04-10T11:51:38.710Z yyyy Reading current settings 2017-04-10T11:51:38.821Z yyyy room=kitchen newRoom= service=apple newService= 2017-04-10T11:51:38.821Z yyyy Getting coordinator for room: kitchen 2017-04-10T11:51:38.821Z yyyy Calling '/zones' 2017-04-10T11:51:38.926Z yyyy Call to 'http://xxx.xxx.x.x:5005/zones' suceeded 2017-04-10T11:51:38.926Z yyyy Coordinator for kitchen : Kitchen 2017-04-10T11:51:38.926Z yyyy Calling '/Kitchen/favorite/stern' 2017-04-10T11:51:39.184Z yyyy Call to 'http://xxx.xxx.x.x:5005/Kitchen/favorite/stern' suceeded 2017-04-10T11:51:39.184Z yyyy Calling '/Kitchen/play' 2017-04-10T11:51:39.265Z yyyy Call to 'http://xxx.xxx.x.x:5005/Kitchen/play' suceeded END RequestId: yyyy REPORT RequestId: yyyyy Duration: 752.66 ms Billed Duration: 800 ms Memory Size: 128 MB Max Memory Used: 33 MB

pheintzelman commented 7 years ago

try calling /Kitchen/siriusxm/3 directly and see what happens.

jonkit commented 7 years ago

When doing that the web browser returns a message of {"status" : "success"}, no errors in the node program running on my local machine and nothing starts playing on the Sonos speakers.

pheintzelman commented 7 years ago

@jonkit Hmm maybe changing the station doesn't start playing it:

Can you try:

  1. /Kitchen/siriusxm/3
  2. /Kitchen/Play

let me know how it goes?

jonkit commented 7 years ago

@pheintzelman After using "/Kitchen/siriusxm/3" nothing changes in the Sonos player, no response from the local node program (same as before). After entering "/Kitchen/Play" playback in the kitchen resumes from the source that was previously stopped (in this case, an Apple Music radio station that I have in my Sonos Favorites).

pheintzelman commented 7 years ago

@jonkit Can you try: /Kitchen/siriusXM/3

This may be a casing issue

jonkit commented 7 years ago

Same result. Web browser request as a success but nothing happens and no error messages in the local node program.

rgraciano commented 7 years ago

@jonkit - my guess is it is related to it being Canada. I haven't spent much time in sonos-http-api internals, but you might poke around in https://github.com/jishi/node-sonos-http-api/blob/master/lib/actions/siriusXM.js