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 @joanaz
      last edited by

      @joanaz I have AlexaPi working great right now. I’m a bit reluctant to stop it and try something else right now. Can you post a video of how it’s currently working?

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

        Okay, i will try again with the new instructions.

        Do you have any advice regarding names for the certs or other names that would need changing?

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

          @lucallmon Where do I say you have to use something else? You definitely need AlexaPi to get it working.

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

            @Journeytojah I think names do not matter, but make sure the names in MirrorMirror.js match with your certs. I called my AWS IoT Device “MagicMirror”.

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

              @joanaz Okay, thanks.

              Do you have any idea why i got that error? The function runs in lambda when testing but in the logs i see that application ID is missing.

              I made sure to put my app ID in the js script and update the lambda function.

              It would get an error on 3s timeout so i set it to 15.

              Ill try setting it up from scratch again and let you know how it goes. Thanks!

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

                So i have to have alexapi?
                Because I’m running this
                https://github.com/alexa/alexa-avs-sample-app
                Which works great you said earlier that it should work with that. Do I need both

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

                  @Journeytojah do you still have the same error? I thought you got it running.

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

                    @zman3 no you just need one Alexa app running. The Alexa sample app is perfectly fine.

                    1 Reply Last reply Reply Quote 0
                    • zman3Z Offline
                      zman3
                      last edited by

                      So my orginal error was when I said Alex on the wall she would say there was a problem with the skill, I redid the version right before you added YouTube now when I say alexa on the wall it dings then freezes and I have to reboot the raspberry to get her to work again. I did Amazon’s hello world skill example and that one works fine. I’ll try your newest version again tonight after work.

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

                        @joanaz I’m cloning my SD card because i ran out of free space installing AlexaPi last night.

                        Will start fresh and let you know if it works.

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

                          Setting up the AWS IoT service… what support plan to choose? Basic is free right? I’m not paying $30 for developer. Is this even required?

                          J J 2 Replies Last reply Reply Quote 0
                          • J Offline
                            joanaz @lucallmon
                            last edited by

                            @lucallmon yes you must setup an AWS IoT device, it should be free, I don’t know where you are seeing basic or developer whatever.

                            You should see something like this

                            0_1486231508320_Screen Shot 2017-02-04 at 13.03.03.png

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

                              @lucallmon afaik you get 12 months for free, you just need to use a credit card to register, and they “use” 1$ to confirm its your account, kinda like PayPal does.

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

                                @joanaz Now i get this error for the Lambda function… tried 3/10/15 seconds.

                                {
                                  "errorMessage": "2017-02-04T20:11:41.538Z 1b87c832-eb16-11e6-a281-33f14ad1f615 Task timed out after 15.00 seconds",
                                  "errorType": "Error"
                                }
                                
                                This is the error in the Amazon Skill :
                                Lambda Response
                                
                                
                                1
                                The remote endpoint could not be called, or the response it returned was invalid.
                                
                                Cloud watch log 
                                
                                20:46:58
                                START RequestId: 11e4a442-eb1b-11e6-a7b3-3361f5194998 Version: 1
                                
                                20:46:58
                                Unable to import module 'index': Error at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/var/task/index.js:24:22) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (
                                
                                20:46:58
                                2017-02-04T20:46:58.805Z	11e4a442-eb1b-11e6-a7b3-3361f5194998	connect
                                
                                20:47:13
                                END RequestId: 11e4a442-eb1b-11e6-a7b3-3361f5194998
                                
                                20:47:13
                                REPORT RequestId: 11e4a442-eb1b-11e6-a7b3-3361f5194998	Duration: 15003.64 ms	Billed Duration: 15000 ms Memory Size: 128 MB	Max Memory Used: 26 MB
                                
                                20:47:13
                                2017-02-04T20:47:13.618Z 11e4a442-eb1b-11e6-a7b3-3361f5194998 Task timed out after 15.00 seconds Error
                                
                                
                                Unable to import module 'index': Error
                                at Function.Module._resolveFilename (module.js:325:15)
                                at Function.Module._load (module.js:276:25)
                                at Module.require (module.js:353:17)
                                at require (internal/module.js:12:17)
                                at Object.<anonymous> (/var/task/index.js:24:22)
                                at Module._compile (module.js:409:26)
                                at Object.Module._extensions..js (module.js:416:10)
                                at Module.load (module.js:343:32)
                                at Function.Module._load (module.js:300:12)
                                at Module.require (module.js:353:17)
                                
                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Journeytojah
                                  last edited by

                                  By the way, I was unable to upload the .zip from the RPi, it would just say “must not exist”, so i did it from my laptop, could this be the issue?

                                  I ran the .sh script and downloaded dependencies on the raspberry, archived the src folder contents and used my laptop to upload them.

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

                                    @Journeytojah it usually happens when you zip the src folder, you have to go inside the src folder, and select all the files and folder, including node_modules, and certs, and compress them to a zip file.

                                    J G 2 Replies Last reply Reply Quote 0
                                    • J Offline
                                      Journeytojah @joanaz
                                      last edited by

                                      @joanaz Thats what I did… I will try again.

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

                                        Ok. So, I’ve decided to give up on this. The Readme files are not user-friendly. There is no step-by-step guide for install. I originally got very excited about this and if I could see it working, I might still again. However, I’m no programmer; I’m just the end user. So, good luck and let me know if you ever put out a video demo of it working and create a more user-friendly step-by-step install guide.

                                        1 Reply Last reply Reply Quote 1
                                        • B Offline
                                          bartalluyn
                                          last edited by

                                          Hi,

                                          I’ve succeeded in succesfully linking Alexa to the smart mirror. When I issue a command, the mirror responds automatically. It has automatic wake word detection, audio feedback, automatic authentication using a refresh token, connection through a mirror interface. In the background it uses Alexa Skills kit and DynamoDB to make the communication happen. Read about it on my blog :
                                          [http://smartmirrorprojectblog.wordpress.com/](link url)
                                          Go ahead and follow the blog to find out on the progression and further development.

                                          Tips and suggestions welcome of course.

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

                                            @bartalluyn really nice work! but since you have to change the Alexa Java client app to get it to work, it wouldn’t work for our application, since we need to get it to work with off-the-shelf Alexa or Alexa Echo. Right now my Alexa skill can only be used by one user, so I’m thinking about how to get it to work with multiple users so I can publish this skill, so people don’t need to worry about setting up Lambda and Alexa skill.

                                            B 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
                                            • 3
                                            • 4
                                            • 5
                                            • 9
                                            • 10
                                            • 2 / 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