2017-04-17, 17:47
What did she actually hear for this particular request?
(2017-04-17, 18:25)bill_orange Wrote:(2017-04-17, 17:47)jingai Wrote: What did she actually hear for this particular request?
Alexa heard: "alexa ask kodi media to play the add on panda okie"
The intended addon was Pandoki, the Pandora replacement.
(2017-04-17, 22:16)sveni_lee Wrote: finally get it working on my own webserver. works really good so far.
thank you guys...
one more benefit for me... I don't need to open Kodi fot outside cause skill is on my webserver so I can use my lokal IP in the .env
(2017-04-17, 23:40)wellsecond Wrote: It would be nice to have a tutorial for this.
sudo nano /var/www/html/kodi-alexa/.env
DocumentRoot /var/www/html
WSGIScriptAlias /kodi-alexa /var/www/html/kodi-alexa/alexa.wsgi
(2017-04-17, 23:28)wellsecond Wrote:(2017-04-17, 18:25)bill_orange Wrote:(2017-04-17, 17:47)jingai Wrote: What did she actually hear for this particular request?
Alexa heard: "alexa ask kodi media to play the add on panda okie"
The intended addon was Pandoki, the Pandora replacement.
What are you using as invocation name? I had issues with Alexa mishearing me when I used cody as invocation name as suggested in README. After setting kodi as invocation name I got Alexa hearing me as expected.
(2017-04-17, 18:32)jingai Wrote: Well, that's the problem then. I have no idea why she heard "play the addon" if you said "run addon," but that will most definitely not invoke the right handler.
FWIW, I just tried opening 10 different addons here with an incantation like so:
"Alexa, tell Kodi to run {addon}"
This is a less-than-ideal phrase too, as it has very few syllables to match on. But it worked for all but one (an addon with a short name on its own). Replacing "run" with "execute" or "open" successfully opened that one as well.
(2017-04-18, 16:04)bill_orange Wrote:(2017-04-17, 18:32)jingai Wrote: Well, that's the problem then. I have no idea why she heard "play the addon" if you said "run addon," but that will most definitely not invoke the right handler.
FWIW, I just tried opening 10 different addons here with an incantation like so:
"Alexa, tell Kodi to run {addon}"
This is a less-than-ideal phrase too, as it has very few syllables to match on. But it worked for all but one (an addon with a short name on its own). Replacing "run" with "execute" or "open" successfully opened that one as well.
It seems odd that no matter if run or play was heard the utterance would result in "UnboundLocalError: local variable 'heard_artist' referenced before assignment"
I notice that addon was heard as 'add on'. Could the skill have been looking for an artist 'add' on the album 'pandoki'? That would explain the string heard_artist being involved but not why it crashed the skill with the unbound local variable error.
(2017-04-18, 23:08)bsollenb54 Wrote: Testing yields a 502 error.....
So I did the instructions from m0ngr31's Github, did the zappa deploy dev, got the HTTPS: and pasted it into the alexa skill's configuration for the remote endpoint.
Next, my .env has the right hostname, port, user, and pass which I can open from a browser outside of my network.
But when I test the skill, the response I get is: There was an error calling the remote endpoint, which returned HTTP 502 : Bad Gateway
Anyone know where I should look to resolve this?
(2017-04-18, 23:12)m0ngr31 Wrote:(2017-04-18, 23:08)bsollenb54 Wrote: Testing yields a 502 error.....
So I did the instructions from m0ngr31's Github, did the zappa deploy dev, got the HTTPS: and pasted it into the alexa skill's configuration for the remote endpoint.
Next, my .env has the right hostname, port, user, and pass which I can open from a browser outside of my network.
But when I test the skill, the response I get is: There was an error calling the remote endpoint, which returned HTTP 502 : Bad Gateway
Anyone know where I should look to resolve this?
Did you verify that when you copied the URL it didn't include any spaces before or after the URL?