2016-12-13, 16:41
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
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