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 - russco - 2016-11-28 Here's a new one: Quote:alexa ask living room RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-28 (2016-11-28, 22:00)russco Wrote: Here's a new one: try restarting echo? RE: Amazon Echo skill for Kodi - jingai - 2016-11-28 @Predator004, make sure you're using Python 2.7. Python 3 does not work with lambda-deploy. Not sure if this is your problem, as I'm busy with other things at the moment, so just taking a stab in the dark to give you something to look at. edit: more specifically, make sure that if you have both 2.7 and 3.x installed, that Python 2.7 is being used for this. @russco, I'd need to see your skill's server logs to see if it's even reaching the skill. It doesn't sound like it is. RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-28 (2016-11-28, 22:43)jingai Wrote: @Predator004, make sure you're using Python 2.7. Python 3 does not work with lambda-deploy. Not sure if this is your problem, as I'm busy with other things at the moment, so just taking a stab in the dark to give you something to look at. I am using 2.7 thanks! RE: Amazon Echo skill for Kodi - jingai - 2016-11-28 (2016-11-28, 22:45)Predator004 Wrote:(2016-11-28, 22:43)jingai Wrote: @Predator004, make sure you're using Python 2.7. Python 3 does not work with lambda-deploy. Not sure if this is your problem, as I'm busy with other things at the moment, so just taking a stab in the dark to give you something to look at. I think the other error you see there may be normal (or expected?), not really sure. I don't use Lambda so it's hard for me to say, but.. did it deploy? Can you access the skill in a web browser? You'll get an empty page and HTTP 502 as a response if it's working. Can you use Amazon's test function to issue commands to Kodi? RE: Amazon Echo skill for Kodi - russco - 2016-11-28 (2016-11-28, 22:43)jingai Wrote: @Predator004, make sure you're using Python 2.7. Python 3 does not work with lambda-deploy. Not sure if this is your problem, as I'm busy with other things at the moment, so just taking a stab in the dark to give you something to look at. edit: more specifically, make sure that if you have both 2.7 and 3.x installed, that Python 2.7 is being used for this. Sure thing, where do I find the server logs? I'm using AWS. Also, I tried restarting the Echo, no luck. RE: Amazon Echo skill for Kodi - jingai - 2016-11-28 (2016-11-28, 22:58)russco Wrote:(2016-11-28, 22:43)jingai Wrote: @Predator004, make sure you're using Python 2.7. Python 3 does not work with lambda-deploy. Not sure if this is your problem, as I'm busy with other things at the moment, so just taking a stab in the dark to give you something to look at. edit: more specifically, make sure that if you have both 2.7 and 3.x installed, that Python 2.7 is being used for this. On the AWS Lambda control panel. Sorry I'm not more specific, but I don't use Lambda.. RE: Amazon Echo skill for Kodi - russco - 2016-11-28 No worries, I think this is them: Code: I literally just tried it again, and nothing new showed up in the log. I think where it worked, and played a random movie, was when I tested it from the dashboard. RE: Amazon Echo skill for Kodi - jingai - 2016-11-28 You should scrub personal info from your logs when posting them. Did you make your developer account using the same Amazon account that you have linked to your Echo device(s)? RE: Amazon Echo skill for Kodi - russco - 2016-11-28 Done. And yes, I'm pretty sure. When kodi-alexa-master was created using lambda-deploy, the skill showed up in my alexa app on my phone. So they must all be in the same account. Here's the log of what happened when I deployed: Code: C:\kodi-alexa-master>C:\Python27\Scripts\lambda-deploy.exe deploy (I wiped the first one and tried again which is why it's version 2) Also, when I run a test command from the Amazon developer console, it works just fine. RE: Amazon Echo skill for Kodi - jingai - 2016-11-28 @russco, I honestly don't know then.. if the skill is enabled and can communicate with Kodi -- as you've verified with the test function -- then it should just work. Watch your logs and try asking: "Alexa, ask Kodi what is playing?" RE: Amazon Echo skill for Kodi - russco - 2016-11-29 Nothing shows in the logs. Alexa just says "Sorry, something went wrong. Please try in a little while." Can it be anything to do with me using us-east-1 when I'm not in the US? I'm in Norway, I can't imagine that matters, but it's worth asking. I tried changing to eu-west-1 but that just returns a remote endpoint error when I try to test it out. RE: Amazon Echo skill for Kodi - jingai - 2016-11-29 (2016-11-29, 00:22)russco Wrote: Can it be anything to do with me using us-east-1 when I'm not in the US? I'm in Norway, I can't imagine that matters, but it's worth asking. It's possible, but I don't know definitively. I don't think so, but I do know the region in your .env file needs to match what you set in the AWS console. (2016-11-29, 00:22)russco Wrote: I tried changing to eu-west-1 but that just returns a remote endpoint error when I try to test it out. Have you read the README included with the skill? This part and this part in particular? You need to change the region in both places (and re-deploy whenever you change the .env file). RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-29 (2016-11-29, 00:39)jingai Wrote:(2016-11-29, 00:22)russco Wrote: Can it be anything to do with me using us-east-1 when I'm not in the US? I'm in Norway, I can't imagine that matters, but it's worth asking. what do you mean both places? there is only supposed to be one .env file correct? That's the only file that gets edited? RE: Amazon Echo skill for Kodi - jingai - 2016-11-29 @russco, it's set in the AWS Console too, I thought. Like I said, I've never done this with AWS Lambda, so I'm not totally sure.. but the documentation here suggests that. |