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 - m0ngr31 - 2016-07-05

(2016-07-05, 06:17)SkyBehind Wrote: For the Lambda Server, I get "errorMessage": "Handler 'lambda_handler' missing on module 'wsgi'" as a response. I looked at the wsgi.py file and saw lambda_handler code, did you have any issues with the wsgi.py file?

I've got an updated version I need to get out that supports heroku and lambda with the same file. I'll try and get it out in the next few days.


RE: Amazon Echo skill for Kodi - SkyBehind - 2016-07-05

(2016-07-05, 06:30)m0ngr31 Wrote:
(2016-07-05, 06:17)SkyBehind Wrote: For the Lambda Server, I get "errorMessage": "Handler 'lambda_handler' missing on module 'wsgi'" as a response. I looked at the wsgi.py file and saw lambda_handler code, did you have any issues with the wsgi.py file?

I've got an updated version I need to get out that supports heroku and lambda with the same file. I'll try and get it out in the next few days.

Thanks! Big Grin


RE: Amazon Echo skill for Kodi - joeygecho - 2016-07-05

I am no coder but I followed the code to the T and eveyrhitng keep getting errors like this

Heres the log.

START RequestId: de4a429f-42d3-11e6-a8e6-0f728c8a632c Version: $LATEST
event.session.application.applicationId=amzn1.echo-sdk-ams.app.56051cba-cb04-4c14-ade0-7111e91c828a
on_session_started requestId=EdwRequestId.4142886d-0e28-4cdf-aeae-ca7d6ccbf399, sessionId=SessionId.0265db61-ad8f-465c-9382-5bb8c2ad6c10
on_intent requestId=EdwRequestId.4142886d-0e28-4cdf-aeae-ca7d6ccbf399, sessionId=SessionId.0265db61-ad8f-465c-9382-5bb8c2ad6c10
Invalid intent: ValueError
Traceback (most recent call last):
File "/var/task/index.py", line 29, in lambda_handler
return on_intent(event['request'], event['session'])
File "/var/task/index.py", line 69, in on_intent
raise ValueError("Invalid intent")
ValueError: Invalid intent

END RequestId: de4a429f-42d3-11e6-a8e6-0f728c8a632c
REPORT RequestId: de4a429f-42d3-11e6-a8e6-0f728c8a632c Duration: 1.37 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 37 MB


RE: Amazon Echo skill for Kodi - joeygecho - 2016-07-05

anything I ask seems to give me this error.

START RequestId: 8965069b-42d7-11e6-9432-b3a01fb2ae91 Version: $LATEST
event.session.application.applicationId=amzn1.echo-sdk-ams.app.56051cba-cb04-4c14-ade0-7111e91c828a
on_session_started requestId=EdwRequestId.dec3943c-8485-4dd3-bd67-7f8c7680fbdd, sessionId=SessionId.2c133e66-a2d5-4ea3-ad15-4b38caccb4ae
on_intent requestId=EdwRequestId.dec3943c-8485-4dd3-bd67-7f8c7680fbdd, sessionId=SessionId.2c133e66-a2d5-4ea3-ad15-4b38caccb4ae
Invalid intent: ValueError
Traceback (most recent call last):
File "/var/task/index.py", line 29, in lambda_handler
return on_intent(event['request'], event['session'])
File "/var/task/index.py", line 69, in on_intent
raise ValueError("Invalid intent")
ValueError: Invalid intent

END RequestId: 8965069b-42d7-11e6-9432-b3a01fb2ae91
REPORT RequestId: 8965069b-42d7-11e6-9432-b3a01fb2ae91 Duration: 0.64 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 37 MB


RE: Amazon Echo skill for Kodi - SkyBehind - 2016-07-11

Just checking to see if you were able to get your updated version uploaded :-)


RE: Amazon Echo skill for Kodi - joeygecho - 2016-07-11

I got everything working its awesome, Great job. Some new things that could be added.

Global search.
Voulme up volume down, using the settings for the particular movie to increase.

everything else is flawless.Laugh


RE: Amazon Echo skill for Kodi - joeygecho - 2016-07-12

(2016-07-05, 06:30)m0ngr31 Wrote:
(2016-07-05, 06:17)SkyBehind Wrote: For the Lambda Server, I get "errorMessage": "Handler 'lambda_handler' missing on module 'wsgi'" as a response. I looked at the wsgi.py file and saw lambda_handler code, did you have any issues with the wsgi.py file?

I've got an updated version I need to get out that supports heroku and lambda with the same file. I'll try and get it out in the next few days.

hey mong I have a great Idea, would it be possible to add in live tv? Like if you add a live tv channel library so essentially you could let alexa search live tv channels via a live channel pvr addon. Just an idea.


RE: Amazon Echo skill for Kodi - Dominique - 2016-07-13

(2016-07-13, 06:09)MANswers Wrote: I've been getting this error while the initial setup. What am i doing wrong?

Quote:C:\Users\HTPC\kodi-alexa>heroku configConfusedet KODI_ADDRESS='my_public_static_ip_address' KODI_PORT='9191' KODI_USERNAME='htpc' KODI_PASSWORD='htpc' --app app-name-and-number
Setting KODI_ADDRESS, KODI_PORT, KODI_USERNAME, KODI_PASSWORD and restarting app-name-and-number... !
! Couldn't find that app.

The last bit (--app app-name-and-number), do i need to keep it as is, or is there something that i need to change in this?

Oh, and yes, kodi is running while i am executing this command. Also, i have port forwarded the port 9191 into my router's admin page.
Ive run a test to verify if its connectable.

C:\Users\HTPC\kodi-alexa>heroku configConfusedet KODI_ADDRESS='my_public_static_ip_address' KODI_PORT='9191' KODI_USERNAME='htpc' KODI_PASSWORD='htpc' --app ********

Look at the stars above. It is likely you left the --app out.


RE: Amazon Echo skill for Kodi - MANswers - 2016-07-13

Each time i try to add details to this web url to generate the custom slot types and submit details, it just goes into an infinite loop. Doesnt show anything.
https://sleepy-wave-26412.herokuapp.com/


RE: Amazon Echo skill for Kodi - Dominique - 2016-07-13

(2016-07-13, 06:39)MANswers Wrote: Each time i try to add details to this web url to generate the custom slot types and submit details, it just goes into an infinite loop. Doesnt show anything.
https://sleepy-wave-26412.herokuapp.com/

It did not work for me either, skip it.


RE: Amazon Echo skill for Kodi - MANswers - 2016-07-13

C:\Users\HTPC\kodi-alexa>heroku configConfusedet KODI_ADDRESS='my_public_static_ip_address' KODI_PORT='9191' KODI_USERNAME='htpc' KODI_PASSWORD='htpc' --app ********

Thanks for your reply.. just one more thing.. do i need to replace --kodi instead of --app as seen above?
--app


RE: Amazon Echo skill for Kodi - Dominique - 2016-07-13

(2016-07-13, 06:58)MANswers Wrote: C:\Users\HTPC\kodi-alexa>heroku configConfusedet KODI_ADDRESS='my_public_static_ip_address' KODI_PORT='9191' KODI_USERNAME='htpc' KODI_PASSWORD='htpc' --app ********

Thanks for your reply.. just one more thing.. do i need to replace --kodi instead of --app as seen above?
--app

Only replace the ******* with your own data.

C:\Users\HTPC\kodi-alexa>heroku configConfusedet KODI_ADDRESS='*******' KODI_PORT='****' KODI_USERNAME='*****' KODI_PASSWORD='*****' --app ********


RE: Amazon Echo skill for Kodi - MANswers - 2016-07-13

I get a msg saying "the requested skill too long to respond". Is there something i can post from the logs? where can i find it?


RE: Amazon Echo skill for Kodi - Epodgorn - 2016-07-24

Is there a way to use this skill to start music playlists? If not, how would I add that to the skill?


RE: Amazon Echo skill for Kodi - gotspidercat - 2016-07-30

Has anyone managed to find a work around for the slow heroku? I'm getting the "the requested skill took to long to respond" time out 100% of the time. I assume it's an issue with heroku but I haven't gotten it to work yet so this is based on other peopls observations. I've limited my library size to 1 movie and streamlined the system to no avail. I can manage to open "living room" within alexa and get my options but I just can't seem to get a response in time. I'm still holding out hope as this is awesome looking application.