Release Kanzi: Amazon Alexa skill for Kodi - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: Release Kanzi: Amazon Alexa skill for Kodi (/showthread.php?tid=254502) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
RE: Amazon Echo skill for Kodi - digiltd - 2016-10-13 (2016-10-13, 18:05)rlg6767 Wrote: So I've implemented this and it's working successfully but am concerned over the potential security implications and have a few questions: Your concerns are very valid and it is something I struggled with, but I got there in the end. I do plan on writing something for the repo about it. The hardest part was getting my head around the concept of a reverse proxy. This guide was the thing that made it all "click" for me: http://www.htpcguides.com/secure-nginx-reverse-proxy-with-lets-encrypt-on-ubuntu-16-04-lts/ RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-14 (2016-10-13, 23:39)jonjon Wrote: Your concerns are very valid and it is something I struggled with, but I got there in the end. I do plan on writing something for the repo about it. Yes, very familiar with the htpc guides site. Thanks for pointing me to this. Would you mind explaining if there is any configuration required on the Heroku side to get this to work? I'm guessing possibly not as it's a public certificate right? Also, I currently run an Ubuntu server for plex, tvheadend, file server etc. Is there much of a security risk running nginx on that or would I be better off putting it on a spare pi I have? RE: Amazon Echo skill for Kodi - iamlegend2008 - 2016-10-14 (2016-10-13, 21:15)rlg6767 Wrote:(2016-10-13, 20:06)iamlegend2008 Wrote: Hi Hi No worries. Do you mind explaining how you enabled logging in heroku ? Thanks. RE: Amazon Echo skill for Kodi - digiltd - 2016-10-14 (2016-10-14, 09:10)rlg6767 Wrote: Would you mind explaining if there is any configuration required on the Heroku side to get this to work? I'm guessing possibly not as it's a public certificate right? You would need to make a small adjustment to kodi.py to enable https Change the following (currently at line 94) Code: url = "http://%s:%d/jsonrpc" % (KODI, PORT) to Code: url = "https://%s:%d/jsonrpc" % (KODI, PORT) You could install on the same machine, though to be safer and to have more control then install it on a Pi because your Kodi install is on what sounds an important box on of your network. You can also deny connections from all IPs other than those you specify. Heroku might publish the ip range they use, AWS do and you can filter by service and region. This lets me only allow requests from AWS Lambda in the EU region RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-14 (2016-10-14, 14:09)iamlegend2008 Wrote: Hi Just run the command "Heroku logs" from the Tool Belt Command Line Tool (as per here: http://www.joeipson.com/articles/alexa-kodi/) RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-14 (2016-10-14, 14:32)jonjon Wrote: You would need to make a small adjustment to kodi.py to enable https Great thanks for this. Will test it out over the weekend. RE: Amazon Echo skill for Kodi - rafisher79 - 2016-10-15 (2016-10-12, 05:44)jrubin Wrote:(2016-10-07, 20:49)y1ann1s Wrote: Hi,I tried to set it up but the deploy-lambda gives an error that I need to specify region, but the region is in the .env file lol I'm having the same problem. anyone else have any insight? RE: Amazon Echo skill for Kodi - rafisher79 - 2016-10-17 Well, I got it working by installing the aws cli and setting region via that config. I was only getting a 5% success rate too until I changed the keyword from kodi to tv. My Alexa history kept showing "Cody" on all the failed attempts. Thanks for this OP. It is amazing! Will you ever put the PVR functionality in? I'd love to ask it to play "ESPN" sometime! RE: Amazon Echo skill for Kodi - freemans13 - 2016-10-17 I've forked the excellent work done by m0ngr31 to add some PVR functionality. This version let's you change channel ('alexa, ask kodi to watch ITV 2 plus 1'). It also lets you switch channel by calling out the progam name ('alexa, ask kodi to switch to Strictly Come Dancing'). This will scan the EPG to find the channels that are/will-be broadcasting the program and switches to the channel automatically. What I want to do next is add the ability to record programs but the Kodi API doesn't give us this functionality yet It does appear that the up and coming Krypton will address this. I'm considering adding the recording feature via tvheadend in the mean time. That does have an API that I could use but ideally I integrate with kodi. https://github.com/freemans13/kodi-alexa-pvr I'd rather this go back into m0ngr31 repository but not until I've ironed out the bugs and added all the functionality needed. Hope this helps. RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-17 (2016-10-17, 15:34)freemans13 Wrote: I've forked the excellent work done by m0ngr31 to add some PVR functionality. Will test this out as soon as I've got my reverse proxy up and running!! RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-17 (2016-10-13, 23:39)jonjon Wrote: Your concerns are very valid and it is something I struggled with, but I got there in the end. I do plan on writing something for the repo about it. Will this work with a ddns account? From what I've read I don't think they (or many others) support HTTPS.... RE: Amazon Echo skill for Kodi - rafisher79 - 2016-10-17 (2016-10-17, 15:34)freemans13 Wrote: I've forked the excellent work done by m0ngr31 to add some PVR functionality. Great! I'll try it out tonight. Thanks! RE: Amazon Echo skill for Kodi - digiltd - 2016-10-18 (2016-10-17, 17:58)rlg6767 Wrote:(2016-10-13, 23:39)jonjon Wrote: Your concerns are very valid and it is something I struggled with, but I got there in the end. I do plan on writing something for the repo about it. Some claim they do, DuckDNS being one of them (https://www.duckdns.org/faqs.jsp) Afriad being another (https://freedns.afraid.org/dynamic/) Though I set up my own ddns using this guide: https://www.flynsarmy.com/2015/12/setting-up-dynamic-dns-to-your-home-with-route-53/ You need a server online that can host sites which you have root access to (DigitalOcean or similar). You also need an AWS account where you have the domain you want to use already setup with Route53. It is not a simple task and you could easily do a lot of damage, these services rely on you to know what you are doing and there is no support you can email to fix it for you. I was already familiar with DigitalOcean and AWS, I use them regularly for my work. But if you have never used AWS, specifically hosting domains and routing traffic with Route53, and have never setup a server using the command line, you would be better off hunting down a ddns services that offers https. There must be some. Good luck RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-18 (2016-10-14, 14:32)jonjon Wrote: You would need to make a small adjustment to kodi.py to enable https I've got the NGINX server running but am a bit stuck when it comes to the configuration for the Kodi webserver. The below is for couchpotato, do you know how I should edit this to reflect a Kodi configuration (not on the same box....)? I know what the IP address and port are for the Kodi box, but a bit stuck with the rest of it. Also, from a port forwarding perpsective, do I just allow 80 and 443 through to the NGINX server or do I also need to forward the inbound Kodi port to the NGINX server as well? A bit confused as to how that bit works..... location /couchpotato { proxy_pass http://127.0.0.1:5050; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } RE: Amazon Echo skill for Kodi - rlg6767 - 2016-10-18 (2016-10-18, 12:52)jonjon Wrote: Some claim they do, DuckDNS being one of them (https://www.duckdns.org/faqs.jsp) Afriad being another (https://freedns.afraid.org/dynamic/) Yep, it seems to work without any configuration required on my DDNS provider. It's passing the HTTPS request through to NGINX. |