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 364.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.
    • lucallmonL Offline
      lucallmon @zman3
      last edited by

      @zman3 It’s because there’s no guide. It’s just figure it out yourself. You know this isn’t a well-organized module when you look at how many posts/replies are in it.

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

        @lucallmon lol, what do you mean there’s no guide? my guides have a total of 250 lines. anyways, I tried to help you guys setup and figuring out your errors, but clearly my module is out of your league. so come back when you have more dev skills.

        lucallmonL 1 Reply Last reply Reply Quote -1
        • J Offline
          joanaz
          last edited by

          I just made another Alexa skill and Magic Mirror module for simple note taking, you can find them here: https://forum.magicmirror.builders/topic/1824/mmm-notetaker-a-module-that-displays-your-notes-stored-by-the-alexa-skill-note-taker

          1 Reply Last reply Reply Quote 0
          • D Offline
            d3r
            last edited by

            Hey @joanaz thanks for the awesome module. The module works pretty well. Also tried the image search and youtube which work very well. Main issue so far is I can’t turn off the video without closing all modules. I’ll look into that tomorrow.

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

              @d3r yeah! awesome! you just need to tell my module to close my module

              1 Reply Last reply Reply Quote 0
              • lucallmonL Offline
                lucallmon @joanaz
                last edited by yawns

                @joanaz Where are your guides? The README.md is the only file I have to go on from your github page.

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  d3r @lucallmon
                  last edited by yawns

                  @lucallmon said in MMM-MirrorMirrorOnTheWall - Alexa voice control to hide/show modules and display text/images:

                  @joanaz Where are your guides? The README.md is the only file I have to go on from your github page.

                  There are two github repos. One is for the alexa skill and the other is for the module. You need to check both.

                  lucallmonL 1 Reply Last reply Reply Quote 0
                  • lucallmonL Offline
                    lucallmon @d3r
                    last edited by

                    @d3r I see that, and that is my problem. There is no guide on how to install it. If you want people to use it, help them install it. Sounds like a great product that I would love to have, but it’s not user friendly.

                    1 Reply Last reply Reply Quote 1
                    • J Offline
                      janner6
                      last edited by

                      I’m working my way through the setup of the AWS IoT. I’m up to stage 11 on the walkthrough where it says:
                      “11.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)”
                      Where do I find the credentials that need to be copied?

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

                        @janner6 those are the files you downloaded from the last step

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Journeytojah
                          last edited by

                          Just a quick and final update.

                          Considering the recent revelations made by Wikileaks #Vault7, I have decided to stay away from Alexa; at least for now.

                          Already found two possible alternatives, I will not compromise my or anyone else’s privacy.

                          Best of luck,

                          E 1 Reply Last reply Reply Quote 0
                          • E Offline
                            elblogbruno @Journeytojah
                            last edited by

                            @Journeytojah which are they?

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              Journeytojah @elblogbruno
                              last edited by

                              @elblogbruno You can find them here: https://wikileaks.org/ciav7p1/cms/index.html

                              And you can read about what this means pretty much anywhere online.

                              Also see this : https://www.youtube.com/watch?v=tNGFp2tUweI .

                              PS: for a long time I’ve been an advocate of security on IoT devices, shortly after the realease of Shodan serach engine; I cannot stress enough how important it is to keep your devices safe from prying eyes or ears, or keep them from being part of a botnet.

                              I will not hijack this thread and @joanaz’s work any more. Great job for the module, it’s just not what i need :)

                              E 1 Reply Last reply Reply Quote 0
                              • D Offline
                                d3r
                                last edited by

                                @Journeytojah I see what you’re saying.
                                The alexa devices sold by amazon are always listening but the code amazon have shared on their website is not. The alexa version available on their github is only activated on button press or can be voice ativated through snowboy or sensory. My understanding is that snowboy works offline and doesn’t require an internet connection. So yes, alexa could be spying on you but all alexa devices might not be. I am 90% sure mine isn’t but I could be wrong.

                                1 Reply Last reply Reply Quote 0
                                • E Offline
                                  elblogbruno @Journeytojah
                                  last edited by

                                  @Journeytojah I meant the other Assistants like alexa you talked about?
                                  But thanks for the info!

                                  1 Reply Last reply Reply Quote 0
                                  • romainR Offline
                                    romain
                                    last edited by

                                    Hello. I have follow the guide multiple time now. At first I had trouble to get an answer from the Alexa skill (turned out it was because of the region, choosing us east Virginia wasn’t doing the trick for me. I needed to creat my lambda as eu ireland and to change the region value to eu-west-1 within the MirrorMirror.js in both folder).

                                    Now my issue is that nothing is happening even though there is no error what so ever in the log.
                                    I read this entire thread so I may have an idea on what the issue is but I rather ask to be sure.
                                    Is the module isn’t enough by itself ? do I to install some third party thing in order to use it ? (I saw “AlexaPi” mention here and there). Is it why I can’t use this module ?

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      arthurross
                                      last edited by

                                      I got it partly working. It’s just not showing anything on the mirror. I may have sudo npm installed it.

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pepemujica
                                        last edited by

                                        Hi @joanaz !
                                        The module looks great! Thanks for developing it.
                                        Could you help me with this?
                                        I’m stuck over this step:
                                        0_1495801708131_upload-97f2b27a-03b5-4725-adda-277d52f00d15
                                        Can’t find the way to install the dependencies.

                                        1 Reply Last reply Reply Quote -1
                                        • M Offline
                                          manojjena78 @Gunwoody
                                          last edited by

                                          @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

                                            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

                                            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
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 9 / 10
                                            • 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