Unfortunately no. I added the code to index.js like so:
var handlers = {
'Unhandled': function () {
this.emit(':ask', HelpMessage, HelpMessage);
},
Saved it, zipped it, and re-uploaded to Lambda. This seems crazy to me because I am following the instructions to the letter. Originally I had my node_modules folder outside of the src folder, but fixing that didn’t do it.
In the Lambda manager console I am getting:
{
"errorMessage": "Invalid connect options supplied.",
"errorType": "Error",
"stackTrace": [
"Object.DeviceClient [as device] (/var/task/node_modules/aws-iot-device-sdk/device/index.js:201:14)",
"Object.app.setup (/var/task/MirrorMirror.js:11:23)",
"Object. (/var/task/index.js:21:14)",
"Module._compile (module.js:409:26)",
"Object.Module._extensions..js (module.js:416:10)",
"Module.load (module.js:343:32)",
"Function.Module._load (module.js:300:12)",
"Module.require (module.js:353:17)",
"require (internal/module.js:12:17)"
]
}
And in my Alexa skill testing I am getting
The remote endpoint could not be called, or the response it returned was invalid.
back for a Lambda response. I even noticed in the tutorial he uses Node.js 4.3 instead of using Node.js 6.10 for his Lambda runtime, but same problem either way.
I’m a little confused as to the process of where I’m putting stuff as well. I’m downloading the MirrorMirrorontheWall skill, unzipping to my downloads folder, then running the start.sh in there. Do I then put the MMM-MirrorMirrorOnTheWall-master folder inside the modules folder in pi/MagicMirror? And does it matter where I run the start.sh from? I’m a little lost on where to place everything. I am pulling my hair out is there anyone out there that can help, please?