• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-MirrorMirrorOnTheWall installation issue

Scheduled Pinned Locked Moved Unsolved Troubleshooting
138 Posts 11 Posters 119.7k Views 10 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.
  • R Offline
    richland007
    last edited by Sep 1, 2018, 5:04 PM

    Where do you find these log files at?? so i can look at mine??
    it seems like it doesn’t find the way to sent the results back and where to send them??

    1 Reply Last reply Reply Quote 0
    • O Offline
      OceanK
      last edited by Sep 1, 2018, 5:34 PM

      Login to your console where u created the lamda, search for CloudWatch and then Logs, console.aws.amazon.com

      1 Reply Last reply Reply Quote 0
      • O Offline
        OceanK
        last edited by Sep 3, 2018, 7:09 AM

        Whats the progress and status on this?@richland007

        1 Reply Last reply Reply Quote 0
        • R Offline
          richland007
          last edited by Sep 3, 2018, 7:44 PM

          @OceanK Absolutely nothing i have to do much more research and read everything on the forums when it comes to this.
          It seems like it has a problem with: No handler function was defined for event AMAZON.FallbackIntent and no ‘Unhandled’ function was defined.

          Here is my error log as well and it is exactly like yours

          0_1536003807221_MyLamdaError.png

          We need to continue reading
          Denis

          1 Reply Last reply Reply Quote 0
          • O Offline
            OceanK
            last edited by Sep 4, 2018, 6:09 AM

            Have you seen that the code makers repo has changed 2 files like 2 month ago? Though it didn’t make any difference still stuck at the same place as you. I think it’s something with the iot part and lamda function.

            Let’s keep going ;)

            1 Reply Last reply Reply Quote 0
            • R Offline
              richland007
              last edited by Sep 4, 2018, 6:14 AM

              @OceanK Well now i get no errors in Lamda but i dont think its working still this is what i did after a lot of reading in the internet and in the MM forums.
              Step 1. Delete your archive.zip you have on your Rpi
              2. Go to “MirrorMirrorOnTheWallSkill” open “src” folder and open to edit “index.js”
              3. At the very end of that file right before the very last } bracket
              enter the following:

              ,
                  'Unhandled': function () {
                      this.emit(':ask', 'Sorry I didnt understand that. Say help for assistance.');
                  }
              

              notice the “,” right after the prior to last } before 'Unhandled" … so it wont give you a syntax error.
              4. Go all the way up almost at the beginning of the file “index.js” and replace the following:

              const appId = "amzn1.ask.skill.XXXXXXXXXXX-XXXXX-9b1c-3d309a950fcf";
              
              const MirrorMirror = require('./MirrorMirror');
              MirrorMirror.setup();
              
              const Keys = require("./certs/keys.json");
              const GoogleImages = require('google-images');
              var googleImages = new GoogleImages(Keys.cse.ID, Keys.cse.API_key);
              
              const YouTube = require('youtube-node');
              var youTube = new YouTube();
              youTube.setKey(Keys.youtube.API_key);
              
              exports.handler = function(event, context, callback) {
                  let alexa = Alexa.handler(event, context);
                  alexa.appId = appId;
              

              Make sure to change your appId with your own

              You will see no more errors on Lamda and if you ask after on the wall it will say i am sorry i dont understand and if you ask for help it will tell you what help it can provide but nothing more than that… yet.

              To be continued
              Denis

              O 1 Reply Last reply Sep 4, 2018, 6:32 AM Reply Quote 0
              • R Offline
                richland007
                last edited by Sep 4, 2018, 6:17 AM

                Oh after that step 5 zip it back again and upload it to Lamda and save it
                you should see no more errors

                Denis

                1 Reply Last reply Reply Quote 0
                • O Offline
                  OceanK
                  last edited by OceanK Sep 4, 2018, 6:34 AM Sep 4, 2018, 6:24 AM

                  Ok cook I will try it. Just one more question. When you zip the files for the first time. Did you hardcode the MirrorMirror.js with the cert paths as well?

                  And then again hardcoded the cert path for the MMM-MirrorMirrorOnTheWall

                  Am I understanding it right?

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    OceanK @richland007
                    last edited by Sep 4, 2018, 6:32 AM

                    @richland007 So need more info here about this: At the very end of that file right before the very last } bracket
                    enter the following:
                    ,
                    ‘Unhandled’: function () {
                    this.emit(‘:ask’, ‘Sorry I didnt understand that. Say help for assistance.’);
                    }
                    notice the “,” right after the prior to last } before 'Unhandled" … so it wont give you a syntax error.

                    So if I copy the last part from the index.js it should look like this with that extra ?

                    // Send publish attempt to AWS IoT
                    MirrorMirror.showVideo(result.items[0].id.videoId, searchTerm, alexaEmit);
                    }
                    });
                    } else {
                    this.emit(‘:askWithCard’, this.t(“SHOW_VIDEO_ERR”), this.t(“SHOW_VIDEO_ERR”), this.t(“ERROR_CARD”), this.t(“SHOW_VIDEO_ERR”))
                    }
                    }
                    ,
                    ‘Unhandled’: function () {
                    this.emit(‘:ask’, ‘Sorry I didnt understand that. Say help for assistance.’);
                    }
                    };

                    1 Reply Last reply Reply Quote 0
                    • O Offline
                      OceanK
                      last edited by Sep 4, 2018, 6:23 PM

                      One more thing I notice. So Im going to do this from scratch again. when I did the npm install in the src folder(MirrorMirrorOnTheWallSkill)

                      I did get these infor/error:

                      npm WARN deprecated alexa-sdk@1.0.25: This version of the Alexa Skills Kit SDK is no longer supported. Please use the v2 release found here: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs

                      do you think thats a problem ?

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 13
                      • 14
                      • 4 / 14
                      4 / 14
                      • First post
                        31/138
                        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