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: Kanzi: Amazon Alexa skill for Kodi - RodinMe - 2018-12-28 Another point: Note that (to my knowledge), you need to log into your Alexa Developer account to develop or edit the Skill itself, and separately to the AWS Developer account to edit the Lambda skill server. I think that the same Amazon logon will allow you to log into both accounts, but you still need to log into each separately, and you may need to create the two accounts separately (I don't recall about this. I may have created the accounts separately but used the same logon for both.) RE: Kanzi: Amazon Alexa skill for Kodi - vladchiriloiu - 2018-12-28 (2018-12-28, 16:46)RodinMe Wrote: In following the lexigr.am instructions, you either chose the AWS Lambda or the Heroku choice. In either case, Lexigram required you to log into your AWS account. If you chose the AWS Lambda route, you were required to create a zipped file and then upload it to Lambda. When that step was finished, you were (are) logged into the AWS Mnagement Console, in the "Lambda" service, with a Lambda function having been created (with the name "kanzi", I think.) In the upper right hand corner of the browser window is an ARN, like:Hi RodinMe, Thank you for the explanation. I kind of remember some of those steps. However, I looked over the https://lexigr.am/ site again - but there is no mention on how to setup the AWS Lambda in sight. I may be blind (no problem here) but I cannot find anything related to it on this site. RE: Kanzi: Amazon Alexa skill for Kodi - johnnypicnic - 2018-12-31 I cannot seem to get Alexa to see all of my media. I've added the global search addon which means she can find it but it doesn't play automatically. Is there a step i'm missing? Kanzi: Amazon Alexa skill for Kodi - jingai - 2018-12-31 Just say something like, Alexa, ask kodi to watch _movie_ RE: Kanzi: Amazon Alexa skill for Kodi - johnnypicnic - 2018-12-31 For some things it will play automatically for others it would give an error until I added the global search addon. Before the addon was enabled it would go to recently added music by default for everything it could not find. Kanzi: Amazon Alexa skill for Kodi - jingai - 2018-12-31 What are you saying to the Echo, exactly? RE: Kanzi: Amazon Alexa skill for Kodi - johnnypicnic - 2018-12-31 I can say "Alexa ask Kodi to watch Bob's Burgers" and it loads the next unwatched show. If I say "Alexa ask Kodi to watch Seinfeld" it gives an error: "The target Lambda application returned a failure response" Here is the log from Lambda after asking to watch Seinfeld. https://paste.kodi.tv/xalagevini.kodi Kanzi: Amazon Alexa skill for Kodi - jingai - 2018-12-31 Amazon isn't passing anything for that request. Try, 'alexa, ask kodi to watch the next episode of Seinfeld' RE: Kanzi: Amazon Alexa skill for Kodi - johnnypicnic - 2018-12-31 (2018-12-31, 06:07)jingai Wrote: Amazon isn't passing anything for that request.Yup that works. Wonder what's up with Alexa and Seinfeld. There are a few other shows that do the same thing. RE: Kanzi: Amazon Alexa skill for Kodi - CHBMB - 2019-01-09 Would appreciate if you could take a minute or two to review the steps below and see if you can spot where I'm going wrong. I'm running Solus Linux on my desktop and installed nvm from the package manager. After that I followed the directions to install the correct version of node.
My instance of Kodi (on LibreELEC) is set to allow remote control via HTTP (I already have a google home mini successfully communicating with it) and all the settings are still on default as it's not open to WAN, and it resides on 192.168.0.30 My aim is to self host the gunicorn server using the docker container, so installed the container on my server (IP address 192.168.0.1)
All looks good in the logs.
And I'm exposing it to WAN using an Nginx reverse proxy with LetsEncrypt certs using this location block.
Next I edit the kodi.config file, I've removed the commented lines below for sake of brevity.
Then deploy it to Amazon.
Log in to alexa.amazon.co.uk and enable the skill Log in to developer.amazon.com Endpoint is correct (I've replaced my domain name with server.com Build looks fine However the docker logs don't look good
And the developer console shows this But very often I cannot get an output only an overlaid message saying "Skill I/O is available only for speech requests to skills you have created." I'm at a bit of a loss as to where to go from here and would really appreciate a fresh pair of eyes. Kanzi: Amazon Alexa skill for Kodi - jingai - 2019-01-09 Try using cryptography==2.1.4 instead of the latest. I've run into the same issue but haven't had time to fix it properly. Downgrading cryptography fixes it in the meantime though. RE: Kanzi: Amazon Alexa skill for Kodi - CHBMB - 2019-01-09 (2019-01-09, 03:47)jingai Wrote: Try using cryptography==2.1.4 instead of the latest. I've run into the same issue but haven't had time to fix it properly. Downgrading cryptography fixes it in the meantime though.Thanks @jingai Perfect! That worked. For anyone else who runs into this issue. First open a terminal into the docker container Check the cryptography package version installed Output confirms version isn't 2.1.4. Install the compatible version as @jingai advised above Logs should indicate a downgrade of the version Then exit from the docker container with And to finish off (it won't work until you do this step)
Note if you pull the image again you will need to repeat this process. Kanzi: Amazon Alexa skill for Kodi - CHBMB - 2019-01-10 Spoke too soon. Everything works perfectly if I use the developer console using the microphone on my laptop or typing in tests. When it comes to testing using an actual Alexa device tied to the same Amazon account and with the skill enable in "Your Skills" (Dev) section it just isn't playing ball even with simple things like "Alexa ask Kanzi to pause" Am I missing a step to deploy this to prod or is my voice just too weird?! EDIT: Seems to have been resolved by removing my devices from my account and re-adding them. RE: Kanzi: Amazon Alexa skill for Kodi - michiKrems - 2019-01-27 hello forum i m running in problems try to deploy kanzi get error C:\kodi-alexa>lexigram deploy kanzi [1] Kanzi [2] Kodi [0] CANCEL What would you like your invocation name to be? [1, 2, 0]: 1 V Check config file V Validate config file V Check skill directory V Remove old repo code V Download latest source code V Extract source code V Extract source code - Part 2 V Update skill data × Update slot values → Kodi server configuration settings are wrong. Please double-check kodi.con. Deploy skill the kodi.config looks like this # # Global configuration # [global] # Currently supported languages: en, de, fr language = de # By default, if you ask to play media without specifying the type, the skill # will search through the entire library to find a match. # # For example, if you ask, "Alexa, ask Kodi to play ninety nine red balloons," # the skill will search library items in the following order to find the song: # # Movies -> Shows -> Artists -> Songs -> Albums # # If your library is really large, this can take some time to complete. While # it will eventually execute, Alexa may report that the skill timed out. If # this behavior bothers you, you can disable deep searches. # # When disabled, Alexa will simply provide help in the response directing you # to issue a play command that includes the media type of the item. deep_search = yes # Limit number of items we add to playlists. # # Some requests will cause the skill to create a temporary playlist in Kodi # before executing your command. This operation is expensive in Kodi, so we # provide the option here to limit the number of items added. # # The default is 100 to match Kodi's own 'party mode.' Higher values will # make these operations slower, but if your setup can handle it, you're free # to set this to whatever you like. # # Set to an empty string for unlimited. playlist_max_items = 100 # Search result limits for new (unwatched) Movies and Episodes. # # By default we ask kodi to return a max of 100 results per JSON request. # Here you can set this figure to optimize the system for you. # Results are always retrieved in order of newest episodes and movies first. # # Lower figures will produce faster results and limit them to only media that # you've recently added to the library. unwatched_shows_max_results = 100 unwatched_episodes_max_results = 100 unwatched_movies_max_results = 100 # Set logging level. Possible values are: # # CRITICAL # ERROR # WARNING # INFO # DEBUG loglevel = INFO # Log sensitive or personally identifying information. # # Disabling this prevents the skill from logging the target address for Kodi # and your device IDs. # # It is enabled by default to make it easy for you to identify your Echo # devices for mapping to specific instances of Kodi. logsensitive = yes # Global Alexa skill configuration # [alexa] # Set skill_id to enable verification of requests by Flask-Ask. skill_id = # Maximum number of items to generate per slot. # # If the skill is failing to save, you may need to reduce this. Conversely, # if Alexa is having problems distinguishing your requests (executing the # wrong Intent, for instance), you may need to increase this. slot_items_max = 100 # # Default parameters common to all Alexa devices and the web simulator # [DEFAULT] # The Kodi webserver only supports HTTP, but if you've set up a reverse HTTPS # proxy you can change this to https. scheme = http address = alarmxxxx.ddns.net port = 8080 # If using a reverse proxy you might need to add an extra bit to the url # before "jsonrpc" (don't use slashes before or after). subpath = username = kodi password = mypassword # Caching of Kodi responses. # # Provide an Amazon S3 bucket or a directory name here and provide credentials # for one of the cache backends below to enable. cache_bucket = # Amazon S3 cache backend. # # Provide an AWS user key and key ID here to enable. s3_cache_aws_access_key_id = s3_cache_aws_secret_access_key = # ownCloud/nextCloud cache backend. # # Provide the base URL for your ownCloud server and a valid user and password # combination to enable. owncloud_cache_url = owncloud_cache_user = owncloud_cache_password = # Read timeout -- how long to wait for responses from Kodi before giving up. # # Normally there is no need to change this. read_timeout = 120 # For some commands, we don't care about the response from Kodi, so we send # them "fire-and-forget." If you've got a proxy server in the middle, though, # it's possible the command might not make it to Kodi before the skill exits. # # If Alexa is telling you she has completed a command but it sometimes does # not actually execute on Kodi, you may need to increase this. read_timeout_async = 0.01 # Set shutdown to 'quit' if you'd like "Alexa, tell Kodi to shut down" # to quit Kodi instead of shutting down the system. shutdown = # Your local time zone for responses that include absolute times. # See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones # # For example, if you are in the Eastern US time zone, you would use: # timezone = US/Eastern # # Leave empty if you don't need or want absolute time responses. An example # is asking when the currently playing item will end. If you have this # defined, it will also tell you the wall-clock time when the item will # conclude. timezone = # Setup MongoDB to handle playing music from Kodi to your Alexa device # Must accept agreement saying I'm not liable for stolen information # since your username and password for Kodi will be stored in plaintext # in a database and will be transferred over the internet to a HTTPS # proxy server for you to have this functionality. # # mongodb_uri will look like: `mongodb://user:[email protected]:port/database` # If you're using alternative proxy from Heroku, alt_proxty looks like: # `https://my-kodi-proxy.herokuapp.com/proxy?file=` mongodb_uri= use_proxy= alt_proxy= accept_music_warning= # Override default values by specifying them below for individual devices. # # The usual reason to do this is to associate a given Echo device with a # particular instance of Kodi in your house, but you can override any of # the other configuration variables from the DEFAULT section here too. # # Device IDs can be found in the skill server / lambda log. # living room dot [amzn1.ask.device.XXX] address = living-room-kodi # kitchen echo [amzn1.ask.device.XXX] address = living-room-kodi # kids room dot [amzn1.ask.device.XXX] address = kids-room-kodi # office dot [amzn1.ask.device.XXX] address = office-kodi # tap [amzn1.ask.device.XXX] address = living-room-kodi how can i find the error or mistake ? thanks for help ok url error caused when password includes "special charakters" deploy hangs x try and error but deploy on Win10/32 bit nvm vers 1.1.5 32 bit version will do it for me RE: Kanzi: Amazon Alexa skill for Kodi - michiKrems - 2019-01-29 Who can help setup koko ? i dont understand mongoDb konfiguration and missing a step by step guide anyone knows about this ? das ganze in deutsch wär auch nicht schlecht,brech mir hier noch die zunge ab ;-) |