Read the statement by Michael Teeuw here.
Mirror mirror on the wall alexa skill
-
I had the same issue adding a host value to the device constructor in mirormirror.js after line 16 did the trick for me.
You can find it in the AWS IOT settings panel.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: "************.iot.us-east-1.amazonaws.com", });
-
Hi all,
Just delving into the world of SmartMirrors, if there’s anyone that can help me with this last little bit it would be amazing!
I have followed Joanaz insanely good guide (thank you!!) and I too got stuck with the connection issue. Thanks timjong for your pointer, I think I’ve edited that file correctly and added the host in.
Uploading, saving and testing in lambda setup then gives me this error:{ "errorMessage": "2017-11-15T21:05:12.504Z a94c5f8d-ca48-11e7-8d56-b5963befba0d Task timed out after 3.00 seconds", "errorType": "SyntaxError" }
This is what I have in that section of my
mirror.js
file, I’ve only added the host line so hope I’ve done it right.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: "**********vuct.iot.us-east-1.amazonaws.com", });
Anything obvious or any suggestions what to try next?
Thank you
Noel -
@noelandrews Hey Noel, I’m getting the same error. Did you ever find a resolution to the time out error?
-
Afraid not, sorry need so,e help from people much more switched on than me!
-
@noelandrews I got mine working actually. Missed the small step of making a copy of keys_sample.json and calling it keys.json. index.js couldn’t call the proper keys then. Dumb mistake