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 - tojo2503 - 2017-10-19 Hi there, I'm thinking about getting an Amazon Echo... this looks GREAT to control Kodi. Awesome work. I'm using Kodi as my TV Frontend (tvheadend client). Is there a possibility to control the TV part of Kodi with this? I couldn't find anything in the readme or does anyone know another method to switch channels in the TV part? Thanks a lot! RE: Amazon Echo skill for Kodi - fireverm - 2017-10-20 Hello, First, I'd like to thank Jingai for not only making this a reality, but their continued patience in helping everyone on this forum. I stumbled upon this skill while reading HowToGeek and decided to give it a go. While I made a few mistakes (things like adding http:// to my address in kodi.config) on my first attempt, I believe I have corrected all of them, but still cannot get it to work. This is a log excerpt from a ZAPPA TAIL: [1508457186901] [DEBUG] 2017-10-19T23:53:06.887Z a75145e4-b528-11e7-b681-b949c0109b07 Zappa Event: {u'body': u'IHsic2Vzc2lvbiI6IAp7InNlc3Npb25JZCI6IlNlc3Npb25JZC5iZTkxMjg3ZC0xNzI3LTQ1NzItYmM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uQUZVSkozTU1QVDUzSUo1VzNKR1VIN0laQUdNVVFaQVJaWExHMlNXSjZZTlJKR1NKNUJDMkNTVVc1M0dCM0REMlpLR0ZGVVRNQlUyRTZETVpOWEcyR1lSSVI0NjVaR1ZBM0tVUTRBM1hGTUhGWjdRVldHSFA2N0ZWRk1aVkNZSUxBWTIzR1I2WFYyT0xLSk1YTFhBRDYzTlNRQjM0S0NRWTczUFFWRVpCWkRMR1dCMjRJVkFQNks3QkwyVkZRVU41M1NTUTdRRDVVVlZCRE1JIn0sImRldmljZSI6eyJzdXBwb3J0ZWRJbnRlcmZhY2VzIjp7fX19fSwidmVyc2lvbiI6IjEuMCJ9', u'resource': u'/', u'requestContext': {u'resourceId': u'3hpofjpr38', u'apiId': u's3fkerc6ai', u'resourcePath': u'/', u'httpMethod': u'POST', u'requestId': u'a74b042f-b528-11e7-a809-1f0ea7729561', u'path': u'/dev', u'accountId': u'148653542391', u'identity': {u'apiKey': u'', u'userArn': None, u'cognitoAuthenticationType': None, u'accessKey': None, u'caller': None, u'userAgent': u'Apache-HttpClient/UNAVAILABLE (Java/1.8.0_131)', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'XXX.XXX.XXX.XXX', u'accountId': None}, u'stage': u'dev'}, u'queryStringParameters': None, u'httpMethod': u'POST', u'pathParameters': None, u'headers': {u'Content-Type': u'application/json; charset=utf-8', u'Via': u'1.1 6a6df28ba724cd2b086b92e42724bedf.cloudfront.net (CloudFront)', u'CloudFront-Is-Desktop-Viewer': u'true', u'CloudFront-Is-SmartTV-Viewer': u'false', u'SignatureCertChainUrl': u'https://s3.amazonaws.com/echo.api/echo-api-cert-4.pem', u'CloudFront-Is-Mobile-Viewer': u'false', u'X-Forwarded-For': u'XXX.XXX.XXX.XXX, 54.182.230.6', u'CloudFront-Viewer-Country': u'US', u'X-Forwarded-Port': u'443', u'Accept': u'application/json', u'User-Agent': u'Apache-HttpClient/UNAVAILABLE (Java/1.8.0_131)', u'X-Amzn-Trace-Id': u'Root=1-59e93ae2-111d4d921bbb29185b2624d5', u'Accept-Charset': u'utf-8', u'Host': u's3fkerc6ai.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'UUjoceOGavKqDlrdRqLSGt3HJycRlLHTEVk26BrRFzIomy5RRM6YCQ==', u'CloudFront-Is-Tablet-Viewer': u'false', u'Signature': u'RftriqcQydskVUtghioBXhg8oXkD052sJ2KUuLUezIGaH8tmQ3Iu5wWHXK3sXnV8y3o6UkVzsadbi4YmaI946ot/ruVWkrWS0hBVEGHcaDvXjrIVcNWnfCeTQL6w7J6LbZ7pRkMcQ1gIHybMH696lolg6FZYKxVCzpEDX2Fu3bGbFwV+fK14filx07A1USimk98dl2OCLjfP0fSDxkoZbBqud10IIbvwuGVBitOg6QcoumEeUIX/JunMi4UdlAQeCnCQGVRX2A7a4D1nf5F8YhKPmCkiLEMtBdR6VUwz3lCj2tlka7CmbCauZxXG0V3XkvZsvQ1YUswWXwjrRd7ACg==', u'CloudFront-Forwarded-Proto': u'https'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': True} [1508457186979] [INFO] 2017-10-19T23:53:06.979Z a75145e4-b528-11e7-b681-b949c0109b07 Playing recently added songs [1508457186979] [INFO] 2017-10-19T23:53:06.979Z a75145e4-b528-11e7-b681-b949c0109b07 Received request from device None [1508457186979] [INFO] 2017-10-19T23:53:06.979Z a75145e4-b528-11e7-b681-b949c0109b07 Sending request to http://XXXX.gotdns.com:XXXX/jsonrpc [1508457186980] [DEBUG] 2017-10-19T23:53:06.980Z a75145e4-b528-11e7-b681-b949c0109b07 Starting new HTTP connection (1): XXXX.gotdns.com [1508457187245] [DEBUG] 2017-10-19T23:53:07.245Z a75145e4-b528-11e7-b681-b949c0109b07 http://XXXX.gotdns.com:XXXX "POST /jsonrpc HTTP/1.1" 200 74 [1508457187250] [2017-10-19 23:53:07,249] ERROR in e:\temp\pip-build-zwd8a1\Flask\flask\app: Exception on / [POST] [1508457187250] Traceback (most recent call last): [1508457187250] File "e:\temp\pip-build-zwd8a1\Flask\flask\app.py", line 1982, in wsgi_app [1508457187250] File "e:\temp\pip-build-zwd8a1\Flask\flask\app.py", line 1614, in full_dispatch_request [1508457187250] File "e:\temp\pip-build-zwd8a1\Flask\flask\app.py", line 1517, in handle_user_exception [1508457187250] File "e:\temp\pip-build-zwd8a1\Flask\flask\app.py", line 1612, in full_dispatch_request [1508457187250] File "e:\temp\pip-build-zwd8a1\Flask\flask\app.py", line 1598, in dispatch_request [1508457187250] File "e:\temp\pip-build-zwd8a1\flask-ask\flask_ask\core.py", line 670, in _flask_view_func [1508457187250] File "/var/task/alexa.py", line 889, in alexa_listen_recently_added_songs [1508457187250] songs = songs_result['result']['songs'] [1508457187250] KeyError: 'songs' [1508457187250] [INFO] 2017-10-19T23:53:07.250Z a75145e4-b528-11e7-b681-b949c0109b07 XXX.XXX.XXX.XXX - - [19/Oct/2017:23:53:07 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_131)" 0/348.869 (I've X'd out any of the addresses or ports) Would someone mind looking at that and tell me if they can see the problem? Thank you in advance. RE: Amazon Echo skill for Kodi - jingai - 2017-10-20 New release -- changes: v2.9.5 (10/19/2017)
As usual, see UPGRADING.md if you're upgrading from a previous version. RE: Amazon Echo skill for Kodi - jingai - 2017-10-20 (2017-10-19, 12:40)tojo2503 Wrote: Hi there, No, sorry, this skill does not control the PVR aspects of Kodi. RE: Amazon Echo skill for Kodi - jingai - 2017-10-20 (2017-10-20, 02:22)fireverm Wrote: [1508457186979] [INFO] 2017-10-19T23:53:06.979Z a75145e4-b528-11e7-b681-b949c0109b07 Playing recently added songsThe request made was for recently added songs, but Kodi is reporting to the skill that you don't have any songs. What was the exact request you were trying to make? RE: Amazon Echo skill for Kodi - fireverm - 2017-10-20 (2017-10-20, 03:07)jingai Wrote:(2017-10-20, 02:22)fireverm Wrote: [1508457186979] [INFO] 2017-10-19T23:53:06.979Z a75145e4-b528-11e7-b681-b949c0109b07 Playing recently added songsThe request made was for recently added songs, but Kodi is reporting to the skill that you don't have any songs. Yes, I do not have any music associated with my Kodi. I was asking Alexa to play "the terminator". Do I need to specify 'movie' when I say that? RE: Amazon Echo skill for Kodi - jingai - 2017-10-20 (2017-10-20, 03:11)fireverm Wrote: Yes, I do not have any music associated with my Kodi. You can, but you shouldn't need to. In your Alexa app, go to Settings->History and paste here what she actually heard please. RE: Amazon Echo skill for Kodi - jingai - 2017-10-20 @fireverm, Yeah, I just tested here, and unfortunately that's one of the words that Amazon is triggering on internally. Unfortunately there's not much we can do about that, but you can ask more specifically for the movie, like: 'Alexa, ask Kodi to play the movie Terminator' and it should work. Additionally 'Alexa, ask Kodi to watch Terminator' works here, but she's snarfing 'Alexa, ask Kodi to watch The Terminator' (with the article) for that intent too. Ultimately, for the generic 'play,' 'watch,' 'listen' intents where you don't specify the media type (i.e., movie, etc), we need to be able to utilize Amazon's library. Unfortunately, that is only available in the US. We've been waiting (im)patiently for that to change, but it's been something like 8 or 9 months now RE: Amazon Echo skill for Kodi - jingai - 2017-10-20 BTW, if you or anyone else cares, the reason it thought you wanted to play recently added songs is because Amazon 'steals' the slot value from us for certain titles that exist in their library. There doesn't seem to be any rhyme or reason behind what gets 'stolen,' but it's clear that their parser is doing so. This means that our skill is trying to interpret what you wanted with no value; for a generic command, like 'play xxx,' the skill model only sees 'play'. Ideally, this shouldn't match anything at all, but in Amazon's infinite wisdom, they choose the 'best' matching Intent even if it's no good at all. Since nothing was well-matched, Amazon's definition of 'best match' in that case is the last Intent, which happens to be to play recently added music. It didn't used to do this, and plenty of people have complained on Amazon's forums about it, but they don't appear to want to back down from their stance on it. For what it's worth, I personally tend to ask generically, and if it fails, just ask more specifically the next time. Honestly, most of the time it works, and the titles they 'steal' seem to change on a very regular basis, so what doesn't work now can automagically work in the future.. I suspect, personally, that it's somehow related to products they're promoting elsewhere in their ecosystem. For example, for a period after Radiohead was featured on Amazon Music, 'play radiohead' didn't work, but some time later, it did again. RE: Amazon Echo skill for Kodi - fireverm - 2017-10-20 (2017-10-20, 04:36)jingai Wrote: @fireverm, Yeah, I just tested here, and unfortunately that's one of the words that Amazon is triggering on internally. Unfortunately there's not much we can do about that, but you can ask more specifically for the movie, like: Jingai, Specifying 'movie' worked. I cannot believe I had the luck to use one of Amazon's triggers on my sole test case. It was literally just the first movie that popped into my head and I didn't figure the movie title would matter in my test. Thanks again for all of your help! RE: Amazon Echo skill for Kodi - fireverm - 2017-10-20 I cannot say enough how much I love this! After validating that everything worked as expected, I then configured for multiple instances of kodi depending on which echo hears the command. What a great feature. I wish more echo skills could take advantage of that ability. Now all I need is for Amazon to license Majel Barrett's voice and I'll be living in my very own Enterprise D RE: Amazon Echo skill for Kodi - Truegatorguy - 2017-10-20 Hello, all After several failed attempts, I decided to start from scratch, but once again am getting the same "response/error" from Alexa... namely that she can't access the skill. On the test page I'm getting "There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error", with a notation reading there was a "parse error on line 1: there was an error c, expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' My service request reads as follows: { "session": { "new": true, "sessionId": "SessionId.d9699957-ebd7-48bc-a900-7b3b921fe1ec", "application": { "applicationId": "amzn1.ask.skill.c8ff2462-6437-4771-8001-817c389f2d1b" }, "attributes": {}, "user": { "userId": "amzn1.ask.account.AE6CXQJ5IF62C5IQHGY2RC3UNO5UQW5MNN7FC2JC543FYDUONTS73LHV5DNCIT4CLEYC52XSLH3XVSHUMHOPY5V44WCXFAOAI3AXUHFWLIVOGCGDUJ2BFCMMKFY7REOGY353YKPFE3LQWZFWWUSBCXYBWDYSCRTLA3GUKWGJU2IIDFFY73Z5EVLJXZS3HFBJRDYB2GACFLH6YVA" } }, "request": { "type": "IntentRequest", "requestId": "EdwRequestId.da4e56f6-43a3-4269-97c1-1e76f59058ca", "intent": { "name": "PlayMedia", "slots": { "Movie": { "name": "Movie", "value": "the godfather in movies" } } }, "locale": "en-US", "timestamp": "2017-10-20T21:36:35Z" }, "context": { "AudioPlayer": { "playerActivity": "IDLE" }, "System": { "application": { "applicationId": "amzn1.ask.skill.c8ff2462-6437-4771-8001-817c389f2d1b" }, "user": { "userId": "amzn1.ask.account.AE6CXQJ5IF62C5IQHGY2RC3UNO5UQW5MNN7FC2JC543FYDUONTS73LHV5DNCIT4CLEYC52XSLH3XVSHUMHOPY5V44WCXFAOAI3AXUHFWLIVOGCGDUJ2BFCMMKFY7REOGY353YKPFE3LQWZFWWUSBCXYBWDYSCRTLA3GUKWGJU2IIDFFY73Z5EVLJXZS3HFBJRDYB2GACFLH6YVA" }, "device": { "supportedInterfaces": {} } } }, "version": "1.0" I've looked at the forums, and have seen variations on this issue come up, but if anyone can help point me in the right direction, I would GREATLY appreciate it!! Many thanks!! RE: Amazon Echo skill for Kodi - ajerazzor - 2017-10-21 (2017-10-20, 23:51)Truegatorguy Wrote: Hello, all I just updated and getting the same thing - nope I take that back. I was using the text test and asked for "what new tv shows" and I got the error but if I ask for "what new television" it didnt, nor "what new movies" this returned results! RE: Amazon Echo skill for Kodi - Truegatorguy - 2017-10-21 [/quote] I just updated and getting the same thing - nope I take that back. I was using the text test and asked for "what new tv shows" and I got the error but if I ask for "what new television" it didnt, nor "what new movies" this returned results! [/quote] I'm pretty sure everything went through, as I have followed the instructions to a "T", and after running the zappa update dev, get the following message "Your updated Zappa deployment is live!: https://a5####ddu4.execute-api.us-east-1.amazonaws.com/dev", which I'm assuming is the http endpoint address that's required to connect to Alexa, and yet I keep getting the same error regardless of what or how I ask it. RE: Amazon Echo skill for Kodi - ziggy73701 - 2017-10-22 Just out of pure curiosity what does the ability to cache responses in the new update actually mean? |