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 - leoneonekenobi - 2017-01-06

@nsviper

Tried to look a the log file..don't see any actions logged after i ask alexa to stop ( i am just playing a any show via exodus to test.)
Sorry to ask but i take it my most recent logged actions would be at the end of the file? i also tried to stop/start playing my show via my dynu.com in my browser..stopped the show on kodi but when i looked again at the log file in terminal no change. Obviously i am clueless. Is it best starting from scratch with the whole alexa/kodi process?

leone


RE: Amazon Echo skill for Kodi - leoneonekenobi - 2017-01-06

Started from scatch Sad ...now i noticed when i deploy to lambda it states 'Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead'

so first time round, i edited the .env.lambada file saved it before i then saved as .env - therefore the 'Service Simulator' worked now it does not work.
i think this is an osmc issue how do i deploy to lambda?

leone


RE: Amazon Echo skill for Kodi - jingai - 2017-01-06

(2017-01-06, 04:26)leoneonekenobi Wrote: now i noticed when i deploy to lambda it states 'Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead'

This is normal and expected.

(2017-01-06, 04:26)leoneonekenobi Wrote: so first time round, i edited the .env.lambada file saved it before i then saved as .env - therefore the 'Service Simulator' worked now it does not work.
i think this is an osmc issue how do i deploy to lambda?

The README pretty clearly states that:

Code:
The environment variables are stored in an .env file which you need to create yourself from a copy of .env.lambda

Copy .env.lambda to .env and then edit it.

However, your issue at the moment is likely something else. You'll need to check your logs on Cloudwatch and see what the skill itself is saying.

Your best bet is to post the log here or PM me, but make sure to scrub out personal info like IP addresses and skill ID.


RE: Amazon Echo skill for Kodi - jingai - 2017-01-06

(2017-01-06, 03:04)leoneonekenobi Wrote: i am just playing a any show via exodus to test.

See Banned addons (wiki). You won't get help on these forums for Exodus, and this skill won't work with it anyway.. despite that "stop" should work.


RE: Amazon Echo skill for Kodi - jingai - 2017-01-06

Bit of warning for everyone using the skill:

v2.5 is going to be a big foundational change, so you'll need to re-read the README thoroughly when it happens.

We'd rather not make drastic changes like this, but since the skill grew from a much smaller project, it was a necessary evil.

All of your slots will need to be re-generated, and all of the slots, intents, and utterances will need to be replaced. It shouldn't be a big deal so long as you follow what the README says you need to do.

Just a heads up Smile


RE: Amazon Echo skill for Kodi - leoneonekenobi - 2017-01-06

@jingai
Maybe im not explaining my self correctly. ive tried to set up the skill twice first time round i think i made the error of initially editing the env.lambda file saving it before then making a direct copy and saving as just .env.
Upon testing testing in 'simulator' writing stop it showed the lambda response. Upon me asking Alexa via the dot to stop she responded 'audio stopping' but my pi2 with kodi 17 running did not stop nor did it show anything trying to stop on the kodi log file. i Decided to delete everything and try again. This time i saved a copy of the env.lambda to .env before filling into my credentials. This is when i noticed for the first time the 'Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead' error. i carried on with the process even so but this time also when i tested the skill in 'simulator' nothing. therefore stuck and not sure where or what is going wrong. Sorry for the long winded explanation.

thanks

leone


RE: Amazon Echo skill for Kodi - jingai - 2017-01-06

Check the skill logs in Cloudwatch. If there is an error there, post it here. If there is nothing there, you need to read through the README again and see what you missed. It's really hard for us to say what you might have missed in the absence of any log or error messages.


RE: Amazon Echo skill for Kodi - leoneonekenobi - 2017-01-07

@jingai
below is Cloudwatch log file
--------


01:59:39
Requested intent: Stop
Requested intent: Stop

01:59:39
Stopping playback
Stopping playback

01:59:39
Sending request to http://x.dynu.com
Sending request to http://x.dynu.com

02:00:39
END RequestId: x-x-x
END RequestId: x-x-x

02:00:39
REPORT RequestId: x-x-x Duration: 60001.90 ms Billed Duration: 60000 ms Memory Size: 128 MB Max Memory Used: 45 MB
REPORT RequestId: x-x-x Duration: 60001.90 ms Billed Duration: 60000 ms Memory Size: 128 MB Max Memory Used: 45 MB

02:00:39
x-x-x x-x-x Task timed out after 60.00 seconds

02:01:19
START RequestId: x-x-x Version: $LATEST

02:01:21
/var/task/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning

02:01:21
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')

02:01:21
lambda_handler: applicationId=amzn1.ask.skill.x-x-x

02:01:21
on_session_started: requestId=EdwRequestId.x-x-x, sessionId=SessionId.x-x-x

02:01:21
on_intent: requestId=EdwRequestId.x-x-x, sessionId=SessionId.x-x-x3


RE: Amazon Echo skill for Kodi - jingai - 2017-01-07

You should scrub out your personal info (IP, skill ID, etc).

I'll help you tomorrow though. Going to bed now.


Amazon Echo skill for Kodi - jouster - 2017-01-07

(2017-01-06, 07:54)jingai Wrote: Bit of warning for everyone using the skill:

v2.5 is going to be a big foundational change, so you'll need to re-read the README thoroughly when it happens.

We'd rather not make drastic changes like this, but since the skill grew from a much smaller project, it was a necessary evil.

All of your slots will need to be re-generated, and all of the slots, intents, and utterances will need to be replaced. It shouldn't be a big deal so long as you follow what the README says you need to do.

Just a heads up Smile


Thanks for the heads up. Haven't forgotten about the testing I should be doing. Had a house full of sick little ones over Christmas so it's taken a back seat I'm afraid. Looking forward to getting you the reports you requested though.


Sent from my iPhone


RE: Amazon Echo skill for Kodi - digiltd - 2017-01-07

@leoneonekenobi

It looks like the skill is sending the request, but the request isn't making it to your Kodi box.

Code:
Sending request to http://x.dynu.com

Fee free to scrub out the bits between http:// and .com but you should be seeing something like:

Code:
Sending request to http://x.dynu.com/jsonrpc

You should also be able to put
Code:
http://x.dynu.com
in a browser and be able to log into your Kodi web interface, or
Code:
http://x.dynu.com/jsonrpc
and be able to see JSON. Try testing through a browser first, you need to be sure your network settings are allowing access from outside your local network.


RE: Amazon Echo skill for Kodi - leoneonekenobi - 2017-01-07

@digiltd, thanks for you reply.

I initially did check through my browser to see if the port fwding was working...can view kodi but it always stated 'searched everywhere but no content added' even though i does show me that i am playing something on kodi in the play-bar at the bottom. The jason string ive just viewed but no idea what it means..other than after my request no further code was added.
Alexa eventually says after a minute or 2 'problem with the tested skill'

I'm best just giving up to be honest cant see it working.


RE: Amazon Echo skill for Kodi - mcpc - 2017-01-07

Hi Guys,

I've been able to perform all steps, including testing through AWS service simulator and it gets kodi to act, however I can't seem to get the actual amazon echo to do the same? Did anyone find this issue?

Cheers
J


RE: Amazon Echo skill for Kodi - nsviper - 2017-01-07

@mcpc have you gone to the skills tab on your amazon app (phone/tablet) and made sure the skill is enabled?

Also if your amazon echo is US or UK English, u need to make sure the AWS skill is set to the same (I had issues where AWS skill was US English but my Alexa is UK English - didn't work until I changed AWS skill to match)


RE: Amazon Echo skill for Kodi - nsviper - 2017-01-07

@digiltd, if u want to PM me, if u want to send me your external facing link via PM, maybe I can at least test that part for u?