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 363.7k 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.
    • 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
                • B Offline
                  bartalluyn @joanaz
                  last edited by

                  @joanaz That’s indeed something that wouldn’t work in that case.
                  It sounds like you would need something like account linking. What if the smart mirror would publish a service that takes and gives account credentials to hook on using the account linking functionality of a custom skill?
                  Thinking out of the box right now?
                  Also, suppose it works. When people start to install your module, and use your skill, your 1 million free lambda calls might expire sooner than you think? That’s one of the reasons why I’m not considering putting any of my skills out there.

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

                    well just went through the whole thing again she still says there was a problem with the requested skills response and when i type hello into the service simulator the output is
                    The remote endpoint could not be called, or the response it returned was invalid.

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

                      this is in the logs
                      START RequestId: cc7bfdd1-ebfd-11e6-8d16-b56e041c9162 Version: $LATEST
                      
                      23:49:57
                      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. (/var/task/index.js:23:14) at Module._compile (module.js:409:26) at Object.Module._extensions…js (module.js:416:10) at Module.load (
                      
                      23:49:58
                      2017-02-05T23:49:58.043Z cc7bfdd1-ebfd-11e6-8d16-b56e041c9162 connect

                      1 Reply Last reply Reply Quote 1
                      • G Offline
                        Gunwoody @joanaz
                        last edited by

                        @joanaz Hi, when i zip all those files and folders up and try to upload them to Lambda i get "The deployment package of your Lambda function “xxxxxxxxx” is too large to enable inline code editing. However, you can still invoke your function right now. any ideas - it’s driving me mad. I thought it must be that i shouldn’t include the node_modules folder - can you confirm exactly what should be in the zip. Thanks

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

                          @Gunwoody you should definitely include node_modules, but my zip file is 5.1MB, I think the limit is 50MB. it’s not an error, you can ignore it.

                          G 1 Reply Last reply Reply Quote 0
                          • G Offline
                            Gunwoody @joanaz
                            last edited by

                            @joanaz Hi - thanks for the super quick reply :). Yes, my zip is also 5.1mb. I’ve tried several times but still get the same message.

                            “The deployment package of your Lambda function “xxxxxxxxxxx” is too large to enable inline code editing. However, you can still invoke your function right now.”

                            You say i can ignore it - but how do i know if the zip has uploaded ok?

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

                              @Gunwoody it says you can invoke your function right now. if it’s not ok, it would give you a red error message. Anyways, you can click on the test button, see whether your function works. but before that, you need to setup a test case

                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                Gunwoody @joanaz
                                last edited by

                                @joanaz Thanks again. I think it’s uploaded ok - not that it’s helped me get it working. I can get just about any other module running on MagicMirror but not this one. I think it’s just a case of i’m not sure what folders should be where. When i run it with the module in the config file i just get a white screen and can’t ‘alt’ out of it - Pi seems to crash. I think i’ll just have to give up as i’ve been trying for 3 days to get this running :(

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

                                  @bartalluyn is your code on Github? I’m quite interested in your Alexa Java client, it’d be great if it was a Mirror Module, so Alexa and Mirror can communicate directly without going through AWS IoT.

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

                                    @Gunwoody sorry to hear that. This is quite advanced as you have to setup AWS IoT, Lambda and Alexa skill, so it does need you to have some experiences with programming and using AWS services. I’m thinking about how to simplify this and get it to work with multiple users, but thanks for trying.

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

                                      I do not get why this is not working the src.zip has a layout of folders and in the root of zip I have index.js MirrorMirror.js and package.json

                                      but i still get

                                      START RequestId: dbde411d-ecaa-11e6-8bd7-9b2096d559c7 Version: $LATEST
                                      
                                      20:28:46
                                      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. (/var/task/index.js:23:14) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (
                                      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. (/var/task/index.js:23:14)
                                      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)
                                      

                                      which looks like what it’s not finding index.js ?

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

                                        @joanaz I haven’t really had much of an issue with Lambda, IOT etc. It’s more the local install on the pi. I think because your instructions jump from area to area it’s easy to miss or misintrepet a step. I might just do a full clean install and start from scratch. It’s just a shame because MagicMirror itself runs perfectly with any module i try. It’s just your that is determined to thwart me lol :)

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

                                          @zman3 you don’t have certs and node_modules?

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

                                            @Gunwoody i’ve never seen another mirror module which works with a Alexa skill

                                            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
                                            • 3 / 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