Open vmweaver opened 6 years ago
Outstanding! I will be getting one of my rpi's re-purposed!
And.. the ADDED benefit of being able to do about ANY type of API call into your home.
My TV has a similar constraint as the DirecTV box, in that i can only use local API calls. With this config, we could actually do more complex things inside of nginx.
For example, I could have the skill make different API calls to different responses and I would craft my API urls in such a way that the reverse proxy can parse and make the correct internal call.
Try this out and let me know. It is VERY rough being that I just wrote it up this AM. Probably needs some of your Video Magic or something to make it meaningful! ;-)
mawrew19, will nginx start itself in case of a power reset?
it should yes. The startup script should live in /etc/init.d/nginx
I will amend my comment: With other versions of Linux, there is a chkconfig command that can enable/disable it from startup. The way to set a service to start at boot on Raspbian appears to be by doing the following: sudo update-rc.d nginx enable or to disable sudo update-rc.d nginx disable
You should always be able to get the status by doing: sudo service nginx status
This shows a normal status for nginx (starting at boot). Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
On Mon, Jan 8, 2018 at 1:27 PM, B money notifications@github.com wrote:
mawrew19, will nginx start itself in case of a power reset?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/63#issuecomment-356069921, or mute the thread https://github.com/notifications/unsubscribe-auth/ACibPSn1M277rUYC11MnRSv4yIt4-kGEks5tImwlgaJpZM4RVtV8 .
Perfect!, I just got my pi setup. I'll plug it in tonight and try it out.
I had no issues, and found your directions easy to follow.
written very well. Thanks!
Awesome! Let me know how it goes!
@bklavet Any luck?
I left it at my desk like a chump, I have to go in for some off hour work tonight I will bring it home and get it on the network
Just started looking at this again and I messed something up I am going to blow it away and start over again.
Second time was the charm! looking forward to putting this on a 10 dollar pi zero w! Thanks again!
This isn't really an issue, but wanted to throw this out there. I put together a guide on how to deploy a raspberry pi and setup a more secure Reverse Proxy for this Skill (and other) use-case.
Please see: https://geekweaver.wordpress.com/2017/10/14/alexa-dtv-security/
It's a bit complex and not for the faint of heart, but will prevent you from NATing your public internet address to your DirectTV box directly. Let me know if you have questions or need clarity.