Read the statement by Michael Teeuw here.
MMM-MirrorMirrorOnTheWall - Alexa voice control to hide/show modules and display text/images
-
@joanaz Thanks again. I think it’s uploaded ok - not that it’s helped me get it working. I can get just about any other module running on MagicMirror but not this one. I think it’s just a case of i’m not sure what folders should be where. When i run it with the module in the config file i just get a white screen and can’t ‘alt’ out of it - Pi seems to crash. I think i’ll just have to give up as i’ve been trying for 3 days to get this running :(
-
@bartalluyn is your code on Github? I’m quite interested in your Alexa Java client, it’d be great if it was a Mirror Module, so Alexa and Mirror can communicate directly without going through AWS IoT.
-
@Gunwoody sorry to hear that. This is quite advanced as you have to setup AWS IoT, Lambda and Alexa skill, so it does need you to have some experiences with programming and using AWS services. I’m thinking about how to simplify this and get it to work with multiple users, but thanks for trying.
-
I do not get why this is not working the src.zip has a layout of folders and in the root of zip I have index.js MirrorMirror.js and package.json
but i still get
START RequestId: dbde411d-ecaa-11e6-8bd7-9b2096d559c7 Version: $LATEST 20:28:46 Unable to import module 'index': Error at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/var/task/index.js:23:14) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load ( Unable to import module 'index': Error at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/var/task/index.js:23:14) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17)which looks like what it’s not finding index.js ?
-
@joanaz I haven’t really had much of an issue with Lambda, IOT etc. It’s more the local install on the pi. I think because your instructions jump from area to area it’s easy to miss or misintrepet a step. I might just do a full clean install and start from scratch. It’s just a shame because MagicMirror itself runs perfectly with any module i try. It’s just your that is determined to thwart me lol :)
-
@zman3 you don’t have certs and node_modules?
-
@Gunwoody i’ve never seen another mirror module which works with a Alexa skill
-
yes i have those folders in the zip
-
For people struggling with setting up Lambda and Alexa Skill, here’s a good visual instructions for a different Skill. Use your judgment when dealing with differences with my skill.
https://github.com/alexa/skill-sample-nodejs-calendar-readerHere’s Amazon’s instructions for setting up a AWS IoT device, it’ll also be slightly different when you setup your own device, but it’s good enough.
http://docs.aws.amazon.com/iot/latest/developerguide/iot-console-signin.html
-
So exactly which files need to be in the zip?
And also, when testing on the lambda site I get an error about alexa-sdk not being detected… are there other steps for installation? I’ve hit a wall -
So redid everything. Same thing. When I test with my device and try to invoke it says there was a problem with the requested skills response…
-
@savage_gr1nd you need to include node_modules in the src folder. run ‘npm install’ inside src folder.
-
Yea I did that. Then made the zip. The zip was too large and my page kept crashing so I used s3. Or will that not work?
-
And one more thing I’m confused on and it might be why, when putting the path to certs to keys.json is it the FULL path /home etc…?
-
@savage_gr1nd the zip shouldn’t be too large, mine was 5.1MB. I’m not sure what you are saying about path to certs and keys.json. have a look of my folder structure

-
I figured out the path problem.
But every module ever is in my folder. Which are required so I can delete the rest. -
I’m sorry lol
More specific in my node_modules folder -
Okay I’m really sorry for bugging.
But literally got everything figured out except why my file is too large. I deleted node_modules and redid npm installs on all 4 dependencies. The node folder alone is 69mb…
How is yours 5.1mb…?Since mine is so big. The only error I get now in lambda is time out. I just don’t understand why mine is so large.
-
@Journeytojah did you ever get yours to work? That’s about the same error I was getting
-
@savage_gr1nd my node_modules is 24.2MB. How are you testing the lambda function? try something simple, like the hello intent first
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login