Kodi Community Forum
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)



RE: Amazon Echo skill for Kodi - russco - 2016-11-29

Yeah, if the regions don't match AWS won't let you save your changes.

I did read the readme, many times over now. I can't figure out where I've gone wrong.


RE: Amazon Echo skill for Kodi - jingai - 2016-11-29

I have no idea Sad The only obvious thing would be a typo in your endpoint, but if it works from the test function, that can't be it..

I'm pretty sure it has to be something in the custom skill set up though, since the test function is getting to the skill itself and working. I can only suggest that you go over the readme again, or take screenshots of each tab of the set up and PM me.


RE: Amazon Echo skill for Kodi - russco - 2016-11-29

Okay, if you could let me know which screenshots you need to see, I'll get cracking on that after work this evening.

Thanks so much for your help though, its really appreciated!


RE: Amazon Echo skill for Kodi - jingai - 2016-11-29

(2016-11-29, 08:10)russco Wrote: Okay, if you could let me know which screenshots you need to see, I'll get cracking on that after work this evening.

The Skill Setup, like the screenshots in the README.


RE: Amazon Echo skill for Kodi - russco - 2016-11-29

Sweet, sending you a PM now.


RE: Amazon Echo skill for Kodi - jingai - 2016-11-29

If anyone else is curious (or is having a similar issue), @russco's problem was that he had set the skill to US region, but his mailing address configured on the Echo was not in the US. Using a US mailing address made the skill work, so apparently the two must match.


RE: Amazon Echo skill for Kodi - russco - 2016-11-29

...and now it works, thanks to the patience of jingai!


RE: Amazon Echo skill for Kodi - TearDrop1319 - 2016-11-29

Quick question. Is there anyway to make this skill open an advanced launcher? For example, I have one that is called Live TV. It opens up chrome to Comcast website. Could I say "Alexa, ask media center to open live tv?" I assume no since I do not see anything in the utterance that would allow this. Is this something that could be added? Either way it is working great for watching movies and such and really appreciate the work. For those having problems with Alexa finding your skill, for the invocation name, if you are using Kodi... you will run into issues. If you use Cody, it seems to help, I changed mine to media center and Alexa understand every time now.
Cheers!


RE: Amazon Echo skill for Kodi - jingai - 2016-11-29

@TearDrop1319, it's on the TODO list to allow execution and some level of interaction with addons. But you are correct, it's not in yet.


RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-29

(2016-11-29, 20:11)jingai Wrote: If anyone else is curious (or is having a similar issue), @russco's problem was that he had set the skill to US region, but his mailing address configured on the Echo was not in the US. Using a US mailing address made the skill work, so apparently the two must match.

So i am in california is there a us-west-1 or what would I use?


RE: Amazon Echo skill for Kodi - jingai - 2016-11-29

(2016-11-29, 22:05)Predator004 Wrote:
(2016-11-29, 20:11)jingai Wrote: If anyone else is curious (or is having a similar issue), @russco's problem was that he had set the skill to US region, but his mailing address configured on the Echo was not in the US. Using a US mailing address made the skill work, so apparently the two must match.

So i am in california is there a us-west-1 or what would I use?

Not totally sure if us-west-1 exists, but us-east-1 should work for you anyway.


RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-29

So I followed the guide to the t and get this error:

Quote:C:\Users\Gaming PC\Desktop\kodi-alexa-master>python deploy-to-lambda.py
2016-11-29 12:18:30:INFO:botocore.credentials: Found credentials in environment variables.
2016-11-29 12:18:30:INFO:lambda_deploy: Packaging lambda kodi-alexa
2016-11-29 12:18:30:WARNING:lambda_deploy: A .env file exists in your Lambda directory - be careful that it does not contain any secrets you don't want uploaded to AWS!
2016-11-29 12:18:30:WARNING:lambda_deploy: Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead (see documentation for more information)
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\lambda-deploy.exe\__main__.py", line 9, in <module>
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 376, in main
method()
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 174, in deploy
if self.lambda_name in self.get_function_names():
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 99, in get_function_names
return [l.get('FunctionName') for l in self.get_functions()]
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 96, in get_functions
return self.client.list_functions().get('Functions', [])
File "c:\python27\lib\site-packages\botocore\client.py", line 251, in _api_call
return self._make_api_call(operation_name, kwargs)
File "c:\python27\lib\site-packages\botocore\client.py", line 537, in _make_api_call
raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the ListFunctions operation: User: arn:aw******************r04 is not authorized to perform: lambda:ListFunctions
Collecting requests (from -r C:\Users\Gaming PC\Desktop\kodi-alexa-master\kodi-alexa\requirements.txt (line 1))
Using cached requests-2.12.1-py2.py3-none-any.whl
Collecting gunicorn (from -r C:\Users\Gaming PC\Desktop\kodi-alexa-master\kodi-alexa\requirements.txt (line 2))
Using cached gunicorn-19.6.0-py2.py3-none-any.whl
Collecting yaep (from -r C:\Users\Gaming PC\Desktop\kodi-alexa-master\kodi-alexa\requirements.txt (line 3))
Using cached yaep-0.0.6-py2-none-any.whl
Collecting pycountry (from -r C:\Users\Gaming PC\Desktop\kodi-alexa-master\kodi-alexa\requirements.txt (line 4))
Using cached pycountry-16.11.27.1.tar.gz
Collecting pytz (from -r C:\Users\Gaming PC\Desktop\kodi-alexa-master\kodi-alexa\requirements.txt (line 5))
Using cached pytz-2016.7-py2.py3-none-any.whl
Collecting fuzzywuzzy (from -r C:\Users\Gaming PC\Desktop\kodi-alexa-master\kodi-alexa\requirements.txt (line 6))
Using cached fuzzywuzzy-0.14.0-py2.py3-none-any.whl
Installing collected packages: requests, gunicorn, yaep, pycountry, pytz, fuzzywuzzy
Running setup.py install for pycountry: started
Running setup.py install for pycountry: finished with status 'done'
Successfully installed fuzzywuzzy-0.14.0 gunicorn-19.6.0 pycountry-16.11.27.1 pytz-2016.7 requests-2.12.1 yaep-0.0.6
Starting new HTTPS connection (1): lambda.us-east-1.amazonaws.com



RE: Amazon Echo skill for Kodi - jingai - 2016-11-29

(2016-11-29, 22:23)Predator004 Wrote: So I followed the guide to the t and get this error:

Quote:botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the ListFunctions operation: User: arn:aw******************r04 is not authorized to perform: lambda:ListFunctions

This error would suggest to me that you missed something in this section.

For the user you created, did you copy the Access Key and Secret Access Key from the Security Credentials/Create Access Key dialog and paste them into your .env file?

In the Roles tab, did you select AWSLambdaFullAccess?

Does LAMBDA_ROLE in your .env file exactly match what you got from "Role ARN" in the Roles tab?


RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-29

(2016-11-29, 22:31)jingai Wrote:
(2016-11-29, 22:23)Predator004 Wrote: So I followed the guide to the t and get this error:

Quote:botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the ListFunctions operation: User: arn:aw******************r04 is not authorized to perform: lambda:ListFunctions

This error would suggest to me that you missed something in this section.

For the user you created, did you copy the Access Key and Secret Access Key from the Security Credentials/Create Access Key dialog and paste them into your .env file?

In the Roles tab, did you select AWSLambdaFullAccess?

Does LAMBDA_ROLE in your .env file exactly match what you got from "Role ARN" in the Roles tab?
yes. I recreated the role and it got past that part. Thanks will keep you updated


RE: Amazon Echo skill for Kodi - Predator004 - 2016-11-29

So there is no were to put a url on the new page:
https://imgur.com/a/ZxWT6

I'm using https://developer.amazon.com/

is this correct?


This forum uses Lukasz Tkacz MyBB addons.