• 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 - Alexa voice control to hide/show modules and display text/images

Scheduled Pinned Locked Moved System
184 Posts 25 Posters 292.6k Views 23 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.
  • M Offline
    manojjena78 @Gunwoody
    last edited by Jun 11, 2017, 3:29 AM

    @savage_gr1nd - Do you able to make it work?? I have an issue where the Magic mirror and Alexa module does not interact each other, but individually works fine. I can ask Alexa- then I get answer. My magic mirror also works fine. But when I say Alexa show me video of X , nothing happens and no text message is shown on the Mirror. Also when I test Simulator with hello then I get a response back. But when I use log work , it gives error . ("The remote endpoint could not be called, or the response it returned was invalid.). Anyone please guide.
    Thanks,
    MK

    1 Reply Last reply Reply Quote 0
    • T Offline
      torresfm
      last edited by torresfm Jul 3, 2017, 9:49 PM Jul 3, 2017, 8:13 PM

      Hi! @joanaz, @savage_gr1nd , @Journeytojah

      I’ve been trying to get this skill to work, but I’m stuck with a Lambda error that doesn’t really give me much to work on. My AWS IoT dashboard does show successful connections and I’ve followed every step in the readme to a T (I’ve even read this most of this thread to go make sure I didn’t make the common mistakes), but when I try to run a test on the Lambda function I get this error below. Thanks for the help in advance!

      {
        "errorMessage": "Invalid connect options supplied.",
        "errorType": "Error",
        "stackTrace": []
      }
      
      Log output:
      
      START RequestId: 4b366259-601e-11e7-899b-8dd5d86aa5dd Version: $LATEST
      module initialization error: Error
          at Module.require (module.js:497:17)
      END RequestId: 4b366259-601e-11e7-899b-8dd5d86aa5dd
      REPORT RequestId: 4b366259-601e-11e7-899b-8dd5d86aa5dd	Duration: 0.37 ms	Billed Duration: 100 ms 	Memory Size: 128 MB	Max Memory Used: 33 MB
      

      I copied and pasted the Lambda request from the Alexa Skill config simulator for the test in Lambda: (I’ve redacted the id keys)

      
      Request:
      {
        "session": {
          "sessionId": "SessionId.xxxx",
          "application": {
            "applicationId": "amzn1.ask.skill.xxxx"
          },
          "attributes": {},
          "user": {
            "userId": "amzn1.ask.account.xxxx"
          },
          "new": true
        },
        "request": {
          "type": "IntentRequest",
          "requestId": "EdwRequestId.xxxx",
          "locale": "en-US",
          "timestamp": "2017-07-03T18:55:38Z",
          "intent": {
            "name": "MirrorMirrorHelloIntent",
            "slots": {}
          }
        },
        "version": "1.0"
      }
      
      Response:
      The remote endpoint could not be called, or the response it returned was invalid.
      

      edit:

      I think I found a few areas in aws-iot-device-sdk in device/index.js where the error is coming from, but not sure how to fix it.

         if (isUndefined(options) ||
            Object.keys(options).length === 0) {
            throw new Error(exceptions.INVALID_CONNECT_OPTIONS);
       
      if (isUndefined(options.host)) {
            throw new Error(exceptions.INVALID_CONNECT_OPTIONS);
         }
      
      if (!isUndefined(options.host)) {
               var pattern =/[a-zA-Z0-9]+\.iot\.([a-z]+-[a-z]+-[0-9]+)\.amazonaws\.com/;
               var region = pattern.exec(options.host);
               if (region === null) {
                  console.log('Host endpoint is not valid');
                  throw new Error(exceptions.INVALID_CONNECT_OPTIONS);
               } else {
                  options.region = region[1];
               }
            }
      

      My folder struct:

      .
      +--certs/
      |     +----keys_sample.json
      |     +----keys_sample.json
      |     +----MagicMirror.cert.pem
      |     +----MagicMirror.private.key
      |     +----MagicMirror.public.key
      |     +----root-CA.crt
      |
      +----index.js
      +----MirrorMirror.js
      +----node_modules/
      +----package.json
      

      The index.js and mirrormirror.js are stock, I haven’t changed a thing.

      1 Reply Last reply Reply Quote 0
      • T Offline
        torresfm
        last edited by Jul 14, 2017, 3:45 AM

        I found the issue, please look at my other ports for the solution. Thanks.

        1 Reply Last reply Reply Quote 0
        • D Offline
          dugemaniac @joanaz
          last edited by dugemaniac Sep 27, 2017, 5:47 PM Sep 27, 2017, 3:52 PM

          @joanaz hi Joanaz, sorry to bother you. first of all, thanks for this great module. Need your help, i got the same error. skills works, i can see card in alexa app, but it didnt shown on MM.
          I look at terminal and it said

          Attempt to connect to AWS 
          Whoops! There was an uncaught exception...
          { Error: getaddrinfo ENOTFOUND arn:aws:lambda:us-east-1:xxxxxxxxxxxxxxx:function:AlfaMirror arn:aws:lambda:us-east-1:xxxxxxxxxxxxxxx:function:AlfaMirror:8883
              at errnoException (dns.js:28:10)
              at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:26)
            code: 'ENOTFOUND',
            errno: 'ENOTFOUND',
            syscall: 'getaddrinfo',
            hostname: 'arn:aws:lambda:us-east-1:xxxxxxxxxxx:function:AlfaMirror',
            host: 'arn:aws:lambda:us-east-1:xxxxxxxxxxxxx:function:AlfaMirror',
            port: 8883 }
          MagicMirror will not quit
          

          Kindly need your help. Cheers :)

          D 1 Reply Last reply Sep 30, 2017, 4:14 AM Reply Quote 0
          • D Offline
            dugemaniac @dugemaniac
            last edited by Sep 30, 2017, 4:14 AM

            @joanaz found out the problem, my ISP block port 8883, using other ISP works flawlessly. Thanks alot for such a great module for MM. Cheers have a great day
            @torresfm Thank too for the solution over end point not found. Cheers

            1 Reply Last reply Reply Quote 0
            • S Offline
              SpaceKitten @savage_gr1nd
              last edited by Mar 8, 2018, 6:18 PM

              @savage_gr1nd Got The Same Error “Unable To Upload Index File” ,So My Question Is While Installing Dependencies In /src Directory I Performed "sudo npm For sdk and kit So While Testing The Skill Its Showing Me Error In Lambda Response And In Lambda Logs Its Saying “Index File” Error Mentioned In This Post. So Is “Sudo Npm” The Cause? Because u Said It Blocks Amazon Access. And i Did The Zip Procedure Perfectly. Please Guide. ThankYou

              1 Reply Last reply Reply Quote 0
              • J Offline
                joe84maiden
                last edited by Apr 18, 2018, 7:47 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • R Offline
                  richland007
                  last edited by Sep 4, 2018, 4:11 AM

                  @d3r Hi there could you please help me out to install this module fully if you have time. i really need to have this figured out.
                  I have AlexaPi running fine i also have the Lamda and the Alexa skill installed the mirror responds with “Hello my queen how can i help you” but when i ask of anything that is related to this module such as turn on or off a MM module or display text or images it says “There was a problem with the requested skills response” here is what comes in the log file at CloudWatch on AWS Lamda
                  0_1536033994993_mylamdaerror.png

                  After some searching around the intenet the majority of them say that i need to add this ;

                  var handlers = {
                      'Unhandled': function () {
                          this.emit(':ask', HelpMessage, HelpMessage);
                      },
                  

                  But where and why why do we have to mess around with index.js file

                  anyhow any help will be greatly appreciated

                  Denis

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    richland007 @savage_gr1nd
                    last edited by Sep 7, 2018, 1:26 AM

                    @savage_gr1nd can you please help us get this going also ?? You seem like you are the only one who has it set up other than the developer that is not responding . I have to have this module
                    please look at where we are at right now the mirror says hello my queen ho can i help you but anything there after we get a message that something is wrong with your skills response
                    where is the trouble lying??? any help will be greatly appreciated here is a link at our conversation in the forums https://forum.magicmirror.builders/topic/8569/mmm-mirrormirroronthewall-installation-issue/36
                    thank you in advance
                    Denis

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      Vauxdvihl
                      last edited by Nov 19, 2019, 8:55 PM

                      Is this also working with “german language / commands”?
                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 15
                      • 16
                      • 17
                      • 18
                      • 19
                      • 18 / 19
                      • 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