MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Mirror mirror on the wall alexa skill

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    20 Posts 8 Posters 14.5k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      KMH0
      last edited by

      Im following the setup of an AWS IoT device, and I can’t figure out how to get past step (7)

      7.Download credentials and run the start.sh script, wich will generate a root-CA.crt

      I have downloaded it, but when i press the start.sh file it just opens in leafpad :( How do i run it?

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor @KMH0
        last edited by

        @KMH0 you have to make it executable, in the terminal find your start.sh file : and type chmod +x start.sh

        K 1 Reply Last reply Reply Quote 1
        • K Offline
          KMH0 @broberg
          last edited by

          @broberg How do I navigate to my documents in Terminal? :)

          brobergB 1 Reply Last reply Reply Quote 0
          • brobergB Offline
            broberg Project Sponsor @KMH0
            last edited by

            @KMH0 type dir to see where you are. Then type cd the folder you want to open until you get there.

            As default you should start in your home directory

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              KMH0 @broberg
              last edited by

              @broberg Ive found the folder, but when I type chmod +x start.sh nothing happens

              brobergB 1 Reply Last reply Reply Quote 0
              • brobergB Offline
                broberg Project Sponsor @KMH0
                last edited by

                @KMH0 Nothing will happen, but now the script will start when you click it instead of opening in leafpad, right?

                K 2 Replies Last reply Reply Quote 1
                • K Offline
                  KMH0 @broberg
                  last edited by KMH0

                  @broberg You are a hero mate! :) Thanks

                  1 Reply Last reply Reply Quote 1
                  • K Offline
                    KMH0 @broberg
                    last edited by

                    @broberg Wy did I start this journey, haha. You mind explaining the next steps? :)

                    1. go to your local copy of this repo, create a folder called certs inside the src folder
                    2. place all the credentials in the certs folder
                    3. open MirrorMirror.js, replace the keyPath, certPath, and caPath with your own credentials’ paths
                    brobergB 1 Reply Last reply Reply Quote 0
                    • brobergB Offline
                      broberg Project Sponsor @KMH0
                      last edited by

                      @KMH0 That I better leave to someone else that have installed Alexa, Haven’t done that part :)

                      K 1 Reply Last reply Reply Quote 1
                      • K Offline
                        KMH0 @broberg
                        last edited by

                        @broberg thanks, anyway! :)

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          joanaz @KMH0
                          last edited by

                          @KMH0 create a new folder inside the src folder, call it certs, then place the files you downloaded and the generated root-CA.crt in it. I just started to create a guide with screenshots, but it will take me some time, in the meanwhile, you can just ask me

                          K 1 Reply Last reply Reply Quote 1
                          • K Offline
                            KMH0 @joanaz
                            last edited by

                            @joanaz Would have been awzome! Thanks for the help :)

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              joanaz @KMH0
                              last edited by

                              @KMH0 screenshots are added! let me know if the guide still doesn’t make sense

                              R 1 Reply Last reply Reply Quote 1
                              • R Offline
                                ring23 @joanaz
                                last edited by

                                @joanaz I was able to config the skill and get it working. Now I’m trying to get it working with the MirrorMirrorOnTheWall module and I’m running into some issues. I’ve copied the cert folder into MagicMirror/modules/MMM-MirrorOnTheWall directory. The next step says to replace keyPath, certPath and caPath with your own credentials’ path, but inside MirrorMirror.js, it’s already defaulting to __dirname + “certs/MagicMirror.private.key”. Booting up MirrorMirror on the wall and invoking On the Wall, Alexa says “there was a problem with the requested skills response”. Now if I run tests in Service Simulator on AWS the lambda response is “The remote endpoint could not be called, or the response it returned was invalid.”

                                Any ideas?

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  goprojojo @ring23
                                  last edited by

                                  @ring23 said in Mirror mirror on the wall alexa skill:

                                  @joanaz I was able to config the skill and get it working. Now I’m trying to get it working with the MirrorMirrorOnTheWall module and I’m running into some issues. I’ve copied the cert folder into MagicMirror/modules/MMM-MirrorOnTheWall directory. The next step says to replace keyPath, certPath and caPath with your own credentials’ path, but inside MirrorMirror.js, it’s already defaulting to __dirname + “certs/MagicMirror.private.key”. Booting up MirrorMirror on the wall and invoking On the Wall, Alexa says “there was a problem with the requested skills response”. Now if I run tests in Service Simulator on AWS the lambda response is “The remote endpoint could not be called, or the response it returned was invalid.”

                                  Any ideas?

                                  Did you resolve this problem? I’m also stuck at the steps to create cert folder. Should it be created in the modules dir? The manual says ’ 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 don’t see src folder?

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    timjong93 @goprojojo
                                    last edited by

                                    @goprojojo

                                    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",
                                      });
                                    
                                    1 Reply Last reply Reply Quote 1
                                    • N Offline
                                      noelandrews
                                      last edited by yawns

                                      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

                                      A 1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        alexrw214 @noelandrews
                                        last edited by

                                        @noelandrews Hey Noel, I’m getting the same error. Did you ever find a resolution to the time out error?

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          noelandrews
                                          last edited by

                                          Afraid not, sorry need so,e help from people much more switched on than me!

                                          A 1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            alexrw214 @noelandrews
                                            last edited by

                                            @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

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 1 / 1
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy