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

Control multiple DTV's - not Genie #29

Open mikerain99 opened 7 years ago

mikerain99 commented 7 years ago

This skill is working great on one DirecTV. If there are multiple DTV tuners in the house, is there a way for a skill to control them? Or can we make a different skill for each DTV box? These boxes are not a Genie system, they are independent DTV boxes, each with a different IP address.

I can't think how to do it, because we do port forwarding in the router from port 8080 to a particular DTV's IP. Perhaps we could use a different port for each DTV, perhaps 8080 for DTV 1, 8081 for DTV 2, etc. But everything I see on the web says DTVs always listen for commands on port 8080.

vmweaver commented 7 years ago

Often when you define your port forwarding, you specify the incoming port and then the internal ip and port. You could possibly say port 8081externally forwards to dtv box2 on port 8080, 8082 forwards to dtv box on 8080, etc.

This would mean different skills for each.

On Feb 7, 2017 12:46 AM, "mikerain99" notifications@github.com wrote:

This skill is working great on one DirecTV. If there are multiple DTV tuners in the house, is there a way for a skill to control them? Or can we make a different skill for each DTV box? These boxes are not a Genie system, they are independent DTV boxes, each with a different IP address.

I can't think how to do it, because we do port forwarding in the router from port 8080 to a particular DTV's IP. Perhaps we could use a different port for each DTV, perhaps 8080 for DTV 1, 8081 for DTV 2, etc. But everything I see on the web says DTVs always listen for commands on port 8080.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/ACibPRfegZfnovG19ZAd-IfHINp59CKiks5raBMTgaJpZM4L5H0m .

bklavet commented 7 years ago

The lazy part in me would call DTV and get a receiver upgrade to the genie and change the rest of the receivers to mini's. If the forwarding ports don't work on the other receivers, you could make a wemo emulator and point it to the local ip's of the DTV receivers on the network. I had this going originally, it takes a raspberry pi on the home network and all the commands have to be structured like: [Turn on/Turn off] the [device]. Basically the echo thinks your dtv commands are hue smart lights.

The trouble I found with this was the verbal commands didn't sound very human, and it's more fun if anyone has a shot at getting the tv to respond.

if you want to try it though its in the github under armzilla-echo-hue-bridge I think

mikerain99 commented 7 years ago

After talking with my buddy, we're now unsure whether his DTV is a Genie setup or not. If it's Genie, then the solution is clear, as I understand it. We send commands to the master Genie and it passes along commands to the mini Genies based on their MAC addresses.

If he doesn't have Genie, then Mawrew19, I love the idea of using different external ports that would all forward to internal 8080 but different DTV IPs. My own router doesn't have the option to specify different external and internal ports, but my buddy's router might. If he doesn't have Genie, we're going to try that to see if it works.

bklavet commented 7 years ago

cool, if you do have a client setup you can enter this to get the clients MAC address

this will give you all the clients connected to the main genie. To make the genie index easier use the mini genie skill on the main github page you only need to enter in the MAC of the mini once. Make a custom skill for each receiver making the invocation name unique to the directv receiver you are designing the skill for, that way all the commands work the same, and the only thing the user needs to remember is the invocation name... if that makes sense.

mikerain99 commented 7 years ago

You guys are mad geniuses! We don't have Genie. I made a separate skill for each receiver, and aimed each skill at the same WAN IP but a different port - 8080, 8081, etc. I set up port forwarding rules in the router as mawrew19 suggested - one rule for each receiver. 8080 -> 8080 [DTV 1 IP], 8081 -> 8080 [DTV 2 IP], etc. It worked! We can say "Alexa, ask TV One to pause", "Alexa, ask TV Two to go to 298". Thanks for all your help!

vmweaver commented 7 years ago

Awesome!!! Thanks for the follow up.

Sent from my iPad

On Feb 7, 2017, at 10:46 PM, mikerain99 notifications@github.com wrote:

You guys are mad geniuses! We don't have Genie. I made a separate skill for each receiver, and aimed each skill at the same WAN IP but a different port - 8080, 8081, etc. I set up port forwarding rules in the router as mawrew19 suggested - one rule for each receiver. 8080 -> 8080 [DTV 1 IP], 8081 -> 8080 [DTV 2 IP], etc. It worked! We can say "Alexa, ask TV One to pause", "Alexa, ask TV Two to go to 298". Thanks for all your help!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

kwa1169 commented 7 years ago

Hi. I'm trying to do the same thing - multiple DTV tuners through Alexa. I can't get my Actiontec1000a set up to re-map the port forwarding. When I forward 8080 for a reciever, no problem. But I'm not sure how to remap a port like 8081 -> 8080 [DTV 2 IP] as mikerain99 says.
I've add a screenshot of the Actiontec menu. Any help is welcomed.

screenshot 2017-07-29 13 28 52

vmweaver commented 7 years ago

The remote ip address is not right. If you want all internet addresses to hit this, enter 0.0.0.0 .... if you want just the Amazon endpoint, will need to sniff the traffic to see what it should be.

Try 0.0.0.0 and see if that fixes things.

On Jul 29, 2017 2:30 PM, "kwa1169" notifications@github.com wrote:

Hi. I'm trying to do the same thing - multiple DTV tuners through Alexa. I can't get my Actiontec1000a set up to re-map the port forwarding. When I forward 8080 for a reciever, no problem. But I'm not sure how to remap a port like 8081 -> 8080 [DTV 2 IP] as mikerain99 says. I've add a screenshot of the Actiontec menu. Any help is welcomed.

[image: screenshot 2017-07-29 13 28 52] https://user-images.githubusercontent.com/5550735/28747671-ec9031f6-7461-11e7-94cf-0bc578a0141e.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/29#issuecomment-318853581, or mute the thread https://github.com/notifications/unsubscribe-auth/ACibPY-4rmYao6U3q2xMtD6Ic584UyO9ks5sS4hGgaJpZM4L5H0m .

vmweaver commented 7 years ago

Or just click the "All IP Addresses"

On Jul 29, 2017 6:51 PM, "Mark Weaver" geekweaver@gmail.com wrote:

The remote ip address is not right. If you want all internet addresses to hit this, enter 0.0.0.0 .... if you want just the Amazon endpoint, will need to sniff the traffic to see what it should be.

Try 0.0.0.0 and see if that fixes things.

On Jul 29, 2017 2:30 PM, "kwa1169" notifications@github.com wrote:

Hi. I'm trying to do the same thing - multiple DTV tuners through Alexa. I can't get my Actiontec1000a set up to re-map the port forwarding. When I forward 8080 for a reciever, no problem. But I'm not sure how to remap a port like 8081 -> 8080 [DTV 2 IP] as mikerain99 says. I've add a screenshot of the Actiontec menu. Any help is welcomed.

[image: screenshot 2017-07-29 13 28 52] https://user-images.githubusercontent.com/5550735/28747671-ec9031f6-7461-11e7-94cf-0bc578a0141e.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/29#issuecomment-318853581, or mute the thread https://github.com/notifications/unsubscribe-auth/ACibPY-4rmYao6U3q2xMtD6Ic584UyO9ks5sS4hGgaJpZM4L5H0m .

bklavet commented 7 years ago

if the port number was changed in the index file to 8081, wouldn't this work?

ok just looked at this a little closer, and... nevermind. :) you would still need to change the port in the index file though you have probably already done that. In my defense

vmweaver commented 7 years ago

I don't think do. The router documentation suggests that this only allows inbound connections from that specific address when configured. This is actually a great safety feature if this is the case.

On Jul 29, 2017 8:23 PM, "B money" notifications@github.com wrote:

if the port number was changed in the index file to 8081, wouldn't this work?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/29#issuecomment-318870933, or mute the thread https://github.com/notifications/unsubscribe-auth/ACibPXSkwmnInnzDXm_B4nlnpUZNFuAAks5sS9spgaJpZM4L5H0m .

HanSolo003 commented 6 years ago

I've been scouring the entire Google site and Youtube to see how to port forward my Genie to 8080. I have a TP Link Archer AC1200 wireless router. Can anyone please help me on how to port forward my Genie?

vmweaver commented 6 years ago

Have you seen this guide? https://portforward.com/tp-link/archer-c1200/