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 - jingai - 2017-06-26 Yes, it should, assuming you're forwarding port 8080 on your router correctly to the machine on which Kodi is running. Try first to connect to it over your LAN to make sure Kodi's JSON-RPC interface is actually enabled and working. In a browser on your LAN, use the local address of the machine for Kodi with port 8080. RE: Amazon Echo skill for Kodi - MANswers - 2017-06-26 I am able to view the web interface using 192.168.1.110:8080 However I am unable to view the same web interface when using public.ip:8080 I am gonna start working on my firewall... probably thats the reason? RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-27 I just loaded the latest update. Overall it works fine and it does seem to find albums easier. However, a new problem cropped up. Since I am running Kodi 18 that could be involved. Changing the volume result in "there was a problem with the requested skills response" The volume does change in spite of the error. Can someone test this using Kodi 17? I am thinking its another Kodi 18 issue. 15:35:49 START RequestId: 4bd58359-5b4e-11e7-8f17-09ce4b00f532 Version: $LATEST 15:35:49 Adjusting volume 15:35:49 Sending request to http://redacted amzn1.ask.device.redacted 15:35:49 [2017-06-27 15:35:49,902] ERROR in c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app: Exception on / [POST] 15:35:49 Traceback (most recent call last): 15:35:49 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1982, in wsgi_app 15:35:49 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1614, in full_dispatch_request 15:35:49 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1517, in handle_user_exception 15:35:49 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1612, in full_dispatch_request 15:35:49 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1598, in dispatch_request 15:35:49 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\flask-ask\flask_ask\core.py", line 563, in _flask_view_func 15:35:49 File "/var/task/alexa.py", line 1073, in alexa_volume_set_pct 15:35:49 vol = kodi.VolumeSet(int(Volume))['result'] 15:35:49 TypeError: 'NoneType' object has no attribute '__getitem__' 15:35:49 [INFO] 2017-06-27T15:35:49.903Z 4bd58359-5b4e-11e7-8f17-09ce4b00f532 72.21.217.134 - - [27/Jun/2017:15:35:49 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/283.363 15:35:49 END RequestId: 4bd58359-5b4e-11e7-8f17-09ce4b00f532 15:35:49 REPORT RequestId: 4bd58359-5b4e-11e7-8f17-09ce4b00f532 Duration: 283.93 ms Billed Duration: 300 ms Memory Size: 512 MB Max Memory Used: 54 MB 15:35:50 START RequestId: 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f Version: $LATEST 15:35:50 [INFO] 2017-06-27T15:35:50.190Z 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f 72.21.217.134 - - [27/Jun/2017:15:35:50 +0000] "POST / HTTP/1.1" 200 0 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/36.599 15:35:50 END RequestId: 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f 15:35:50 REPORT RequestId: 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f Duration: 37.03 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 54 MB No newer events found at the moment. Retry. RE: Amazon Echo skill for Kodi - jingai - 2017-06-27 @bill-orange, what are you saying exactly to change the volume? RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-27 "Alexa, ask kodi media to set the volume to 75%" The volume sets correctly, then the error "there was a problem with the requested skills response" . So the volume command JSON works but the Skill chokes on the return string. It worked up until now. There have also been new Kodi nightly builds. RE: Amazon Echo skill for Kodi - jingai - 2017-06-27 What does it say she heard in the Alexa App? RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-27 Nothing, except "there was a problem with the requested skills response". P.S. Album recognition is much better. I used to get a timeout on "Alexa ask kodi media to play the Emerson, Lake and Palmer album Works vol 2" about 75% of the time. It is now selected correctly in a couple of seconds. Marriage of Figaro used to also be problematic. It is found and played in a couple of seconds now. Bill RE: Amazon Echo skill for Kodi - jingai - 2017-06-27 @bill-orange, go to Settings->History in the Alexa App. It will say what she heard there. RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-27 Voice feedback Alexa heard: "alexa ask kodi media to set the volume to seventy percent" RE: Amazon Echo skill for Kodi - jingai - 2017-06-27 Sorry, I mistakenly added an optimization to the volume commands that I shouldn't have. I've fixed it upstream. If you want to update, you don't need to update the skill on the skill builder -- just update the skill code. RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-27 No problem. I loaded up the revised update. Unfortunately now I am still seeing the same issue. Looks like the same error. Nothing odd on the reload to Lambda. Everything seemed to "take". [INFO] 2017-06-27T20:06:07.164Z 0e229261-5b74-11e7-aff6-03a64cc3417e 72.21.217.166 - - [27/Jun/2017:20:06:07 +0000] "POST / HTTP/1.1" 200 203 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/156.124 20:06:07 END RequestId: 0e229261-5b74-11e7-aff6-03a64cc3417e 20:06:07 REPORT RequestId: 0e229261-5b74-11e7-aff6-03a64cc3417e Duration: 156.78 ms Billed Duration: 200 ms Memory Size: 512 MB Max Memory Used: 52 MB 20:06:10 START RequestId: 102ba8b8-5b74-11e7-ac20-f52eaac122ef Version: $LATEST 20:06:10 END RequestId: 102ba8b8-5b74-11e7-ac20-f52eaac122ef 20:06:10 REPORT RequestId: 102ba8b8-5b74-11e7-ac20-f52eaac122ef Duration: 0.37 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 52 MB 20:06:13 START RequestId: 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 Version: $LATEST 20:06:13 Adjusting volume 20:06:13 [2017-06-27 20:06:13,892] ERROR in c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app: Exception on / [POST] 20:06:13 Traceback (most recent call last): 20:06:13 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1982, in wsgi_app 20:06:13 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1614, in full_dispatch_request 20:06:13 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1517, in handle_user_exception 20:06:13 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1612, in full_dispatch_request 20:06:13 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1598, in dispatch_request 20:06:13 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\flask-ask\flask_ask\core.py", line 563, in _flask_view_func 20:06:13 File "/var/task/alexa.py", line 1073, in alexa_volume_set_pct 20:06:13 vol = kodi.VolumeSet(int(Volume))['result'] 20:06:13 TypeError: 'NoneType' object has no attribute '__getitem__' 20:06:13 [INFO] 2017-06-27T20:06:13.893Z 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 72.21.217.166 - - [27/Jun/2017:20:06:13 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/128.049 20:06:13 END RequestId: 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 20:06:13 REPORT RequestId: 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 Duration: 128.67 ms Billed Duration: 200 ms Memory Size: 512 MB Max Memory Used: 52 MB 20:06:14 START RequestId: 126e6d1e-5b74-11e7-947d-555efff7143d Version: $LATEST 20:06:14 [INFO] 2017-06-27T20:06:14.240Z 126e6d1e-5b74-11e7-947d-555efff7143d 72.21.217.166 - - [27/Jun/2017:20:06:14 +0000] "POST / HTTP/1.1" 200 2 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/47.913 20:06:14 END RequestId: 126e6d1e-5b74-11e7-947d-555efff7143d 20:06:14 REPORT RequestId: 126e6d1e-5b74-11e7-947d-555efff7143d Duration: 48.63 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 52 MB RE: Amazon Echo skill for Kodi - jingai - 2017-06-27 Kodi-Voice was updated to 0.9.1 for you, right? Did you do: Code: pip install -r requirements.txt Before updating? RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-28 Nope. Funny thing It works fine when I did it just now. Thanks! Bill RE: Amazon Echo skill for Kodi - Tabclear - 2017-06-28 Hi, This looks like a great skill. I do feel uncomfortable opening my Kodi box up to the internet though, are there any plans to implement WebSockets via a Kodi addon for the external connection? Would make it much more secure. Thanks RE: Amazon Echo skill for Kodi - jingai - 2017-06-28 (2017-06-28, 15:05)Tabclear Wrote: I do feel uncomfortable opening my Kodi box up to the internet though, are there any plans to implement WebSockets via a Kodi addon for the external connection? Would make it much more secure. Not currently, sorry. For now, your options to secure things are: 1) A reverse HTTPS proxy installed locally, or, 2) Host the skill locally (via Apache, nginx, etc). |