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 - jouster - 2017-11-14

ok. so managed to get the system up and running via AWS using the HowToGeek instructions and when using the service simulator to test it works perfect...it plays back on my setup kodi build and works as expected....but if I request it verbally via any of my echo dots (specifically the lounge one), it simply doesn't work...its like it doesn't even know the command I have set or the skill even exists

If I go into the Alexa app under skills and "your skills"  I can see the skill and it is enabled...

I sometimes get "I don't know that one" as a response" but other times I get "I can't find that skill"

Not sure what I can be doing wrong...could an existing skill be causing conflict

--------------------------

My bad.I had it set up as an English US skill....just had to add English UK as a language and now all working...

I am noticing some shows and movies don't work...but when that happens I am just adding each non-working tv show or movie name to the Custom Slot type value

Is there a simple way to get a list of the movies in my library (in an SQL database) from my setup so I can enter the entire list in...if that would help)

Also, in the instance of having two movies with the same name..eg Robocop (original and reboot)...how would I go about selecting the original when asking for Robocop by title just plays the newest movie

Since I last tried this, the system is working much quicker even with a library with 5000+ movies...so its working very well


RE: Amazon Echo skill for Kodi - jingai - 2017-11-14

What shows and movies are you having trouble with?


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-14

Just spent ages setting this up, followed the guide to the letter, yet I cant get it to work.

If I ask Alexa through the Echo I get 'I cannot find a device called Kodi', if I try through the service simulator I get There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error

I just tried searching this thread for a clue to what might be wrong & saw something about different settings in the UK? Which settings are different? I've put the server as eu-west-1 in AWS service access as the guide states, it doesnt mention a UK server. In the Amazon skill setup I selected English UK as the language.

I should note, I've got the Kodi skill I created in my skills section in the Alexa app, & it was already enabled, I assuming no restart of the Echo is required?

Is there any way I can do further troubleshooting to pin down the issue?


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-14

I've now changed the invocation name to 'living room' as I wondered if my use of Harmony & the 'Kodi' name in that was causing a conflict.

Now I get 'There was a problem with the requested skills response' when I ask Alexa to play a show or movie, if I request through the service simulator I still get There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error.


RE: Amazon Echo skill for Kodi - digiltd - 2017-11-14

(2017-11-14, 19:26)FoxForceFive Wrote: I've now changed the invocation name to 'living room' as I wondered if my use of Harmony & the 'Kodi' name in that was causing a conflict.

Now I get 'There was a problem with the requested skills response' when I ask Alexa to play a show or movie, if I request through the service simulator I still get There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error.

If it is not working in the simulator then it not working. It sounds like Alexa is not able to reach the server you deployed the Skill to. 

I would start again, especially if this is your first try


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-14

(2017-11-14, 20:50)digiltd Wrote:
(2017-11-14, 19:26)FoxForceFive Wrote: I've now changed the invocation name to 'living room' as I wondered if my use of Harmony & the 'Kodi' name in that was causing a conflict.

Now I get 'There was a problem with the requested skills response' when I ask Alexa to play a show or movie, if I request through the service simulator I still get There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error.

If it is not working in the simulator then it not working. It sounds like Alexa is not able to reach the server you deployed the Skill to. 

I would start again, especially if this is your first try 

I was afraid someone would say that! Grrrr.

Ah well, should be a fair bit faster this time.

I'm assuming I just delete the kodi-alexa-master folder then redo the cmd inputting, & can just change the input address in the skill I made rather than create a new skill as well?


RE: Amazon Echo skill for Kodi - jouster - 2017-11-14

(2017-11-14, 15:36)jingai Wrote: What shows and movies are you having trouble with?

its all sorts of movies...sometimes adding them to the custom slot types values helps...other times it doesnt


RE: Amazon Echo skill for Kodi - digiltd - 2017-11-14

(2017-11-14, 21:05)FoxForceFive Wrote: I was afraid someone would say that! Grrrr.

Ah well, should be a fair bit faster this time.

I'm assuming I just delete the kodi-alexa-master folder then redo the cmd inputting, & can just change the input address in the skill I made rather than create a new skill as well? 
Indeed, it probably won't be your last time either. Assuming you used `zappa deploy dev` initially you should ideally run `zappa undeploy dev` to clean up all the AWS stuff.

To be sure I would remove the Skill as well, and when you create a new one, make sure it is set to UK English at the very start.


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-14

(2017-11-14, 21:31)digiltd Wrote:
(2017-11-14, 21:05)FoxForceFive Wrote: I was afraid someone would say that! Grrrr.

Ah well, should be a fair bit faster this time.

I'm assuming I just delete the kodi-alexa-master folder then redo the cmd inputting, & can just change the input address in the skill I made rather than create a new skill as well? 
Indeed, it probably won't be your last time either. Assuming you used `zappa deploy dev` initially you should ideally run `zappa undeploy dev` to clean up all the AWS stuff.

To be sure I would remove the Skill as well, and when you create a new one, make sure it is set to UK English at the very start. 

Ah well, I've been playing around with these things since back in the Xbox days of the original XBMC & have done much more tiresome things, I think I've just been spoilt the last few years as so much of this stuff is automated. I remember spending entire weekends correcting or inputting film & TV metadata then marrying up artwork before these lovely scripts & add-ons came along, so I shouldn't grumble!

Whilst I'm on, huge thanks to the dev & those who put hard work into this, I was convinced if there was a working Alexa integration I'd have heard of it so didn't even think to search for it, it's incredible work to have got it working so well (based on the videos obv) & I apologise in advance for any further questions I may have!


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-14

(2017-11-14, 21:20)jouster Wrote:
(2017-11-14, 15:36)jingai Wrote: What shows and movies are you having trouble with?

its all sorts of movies...sometimes adding them to the custom slot types values helps...other times it doesnt 
I'm sure I've read somewhere in the last few hours that saying 'the second Robocop movie' etc is easier for it to understand sequels, but I have read a helluva lot of stuff so I'm not entirely sure whether I read it in relation to this. Still, wouldn't do any harm to try that language for any sequels that you may be struggling with.


Amazon Echo skill for Kodi - jouster - 2017-11-14

(2017-11-14, 22:56)FoxForceFive Wrote:
(2017-11-14, 21:20)jouster Wrote:
(2017-11-14, 15:36)jingai Wrote: What shows and movies are you having trouble with?

its all sorts of movies...sometimes adding them to the custom slot types values helps...other times it doesnt 
I'm sure I've read somewhere in the last few hours that saying 'the second Robocop movie' etc is easier for it to understand sequels, but I have read a helluva lot of stuff so I'm not entirely sure whether I read it in relation to this. Still, wouldn't do any harm to try that language for any sequels that you may be struggling with.


I can’t get it to play the original. If I ask for robocop it plays the reboot.

I have no issues playing Robcop 2 or 3 (not that I can think of one tiny reason to watch number 3)


Sent from my iPhone


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-14

(2017-11-14, 23:09)jouster Wrote:
(2017-11-14, 22:56)FoxForceFive Wrote:
(2017-11-14, 21:20)jouster Wrote: its all sorts of movies...sometimes adding them to the custom slot types values helps...other times it doesnt 
I'm sure I've read somewhere in the last few hours that saying 'the second Robocop movie' etc is easier for it to understand sequels, but I have read a helluva lot of stuff so I'm not entirely sure whether I read it in relation to this. Still, wouldn't do any harm to try that language for any sequels that you may be struggling with. 


I can’t get it to play the original. If I ask for robocop it plays the reboot.

I have no issues playing Robcop 2 or 3 (not that I can think of one tiny reason to watch number 3)


Sent from my iPhone  

Hmmm, have you tried saying 'Robocop 1987'? Dunno if it'll work, but again, worth a try.


Amazon Echo skill for Kodi - jouster - 2017-11-14

(2017-11-14, 23:13)FoxForceFive Wrote:
(2017-11-14, 23:09)jouster Wrote:
(2017-11-14, 22:56)FoxForceFive Wrote: I'm sure I've read somewhere in the last few hours that saying 'the second Robocop movie' etc is easier for it to understand sequels, but I have read a helluva lot of stuff so I'm not entirely sure whether I read it in relation to this. Still, wouldn't do any harm to try that language for any sequels that you may be struggling with. 


I can’t get it to play the original. If I ask for robocop it plays the reboot.

I have no issues playing Robcop 2 or 3 (not that I can think of one tiny reason to watch number 3)


Sent from my iPhone  

Hmmm, have you tried saying 'Robocop 1987'? Dunno if it'll work, but again, worth a try.


That was the first thing I tried after it played the reboot....with no joy


Sent from my iPhone


RE: Amazon Echo skill for Kodi - digiltd - 2017-11-15

(2017-11-14, 23:31)jouster Wrote:
(2017-11-14, 23:13)FoxForceFive Wrote:
(2017-11-14, 23:09)jouster Wrote: I can’t get it to play the original. If I ask for robocop it plays the reboot.

I have no issues playing Robcop 2 or 3 (not that I can think of one tiny reason to watch number 3)


Sent from my iPhone  

Hmmm, have you tried saying 'Robocop 1987'? Dunno if it'll work, but again, worth a try. 


That was the first thing I tried after it played the reboot....with no joy


Sent from my iPhone  

You will have to sort little quirks like this out yourself in your library. As far as the Skill is concerned you asked it to play the movie Robocop, it looked through your library, found a movie called Robocop and played it for you. Job done Wink

You could rename the new version "Robocop reboot" or the original "Robocop original (or 1987)", or whatever you fancy Smile


RE: Amazon Echo skill for Kodi - FoxForceFive - 2017-11-15

Haha, yes! Got it working at the second time of asking.

Dunno what went wrong the first time, but it worked this time.

I still can't get it to work using 'Kodi' (written cody) as the invocation word, so I've had to go back to 'Living Room', which is working perfectly. If anyone has any ideas to sort that I'd be grateful!

EDIT:

Changed the spelling to 'Kodi' & it works now. Ace!


This forum uses Lukasz Tkacz MyBB addons.