Read the statement by Michael Teeuw here.
MMM-MirrorMirrorOnTheWall installation issue
-
this part here I dont get:
MirrorMirror.js in this folder, and again, replace the keyPath, certPath, and caPath to your own.
keyPath: __dirname + “/certs/MagicMirror.private.key”,
certPath: __dirname + “/certs/MagicMirror.cert.pem”,
caPath: __dirname + “/certs/root-CA.crt”,should we delete the __dirname + and then enter our path?
-
I do’not think so …as long your exact copy of cert, private key and CA certificate files are with those exact names…meaning MagicMirror and you have them saved in that actual working directory where that file MagicMirror.js is than it ads those files automatically.
other than that the MagicMirror.js will through an error for the “___dirname+” part.I think…or wait on a second note… if you remove the anything after the keyPath: (and the other 2) and hard code the actual path to the files should work as well and will be a safer bet actually, so do that
Denis -
Ok so i was reading your steps and i basically did exactly the same thing and followed @joanaz instruction but with one exception!!! … are you absolutely sure that “node_modules” folder gets created by “npm install” inside the “src” folder on the “MirrorMirrorOnTheWallSkill” ??? …OR… did “node_modules” get created when you run “start.sh” on the IoT procedure and than copy that over to the “src” folder???
Do we only copy the 4 certificate files from the IoT part only or everything in that folder over to the “src” ???
Denis
-
@OceanK Ok major major development on my end i got it to work …sort of LOL :) …meaning when i am on Magic Mirror and its doing its thing displaying the modules i can call Alexa ask her to start “on the wall” the mirror replies back with How can i Help you my Queen but when i ask to display a text or anything it says there was a problem with your skills response. Why is that???
D
-
@richland007 Thais is EXACTLY! where I am =)
I have to check this in the weekend from scratch!
I think there is something wrong with the lamda.
displaying what modules? sounds like you have come further than me?
-
@OceanK Well i meant i got the MMM-MirrorMirrorOnTheWall module for Magic Mirror figured out but it is not working right if that makes sense. :rolling_on_the_floor_laughing: :rolling_on_the_floor_laughing: So when Magic Mirror itself is lunched and it is displaying other modules like Weather and Calendar and all that, it is not throwing an error for MMM-MirrorMirrorOnTheWall so i got the certs path figured out and you need to run “npm Install” on MMM-MirrorMirrorOnTheWall module before using it after you clone it on modules folder. I use Alexa Pi which has its own module on MM so when i call Alexa and i ask to “Start On the wall” the mirror replies as “Hello my queen what can i do for you” but when i ask to do something like hide a module or display anything it says an error has occurred with your skills response please try again later. I have no clue whats causing that so i guess some more research is needed.
Denis -
Hey!
I have AlexaPi Aswell. In the module MMM-MirrorMirronOnTheWall, you copied the certs folder from MirrorMirrorOnTheWallSkill , right?
Then npm install in MMM-MirrorMirronOnTheWall
Did you change the path in anyway in the files for the certs? Like we discussed before ?
Regards K
-
OK so Im going to do this again from scratch.
what did you enter in your config.js file for the mirror, just this part?
{
module: ‘MMM-MirrorMirrorOnTheWall’,
position: “middle_center”,
config: {}
}, -
Ok so here is my hardcoding of certs path on the Magic Mirror module
keyPath: “/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/certs/MagicMirror.private.key”,
certPath: “/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/certs/MagicMirror.cert.pem”,
caPath: “/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/certs/root-CA.crt”,Also dont forget to add your iot-endpoint
region: “us-east-1”,
host: “aonu6XXXX8o.iot.us-east-1.amazonaws.com”,I kept the config on module just as yours or the default for testing purposses
-
Cool thanx, well I am at same stage as you, When I try the skill after build and the test. I get the !my queen etc etc" when I try to say “close all modules” I just get the error response skill etc.
so I have no cloue whats wrong. I think its something with the lambda function itself.
When I try to say “find youtube video on how to make slime” she says the error but when I check the clod logs its actually looking for videon on slime/youtube:’
2018-09-01T15:41:33.768Z 806824d0-adfd-11e8-aea5-f7829904bba6
{
“kind”: “youtube#searchListResponse”,
“etag”: ““XI7nbFXulYBIpL0ayR_gDh3eu1k/trfpcxzuGVnn32QncnihWoxjjgs””,
“nextPageToken”: “CAEQAA”,
“regionCode”: “US”,
“pageInfo”: {
“totalResults”: 1000000,
“resultsPerPage”: 1
},
“items”: [
{
“kind”: “youtube#searchResult”,
“etag”: ““XI7nbFXulYBIpL0ayR_gDh3eu1k/BqgWo2mCqNCYN8WncT1NMhRM7VE””,
“id”: {
“kind”: “youtube#video”,
“videoId”: “eaALjlyKDZI”
},
“snippet”: {
“publishedAt”: “2017-04-11T19:00:03.000Z”,
“channelId”: “UCIze4Pldy_KjXhYHqBwMLDQ”,
“title”: “How to Make SLIME for Beginners! Best EASY Way to Make Slime!”,
“description”: “YOU CAN NOW BUY MY SLIME ON ETSY: https://goo.gl/9GMmWA Hey guys! Today I’ll be showing you the best, easiest way to make slime. Check out my other …”,
“thumbnails”: {
“default”: {
“url”: “https://i.ytimg.com/vi/eaALjlyKDZI/default.jpg”,
“width”: 120,
“height”: 90
},
“medium”: {
“url”: “https://i.ytimg.com/vi/eaALjlyKDZI/mqdefault.jpg”,
“width”: 320,
“height”: 180
},
“high”: {
“url”: “https://i.ytimg.com/vi/eaALjlyKDZI/hqdefault.jpg”,
“width”: 480,
“height”: 360
}
},
“channelTitle”: “Courtney Lundquist”,
“liveBroadcastContent”: “none”
}
}
]
}