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 - stuCONNERS - 2016-11-07 no pip on libreelec RE: Amazon Echo skill for Kodi - jingai - 2016-11-07 You can't install it? RE: Amazon Echo skill for Kodi - stuCONNERS - 2016-11-07 nope its locked down RE: Amazon Echo skill for Kodi - jingai - 2016-11-07 If you have another computer you can use, that might be best. You don't have to do this on the machine that runs Kodi if you're deploying to Lambda, Heroku, etc. RE: Amazon Echo skill for Kodi - stuCONNERS - 2016-11-07 think its time to jump ship and move over to Xubuntu instead RE: Amazon Echo skill for Kodi - jingai - 2016-11-09 I'd really like to see some people with PVRs testing @freemans13's PVR pull request. If anyone out there with a PVR wants to give it a go but doesn't know how to check it out for testing, here's what you do: Code: git fetch upstream pull/47/head:pr-47 RE: Amazon Echo skill for Kodi - rlg6767 - 2016-11-10 I'll test this over the next few days. RE: Amazon Echo skill for Kodi - nawo69 - 2016-11-10 (2016-10-31, 13:34)jingai Wrote:Running latest version I have the issue with having to ask it to play episodes twice again here is a snippet of the logs; 1st time it seems to try and play as a playlist then second as regular item(2016-10-31, 13:06)nawo69 Wrote: But I did test a few times last night and c7367ba was fine but 6307d27/1e59125 had to ask twice; though navigation commands like play/pause/stop etc did work fine first time 1st attempt fails -Spmc log 18:20:48 T:18446744071846359680 NOTICE: EMBY.playbackutils -> Play called. 18:20:48 T:18446744071846359680 NOTICE: EMBY.playutils -> Verifying path: smb://192.168.0.13/Share/TVHD/The Blacklist/Season 04/The Blacklist - S04E01 - Esteban.mkv 18:20:48 T:18446744071846359680 NOTICE: EMBY.playutils -> Path exists. 18:20:48 T:18446744071846359680 NOTICE: EMBY.playutils -> File is direct playing. 18:20:48 T:18446744071846359680 NOTICE: EMBY.playbackutils -> Setting up properties in playlist. 18:20:48 T:18446744072040732416 NOTICE: EMBY.kodimonitor -> Method: Playlist.OnRemove Data: {"playlistid":1,"position":1} 18:20:48 T:18446744071846359680 NOTICE: EMBY.playbackutils -> Processed as a playlist. First item is skipped. 2nd attempt works – spmc log 18:23:48 T:18446744071847121408 NOTICE: EMBY.playbackutils -> Play called. 18:23:48 T:18446744071847121408 NOTICE: EMBY.playutils -> Verifying path: smb://192.168.0.13/Share/TVHD/The Blacklist/Season 04/The Blacklist - S04E01 - Esteban.mkv 18:23:48 T:18446744071847121408 NOTICE: EMBY.playutils -> Path exists. 18:23:48 T:18446744071847121408 NOTICE: EMBY.playutils -> File is direct playing. 18:23:48 T:18446744071847121408 NOTICE: EMBY.playbackutils -> Play as a regular item. 18:23:48 T:18446744072443575808 NOTICE: DVDPlayer: Opening: smb://192.168.0.13/Share/TVHD/The Blacklist/Season 04/The Blacklist - S04E01 - Esteban.mkv Lambda log lambda_handler: applicationId=amzn1.ask.skill.955d3c26-0489-4519-ba01-myid Verifying application ID... on_session_started: requestId=amzn1.echo-api.request.021e5dc7-f89f-41cb-8646-28427626327a, sessionId=amzn1.echo-api.session.341921ac-4c32-4b5a-a607-06dca0c78ed7 on_intent: requestId=amzn1.echo-api.request.021e5dc7-f89f-41cb-8646-28427626327a, sessionId=amzn1.echo-api.session.341921ac-4c32-4b5a-a607-06dca0c78ed7 Requested intent: PlayNextEpisode Playing the next unwatched episode of the blacklist Sending request to http://myip.no-ip.org:8080/jsonrpc the blacklist Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc END RequestId: 6368edd7-a772-11e6-aca1-29f22d6f8f9b REPORT RequestId: 6368edd7-a772-11e6-aca1-29f22d6f8f9b Duration: 7208.38 ms Billed Duration: 7300 ms Memory Size: 128 MB Max Memory Used: 52 MB START RequestId: cec3fd93-a772-11e6-a00d-69330b25bf85 Version: $LATEST lambda_handler: applicationId=amzn1.ask.skill.955d3c26-0489-4519-ba01-myid Verifying application ID... on_session_started: requestId=amzn1.echo-api.request.9e9e5e72-328f-4a1c-8cfe-1fea05802d90, sessionId=amzn1.echo-api.session.myid-f30d-43d0-89d8-86ea140c6d88 on_intent: requestId=amzn1.echo-api.request.9e9e5e72-328f-4a1c-8cfe-1fea05802d90, sessionId=amzn1.echo-api.session.myid-f30d-43d0-89d8-86ea140c6d88 Requested intent: PlayNextEpisode Playing the next unwatched episode of the blacklist Sending request to http://myip.no-ip.org:8080/jsonrpc the blacklist Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc Sending request to http://myip.no-ip.org:8080/jsonrpc END RequestId: cec3fd93-a772-11e6-a00d-69330b25bf85 REPORT RequestId: cec3fd93-a772-11e6-a00d-69330b25bf85 Duration: 7764.54 ms Billed Duration: 7800 ms Memory Size: 128 MB Max Memory Used: 52 MB START RequestId: d9abe48e-a772-11e6-aa2e-81330bbb78b3 Version: $LATEST lambda_handler: applicationId=amzn1.ask.skill.955d3c26-0489-4519-ba01-myid Verifying application ID... on_session_started: requestId=amzn1.echo-api.request.f31d027e-fe29-414b-9c23-94dd20c5dfa2, sessionId=amzn1.echo-api.session.94dfc915-d914-45bd-b47d-ef3550154960 on_intent: requestId=amzn1.echo-api.request.f31d027e-fe29-414b-9c23-94dd20c5dfa2, sessionId=amzn1.echo-api.session.94dfc915-d914-45bd-b47d-ef3550154960 Requested intent: Stop Stopping playback Sent from my SHIELD Tablet K1 RE: Amazon Echo skill for Kodi - jingai - 2016-11-10 (2016-11-10, 20:55)nawo69 Wrote: 18:20:48 T:18446744071846359680 NOTICE: EMBY.playbackutils -> Play called. Well, this explains pretty clearly why it's doing it. It thinks "smb://192.168.0.13/Share/TVHD/The Blacklist/Season 04/The Blacklist - S04E01 - Esteban.mkv" is a playlist, so it's not playing the item directly. Unfortunately, I can't really say why it would do this, but it seems it's something Emby is deciding to do. By the time Kodi/Emby/whatever has hold of a file to play, it's got nothing left to do with the Alexa skill. Though someone else here that uses Emby may be able to help you diagnose the problem. RE: Amazon Echo skill for Kodi - jacobh - 2016-11-10 (2016-11-04, 16:22)jonjon Wrote: @CaptainMoody this has been fixed, to update you just download the zip from the repo I don't think this has been fixed (the None issue in the URL), since I just tried to set this up today with a fresh pull from the repo and I am getting the same error. It's easy enough for me to fix locally since I have no intent of using https or the subpath option. RE: Amazon Echo skill for Kodi - jingai - 2016-11-10 (2016-11-10, 22:41)jacobh Wrote:(2016-11-04, 16:22)jonjon Wrote: @CaptainMoody this has been fixed, to update you just download the zip from the repo I can't test it myself, though I did have others who use Lambda test it. Are you absolutely certain you are in fact using the latest? In kodi.py around line 102, the SendCommand method should look like this: Code: # Do not use below for your own settings, use the .env file RE: Amazon Echo skill for Kodi - jacobh - 2016-11-10 Yes, this is exactly what the code looks like. I modified the URL generation to just not use those parameters: Code: # Join the environment variables into a url I realize this will get overridden when I do another pull to update my code, but I was more interested in testing the whole thing out then finding a real fix. I'm not a python guy, so I don't know if there are differences in how the '' might be interpreted. On my Lamda setup, the runtime is Python 2.7 and the handler is wsgi.lambda_handler. I also think it's the latest because there was a change in the lambda-deploy code from when I tried this a week ago or so. This time I had to install the Visual C python compiler for it to work. RE: Amazon Echo skill for Kodi - jingai - 2016-11-10 (2016-11-10, 22:56)jacobh Wrote: Yes, this is exactly what the code looks like. They're just empty strings. It won't print them as "None" like it's doing for you. SCHEME = os.getenv('KODI_SCHEME') will return None if it's unset, and "if not SCHEME" would/should catch that and set SCHEME to 'http'. You could print the value of SCHEME and SUBPATH just after the os.getenv() calls and check your log if you wish to help figure out what's causing this. (2016-11-10, 22:56)jacobh Wrote: I also think it's the latest because there was a change in the lambda-deploy code from when I tried this a week ago or so. This time I had to install the Visual C python compiler for it to work. Yeah, because python-Levenshtein is written in C. I presume you could also install a binary package though and it should work. RE: Amazon Echo skill for Kodi - jacobh - 2016-11-10 (2016-11-10, 23:09)jingai Wrote:(2016-11-10, 22:56)jacobh Wrote: Yes, this is exactly what the code looks like. I just installed the VC python compiler and it worked fine. It wasn't complicated, but it might be worth updating the readme. It's definitely still broken. The log from my Lambda instance was showing: Code: http://None:/xxx.homenet.org:3579/None/jsonrpc I removed my actual hostname and replaced it with xxx. I think the problem is likely the http_normalize_slashes method. I'm just figuring out how to do debugging with Python, but I'll play around with a bit more tonight. If I find the problem I will submit a pull request (or paste the fix here if that's preferred). RE: Amazon Echo skill for Kodi - jingai - 2016-11-10 Two things then: 1) Do you have KODI_SCHEME and KODI_SUBPATH defined in your .env file? Even if they're empty -- I just want to know if they're uncommented. 2) If you can put those print statements below the os.getenv() calls it will probably tell me what I need to know. I can get a pre-modified copy of kodi.py to you if you need me to. |