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-06 @estratosphere, is it safe to assume that the Invocation Name you chose when you built the skill on Amazon's site is in fact "kodi player"? RE: Amazon Echo skill for Kodi - jingai - 2017-06-07 Kodi-Alexa 2.6.4 is up. Changes:
For #4, the idea is that most navigation commands are likely to be followed up with more, such as: Code: Alexa, ask Kodi to go up For #5, this enables having a "conversation" with the skill before deciding on something to play. Example #1: Code: < "Alexa, open Kodi" Example #2: Code: < "Alexa, open Kodi" As usual, when you're done with a session, you can stop her from listening with the usual stop commands (stop, cancel, etc). Any request that results in media playback will automatically end the session. RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-07 I installed the update without incident. However when I try 'Alexa, ask kodi media to play the latest album", I get 'there was a problem with the requested skills response". All the old features work fine. Here's cloudwatch: START RequestId: 579892b5-4b90-11e7-889f-4fc69b5fc464 Version: $LATEST 14:48:17 Stopping playback 14:48:17 Sending request to http://orangecaweather.duckdns.org:8080/jsonrpc from device amzn1.ask.device.redacted 14:48:18 Sending request to http://orangecaweather.duckdns.org:8080/jsonrpc from device amzn1.ask.device.redacted14:48:18 [INFO] 2017-06-07T14:48:18.679Z 579892b5-4b90-11e7-889f-4fc69b5fc464 72.21.217.135 - - [07/Jun/2017:14:48:18 +0000] "POST / HTTP/1.1" 200 239 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/948.23 14:48:18 END RequestId: 579892b5-4b90-11e7-889f-4fc69b5fc464 14:48:18 REPORT RequestId: 579892b5-4b90-11e7-889f-4fc69b5fc464 Duration: 949.16 ms Billed Duration: 1000 ms Memory Size: 512 MB Max Memory Used: 53 MB 14:48:27 START RequestId: 5d89b94f-4b90-11e7-9133-e55a5d87dc21 Version: $LATEST 14:48:27 Playing latest album by None 14:48:27 [2017-06-07 14:48:27,743] ERROR in c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app: Exception on / [POST] 14:48:27 Traceback (most recent call last): 14:48:27 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1982, in wsgi_app 14:48:27 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1614, in full_dispatch_request 14:48:27 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1517, in handle_user_exception 14:48:27 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1612, in full_dispatch_request 14:48:27 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1598, in dispatch_request 14:48:27 File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\flask-ask\flask_ask\core.py", line 563, in _flask_view_func 14:48:27 File "/var/task/alexa.py", line 691, in alexa_listen_latest_album 14:48:27 artist_id, artist_label = kodi.FindArtist(Artist) 14:48:27 File "/var/task/kodi_voice/kodi.py", line 446, in FindArtist 14:48:27 print 'Searching for artist "%s"' % (heard_search.encode("utf-8")) 14:48:27 AttributeError: 'NoneType' object has no attribute 'encode' 14:48:27 [INFO] 2017-06-07T14:48:27.744Z 5d89b94f-4b90-11e7-9133-e55a5d87dc21 72.21.217.135 - - [07/Jun/2017:14:48:27 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/117.551 14:48:27 END RequestId: 5d89b94f-4b90-11e7-9133-e55a5d87dc21 14:48:27 REPORT RequestId: 5d89b94f-4b90-11e7-9133-e55a5d87dc21 Duration: 118.12 ms Billed Duration: 200 ms Memory Size: 512 MB Max Memory Used: 53 MB 14:48:27 START RequestId: 5dcb55e4-4b90-11e7-855b-454c87c6bb8e Version: $LATEST 14:48:28 [INFO] 2017-06-07T14:48:28.33Z 5dcb55e4-4b90-11e7-855b-454c87c6bb8e 72.21.217.135 - - [07/Jun/2017:14:48:28 +0000] "POST / HTTP/1.1" 200 0 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/59.354 14:48:28 END RequestId: 5dcb55e4-4b90-11e7-855b-454c87c6bb8e 14:48:28 REPORT RequestId: 5dcb55e4-4b90-11e7-855b-454c87c6bb8e Duration: 59.86 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 53 MB No newer events found at the moment. Retry. RE: Amazon Echo skill for Kodi - jingai - 2017-06-07 You have to specify an artist, e.g., "Listen to the latest album by radiohead." Sent from my D5803 RE: Amazon Echo skill for Kodi - bill_orange - 2017-06-07 Yup, that works. RE: Amazon Echo skill for Kodi - jingai - 2017-06-07 If you just want latest music in general, say "play recently added music" or a variation of that. Sent from my D5803 RE: Amazon Echo skill for Kodi - Truegatorguy - 2017-06-09 I've hit a wall here several times, the most recent when initializing Zappa. I had this set up before, but (clearly) missed something so it didn't work. Went back and reran everything, and of course it tells me that all the requirements are previously met. So, as I said, when I get to running Zappa I get this (venv) C:\Users\Rod\Downloads\Echo\kodi-alexa-master>Zappa init Fatal error in launcher: Unable to create process using '"' Any push in the right directions would be GREATLY appreciated! RE: Amazon Echo skill for Kodi - estratosphere - 2017-06-09 (2017-06-06, 22:41)jingai Wrote: @estratosphere, is it safe to assume that the Invocation Name you chose when you built the skill on Amazon's site is in fact "kodi player"? hi yes I used "Cody Player" as my invocation name. I can't figure out why it's not working - everything is setup exactly as per instructions RE: Amazon Echo skill for Kodi - estratosphere - 2017-06-09 (2017-06-09, 21:30)estratosphere Wrote:(2017-06-06, 22:41)jingai Wrote: @estratosphere, is it safe to assume that the Invocation Name you chose when you built the skill on Amazon's site is in fact "kodi player"? Have doubled checked web server is working fine. Changed name and invocation names too and still the same problem. Alexa just doesn't understand Getting the device IDs for multiple echo's - davenest - 2017-06-10 I am trying to get the skill to work with second echo but get this in log: [2017-06-11 01:49:00,497] ERROR in c:\users\dave\appdata\local\temp\pip-build-h_ylev\Flask\flask\app: Exception on / [POST] [1497145740498] Traceback (most recent call last): [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\Flask\flask\app.py", line 1982, in wsgi_app [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\Flask\flask\app.py", line 1614, in full_dispatch_request [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\Flask\flask\app.py", line 1517, in handle_user_exception [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\Flask\flask\app.py", line 1612, in full_dispatch_request [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\Flask\flask\app.py", line 1598, in dispatch_request [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\flask-ask\flask_ask\core.py", line 604, in _flask_view_func [1497145740498] File "c:\users\dave\appdata\local\temp\pip-build-h_ylev\flask-ask\flask_ask\core.py", line 623, in _map_intent_to_view_func [1497145740498] NotImplementedError: Intent "Stop" not found and no default intent specified. [1497145740503] [INFO] 2017-06-11T01:49:00.498Z 23c8982c-4e48-11e7-8f8b-1bec255e7c45 72.21.217.66 - - [11/Jun/2017:01:49:00 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/164.084 [1497145740918] [INFO] 2017-06-11T01:49:00.918Z 24094b7e-4e48-11e7-ac9f-8fcbf4195f5d 72.21.217.66 - - [11/Jun/2017:01:49:00 +0000] "POST / HTTP/1.1" 200 0 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/154.192 anyone have any ideas? RE: Amazon Echo skill for Kodi - Truegatorguy - 2017-06-10 (2017-06-09, 15:51)Truegatorguy Wrote: I've hit a wall here several times, the most recent when initializing Zappa. So, today I decided to rerun everything from the start. Got up to the Zappa init screen and this time I got this response (venv) C:\Users\Rod\Downloads\echo\kodi-alexa-master>zappa deploy dev Calling deploy for stage dev.. Creating kodi-alexa-mast-dev-ZappaLambdaExecutionRole IAM Role.. Error: Failed to manage IAM roles! Better than I was yesterday, but obviously another wall. Went back and checked the boxes ticked for IAM roles, but didn't see anything amiss. Anyone have any ideas? Thank you RE: Amazon Echo skill for Kodi - radiohe4d - 2017-06-10 I've been trying all day to get this new version of the skill up and running. I've had the older version running flawlessly for months now. I've followed the instructions very carefully and have got through without any errors. But unfortunately when i try to test my lambda function using the "Alexa Start Function" test in the AWS Lambda section, it returns a value of 'null' but says that the function completes successfully. The older version replies with the json that alexa uses when you 'Open Kodi', i assume the new version should have this same result. * I installed everything using Ubuntu Server 17 with Python 2.7. * I can reach my instance of kodi from the internet. * The kodi.config file has been setup with my details. * The user and role have been setup as per the guide. * The skill has been created in the same way as the guide. I tried removing all changes and installs and starting again, but with the same results. If anyone could point me in the right direction i would greatly appreciate it EDIT: In the skill setup under 'configuration' tab i set the endpoint as AWS Lambda and set the url as the kodi-alex-dev lambda ARN. This did not work when I tested the skill. If i set the endpoint to HTTPS and the url to the url that ZAPPA gives you when you deploy, then the test works and kodi responds to this request. But when i try to ask my alexa to do something with kodi it responds with "im not quite sure how to help you with that". EDIT 2: [SUCCESS!] It turns out that i had setup the alexa skill as "English (US)". As i am in the UK, the Echo's here can only handle skills that have the language set to "English (UK)". Hopefully my sloppy attempt at setting this up will be helpful to anyone else who runs into problems. Big thanks to the guys who build and maintain this app. Easily the best skill you can add to alexa! RE: Amazon Echo skill for Kodi - rsatina - 2017-06-12 Hello, I've have successfully setup my kodi skill without a problem, I followed the instruction from https://github.com/m0ngr31/kodi-alexa . Here's the log from may Alexa App: The requested application took too long to respond Kodi Request Identifier: amzn1.echo-api.request.8b35ce12-678c-4fa2-bd3f-3b007409a2f8 Applications must respond within 10 seconds of the request being sent Voice feedback Alexa heard: "ask kodi to play a movie spy" [I removed the zappa tail dev logs] What to do to make this work? Update: I was able to make it work, just realize that I used the my localIP address under kodi.config. Now it is working. I really appreciate all of the guys working for kodi-alexa integration. RE: Amazon Echo skill for Kodi - jingai - 2017-06-12 Version 2.6.5 has been released. Changes:
RE: Amazon Echo skill for Kodi - jaysmith2 - 2017-06-14 I am hoping someone can help me. I installed this two days ago (using the instructions here: https://www.howtogeek.com/249336/how-to-control-your-kodi-media-center-with-an-amazon-echo/) using AWS to host the code. After installation, everything ran great. However, I wanted to use a different AWS account so I started from scratch again, and re-installed using the new AWS account to host the code. I followed the instructions start to finish, using the newly released code 2.6.5. Now it doesn't work. When testing it in the Amazon developer site Service Simulator, all responses come back as "There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error". (When it has that error message - does that mean it cannot connect to my kodi, or that it can't connect with the AWS server?) I have tried deleting everything on the AWS site, and re-installing from scratch multiple times, all with the same result. I also tried recreating a new skill, as well as going back to the previous version (2.6.4) all with the same result. I have checked the address, port and password in the kodi.config, and they are all correct and I can connect to kodi fine from a browser. I am thinking it is something very simple that I am overlooking. Can someone please help with suggestions, or how I can further track this problem down? I would greatly appreciate any assistance you can provide. Thanks! |