Posts: 1
Joined: Dec 2016
Reputation:
0
2016-12-13, 07:20
(This post was last modified: 2016-12-13, 08:06 by Taskmaster.)
I had this working and I changed which Kodi installation I was using and I was updating the Custom Slots on the Echo dev console and something went wrong. The only command that works now through the test interface seems to be "go home" Below is the output when I try "play latest episode Modern Family". I'm hosting myself on a Docker container and I've rebuilt that too, but still having the same trouble.
SERVICE REQUEST
{
"session": {
"sessionId": "SessionId.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"application": {
"applicationId": "amzn1.ask.skill.XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"new": true
},
"request": {
"type": "IntentRequest",
"requestId": "EdwRequestId.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"locale": "en-US",
"timestamp": "2016-12-13T05:13:23Z",
"intent": {
"name": "PlayLatestEpisode",
"slots": {
"Show": {
"name": "Show",
"value": "Modern Family"
}
}
}
},
"version": "1.0"
}
SERVICE RESPONSE
{
"version": "1.0",
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "You can ask me whether there are any new shows, to play a movie, tv show, or artist, or control playback of media."
},
"card": {
"content": "You can ask me whether there are any new shows, to play a movie, tv show, or artist, or control playback of media.",
"title": "Help",
"type": "Simple"
},
"shouldEndSession": true
},
"sessionAttributes": {}
}
I appreciate it if anyone has input what I'm missing?
EDIT - My fault (kinda knew that), did a pull but didn't update intents... All set now
Posts: 146
Joined: Aug 2009
Reputation:
0
Thanks. Will give that a try
Sent from my iPhone
Posts: 3
Joined: Dec 2016
Reputation:
2
Make sure you type your address for kodi in the env file without http:\\
KODI_ADDRESS = mykodiservice.com
Posts: 3
Joined: Dec 2016
Reputation:
2
You might also find you are better off stripping all configuration from AWS and starting from scratch that it might help tidying everything up. also check logs in aws cloudwatch this can also help point where the setup is wrong at the moment.
Posts: 146
Joined: Aug 2009
Reputation:
0
2016-12-13, 16:26
(This post was last modified: 2016-12-13, 16:26 by jouster.)
ok so started from screatch and entered the SkillID
I added this line into my env file
SKILL_APPID = amzn1.ask.skill.*******-052e-4606-b726-4aa2d94108df
and removed SKILL_APPID from the end of this line so this is now how the line looks in my ENV file
LAMBDA_ENV_VARS = LAMBDA_ENV_VARS = KODI_ADDRESS,KODI_PORT,KODI_USERNAME,KODI_PASSWORD
now I've run the test again and i STILL get the end point issue BUT I'm now getting a different error in my log
the report is shown below
14:22:26 /var/task/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
14:22:26 warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
Can anyone make any suggestions as to what my next step would be
Posts: 146
Joined: Aug 2009
Reputation:
0
2016-12-13, 16:41
(This post was last modified: 2016-12-13, 16:53 by jouster.)
so now when I test I'm getting some different results...none of which are working correctly though
some test now work but never return the desired result and still half the time the rest either state they are
unable to generate request for your skill and therefore have no service response
One that does seem to generate a service request is
"to play the dark knight"
but in the service response box I see
"version": "1.0",
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "Error parsing results"
},
"card": {
"content": "Error parsing results",
"title": "Playing the movie dark knight",
"type": "Simple"
},
"shouldEndSession": true
Trying to get this to work on my Echo Dot at all just results in a single low tone
I've noticed in the logs pretty much every request goes back to the same few lines of code in wsgi.py and generates the following code....this was generated when asking KODI to play a random movie
'result': KeyError
Traceback (most recent call last):
File "/var/task/wsgi.py", line 1821, in lambda_handler
return on_intent(event['request'], event['session'])
File "/var/task/wsgi.py", line 1788, in on_intent
return one_intent[1](intent_slots)
File "/var/task/wsgi.py", line 1257, in alexa_watch_random_movie
movies_array = kodi.GetUnwatchedMovies()
File "/var/task/kodi.py", line 804, in GetUnwatchedMovies
for d in data['result']['movies']:
KeyError: 'result'
Im definitely making progress but im really not sure how much
Posts: 146
Joined: Aug 2009
Reputation:
0
Yes I've pulled that right from the file.
I'll reinstate the skill section now and also remove that strangely unwanted section too.
Access wise I'm a little confused still as I can access the remote screen via a machine from outside the house and on any machine from within.
Sent from my iPhone