bklavet / Echo-skill-to-control-Directv

amazon echo skill that will control a networked Directv Receiver so that users can control Directv with their voice
18 stars 67 forks source link

Stuck #9

Closed sakau2007 closed 7 years ago

sakau2007 commented 8 years ago

I am stuck at the last step. Everything seems to be successful but when I get to the service simulator and type in go to cnn for the utterance, I get the error "remote endpoint could not be called, or the response it returned was invalid."

I've placed the DirecTV receiver in the DMZ. From a broswer, when I go to http://192.168.x.x:8080/remote/processKey?key=pause&hold=keyPress I get the following text to display:

{ "hold": "keyPress", "key": "pause", "status": { "code": 200, "commandResult": 0, "msg": "OK.", "query": "/remote/processKey?key=pause&hold=keyPress" } }

However, DirecTV is not actually pausing.

Any ideas what the issue could be?

bklavet commented 8 years ago

Is this a genie mini receiver?

From: sakau2007 [mailto:notifications@github.com] Sent: Friday, September 2, 2016 1:15 AM To: bklavet/Echo-skill-to-control-Directv Echo-skill-to-control-Directv@noreply.github.com Subject: [bklavet/Echo-skill-to-control-Directv] Stuck (#9)

I am stuck at the last step. Everything seems to be successful but when I get to the service simulator and type in go to cnn for the utterance, I get the error "remote endpoint could not be called, or the response it returned was invalid."

I've placed the DirecTV receiver in the DMZ. From a broswer, when I go to http://192.168.x.x:8080/remote/processKey?key=pause&hold=keyPress I get the following text to display:

{ "hold": "keyPress", "key": "pause", "status": { "code": 200, "commandResult": 0, "msg": "OK.", "query": "/remote/processKey?key=pause&hold=keyPress" } }

However, DirecTV is not actually pausing.

Any ideas what the issue could be?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bklavet/Echo-skill-to-control-Directv/issues/9, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AI6bKM00mBzhEkVHGLHwlv41g8FuP1Zgks5ql779gaJpZM4JzZlG.

sakau2007 commented 8 years ago

EDIT: No it is not. It is an HR-22

bklavet commented 8 years ago

The response you are getting in the browser looks like it should be working. If the receiver can't be controlled by this method, the skill won't do any better, but what's confusing is with that response coming from the receiver, I would think the skill would send a confirmation and see the remote endpoint.

One thing that you might try from your browser is to edit the command and add the mac address like the mini genie's and see if that controls the receiver locally (check the other issues for mini genie for details)

You sure you have your wan IP in the index file?

sakau2007 commented 8 years ago

The IP was definitely correct but now that I think about it, I did turn the modem off and back on in an attempt to get things working and it is possible I was assigned a new WAN IP. I'm not sure if I am static or dynamic. I will double check that when I get back home. If that isn't the issue, I will give the MAC Address a try and report back. Thanks for your support.

sakau2007 commented 8 years ago

So when I put the MAC address in, it works, sort of. It works in the testing "go to cnn". And when I tell the Echo "Alexa, tell DirecTV to go to CNN" Alexa responds with "OK" as if the command is recognized and accepted but the channel isn't changed.

ChipHappens commented 8 years ago

Try putting MAC address in all caps with no colons...i think that is how i got it to work.

sakau2007 commented 8 years ago

Yeah I am using all caps and no colons for the mac address.

ChipHappens commented 8 years ago

http://108.X.X.X:8080/remote/processKey?key=chanup&hold=keyPress&clientAddr=2994X5X4X3XX;

bklavet commented 8 years ago

Something to try for the channel like CNN would be to change the Index file path to something like this /tv/tune?major=202&clientAddr=xxxxxxxxxxxx
this worked for a mini genie and should work with any receiver. This could be tested from a browser on the lan too.
If this works for you, you would want to alter the path for all the channel presets to this style. ChipHappens showed how the path should look for remote buttons like pause,play, etc. That style could also be tested from a browser session on the local lan. Having Alexa respond with OK is bitter sweet, cause it means the skill is talking to aws lambda and everything is getting to your endpoint, just need to figure out how to tweak the index file to play with your receiver. If you can get it to do some of this from a browser, then you know the directv receiver is working.