Read the statement by Michael Teeuw here.
MirrorMirrorOntheWall Alexa Skill trouble
-
I found the problem.
In the MirrorMirror.js file you need to add an extra line to point to the aws-iot endpoint you created in the very first steps. You can find the string in the aws-iot dashboard and clicking on settings in the bottom left hand corner.
Mirrormirror.js:
app.setup = function() { app.device = awsIot.device({ keyPath: __dirname + "/certs/MagicMirror.private.key", certPath: __dirname + "/certs/MagicMirror.cert.pem", caPath: __dirname + "/certs/root-CA.crt", clientId: "MirrorMirror" + (new Date().getTime()), region: "us-east-1", host: "your-custom-endpoint", });
The string should look something like this:
xxxxxxxxxxxx.iot.us-east-1.amazonaws.com
After you add that in just save, re-zip, and upload to lambda and it should work if you did everything else correctly. Hope this helps!
-
THAT DID IT! The skill is working fine! Thanks SO much! I feel like it’s the last part here Im a little unclear on as well… do I put the whole MirrorMirroronthewall folder into the modules folder with certs, then add the module to config.json file? What are the last few steps to get this puppy in gear? Its a little fuzzy in the docs. THANK YOU A MILLION TIMES!!!
-
I’m SO close. Alexa does the “Yes my queen” intro, and says she is playing a video for me. But I don’t see a video, and I can’t make changes to the layout verbally either. I know I’m mucking up installing the actual module now that the skill is working.
-
Haven’t tried configuring the MM module yet but it says to just copy the cert folder from the Alexa skill to the module directory and make sure that the cert paths are correct in the modules mirrormirror.js file. I’ll try it out sometime next week.
-
Thank you for the reply. This is my first 3rd party module (I picked a doozy lol) do I have to place the module master folder in /modules as well? Thanks again my friend you’re a lifesaver.
-
@subminimal
In the modules mirrormirror.js file you need to add the same host line with the ios endpoint. If youve copied the certs to the module folder, added the module in config/config.js, and run npm install in the module folder to install dependencies then you should be all set. -
That did it nearly 100%!!! The videos play, everything is correct… the only thing is when I use MirrorMirrorOnTheWall to bring up an image… I’m getting the endpoint error again! So weird… Words and videos work just fine, but I can’t bring up images. I’ve checked the API key and CSE ID is correct in keys.json, but still the same. Weird. I mean, I suppose it’s not crazy important, just images… but you know, always striving for 100% functionality. Is there a place that host line needs to be added in google-images somewhere? Hmmm…
Anyway, torresfm THANKYOU SO MUCH for getting me as far as you have!!! I think the author should be made aware of the endpoint issue. If you stumble across a fix for the images portion of the module let me know!
-
I did’nt have this problem. You should check if the CSE ID and API key is correct and make sure the youtube and cse apis are in different projects.
-
@subminimal I ran into the same problem you did and for me it was simply because I forgot to enable image search in my CSE - did you ever get this working? That may be it.
-
I am also have an issue with this module, but my issue is getting it installed. The instructions say “copy all your credential files, then go to your local copy of this repo, and paste them inside the certs folder (which is inside the src folder)” but I can not find a certs folder inside the src folder. Can someone explain this to me