jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.85k stars 460 forks source link

SiriusXM command will not work #628

Open jpoeppelman1 opened 6 years ago

jpoeppelman1 commented 6 years ago

Everthing works so far, except XM radio via direct station input. Calling XM radio by favorite name works fine.

/RoomName/siriusXM/{channel number,station name}

http://localhost:5005/living room/siriusXM/8

This should play 80's on XM in the living room. Currently returns success, but does not change channel.

Thanks!

jplourde5 commented 6 years ago

That should work fine. Have you tried other channel numbers?

jpoeppelman1 commented 6 years ago

Apologize for the delay. I've tried this several times with different XM stations, it does not work. I get success returned via Postman but the channel does not start. However, when I start this same channel using a favorite name, then it plays fine. This is a bug, please fix. ;)

jpoeppelman1 commented 6 years ago

I was able to fix the issue. The getAccountId method in SiriusXM action was returning -1 which in turn was failing an IF THEN block found in siriusXM method. Working fine now, I suggest you update the code..

jpoeppelman1 commented 6 years ago

Also, how were you able to generate sirius-channels.json? It is out of date so I wanted to refresh it.

jimstowe commented 1 month ago

This is also happening for me. Playing a siriusXM station as a favorite works fine, but cannot access it directly by either station number or name.