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

      @savage_gr1nd erhhh, inside the module folder. you also need to copy the certs folder over

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        savage_gr1nd @joanaz
        last edited by

        @joanaz I’m sorry I’m being retarded. I’ve been staring at json too long. In the magic mirror module folder or the mirrormirror folder?

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

          @savage_gr1nd ?? to run npm install? in the magic mirror module folder, where package.json is

          S 2 Replies Last reply Reply Quote 0
          • S Offline
            savage_gr1nd @joanaz
            last edited by

            @joanaz okay. Like I said I’m sorry. This is my first pi project AND my first module for magicmirror.
            When putting mirrormirror in the config.js, does it matter where in the list? I put inew the config info and then it says I screwed up the config.js.

            1 Reply Last reply Reply Quote 0
            • S Offline
              savage_gr1nd @joanaz
              last edited by savage_gr1nd

              @joanaz soooo close. On/off modules. Check. But no text on screen.
              Find a video? Text on screen. No video. And how do you close my supposed video?
              Any help? I’m so close I can taste victory!

              Update - google developer console says success connection with api on that command. So I’m guessing it’s a player launch failure or missing a folder for youtube-node?

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

                @savage_gr1nd there’s no text on screen when you turn on/off module. can you get display text or display image commands to work? right now the text/image/video will remain on the screen, the video will be played in a loop, but you can simply add a timeout to hide this module after few seconds. The ‘next up’ Youtube video idea is also cool, do you think you can implement it yourself?

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

                  Just out of curiosity, which cities are you guys in? I’m in New York.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    savage_gr1nd @joanaz
                    last edited by

                    @joanaz I’m in California.
                    And I could try if I can ever figure out why I can’t get video to pop up in the first place lol and no I can’t get images to work either. That tests error in alexa skill Console so I’m digging into you tube first. Which tests positive.
                    I say find a video of… and she responds and puts the text on screen. But the url window doesn’t show.

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

                      I still didn’t get mine to work, I haven’t tried again to be honest…

                      I am in Spain, if that makes a difference.

                      I was trying out other options for voice control like Jasper, etc; no luck so far.

                      I might come back to this module tonight and try to get it running.

                      Should I try to set it up for the European region that supports Alexa skills? (which is Ireland afaik)

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

                        @Journeytojah I think the region is why some people couldn’t get it to work. Right now, Lambda only works with US East regions. So better use US East for every AWS services needed here.

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

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

                          @Journeytojah I think the region is why some people couldn’t get it to work. Right now, Lambda only works with US East regions. So better use US East for every AWS services needed here.

                          I had US East selected, but maybe because I am not physically located in the US it somehow gets blocked by some ISP somewhere along the way.

                          To me thats what it looked like, a connectivity issue.

                          And I know Alexa Skills with Lambda are only supported in some regions, but that includes one European one, the one in Ireland, so ill try that one.

                          Anyway, after seeing how impossible it is to work with Jaster/So.nus and so on, I will go back and give this another try…

                          S J 2 Replies Last reply Reply Quote 0
                          • S Offline
                            savage_gr1nd @Journeytojah
                            last edited by

                            @Journeytojah no that’s not it. I’m in the west coast and I got my lambda and skill to link. Only thing I don’t have working are the Google api and youtube api

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

                              @Journeytojah ok, remember to change the region setting in MirrorMirror.js in both folders. (line 16 below)

                              0_1486761618398_Screen Shot 2017-02-10 at 16.19.59.png

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                savage_gr1nd @joanaz
                                last edited by

                                @joanaz so no idea on the YouTube problem? Like I said. I know it’s hitting the api. It has a success message in Google console. Just nothing pops up in MagicMirror itself except the text.

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

                                  @savage_gr1nd ok, so there are few places you can check.

                                  1. the skill should console log the api response, so check it in Lambda. see whether ‘items[0].id.videoId’ is still the right way to get the video ID
                                  2. use AWS IoT to check whether that video ID is published to channel “MagicMirror:new-video”
                                  3. check your mirror module, see whether it received that video ID.
                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    savage_gr1nd @joanaz
                                    last edited by

                                    @joanaz awesome. I’ll check that when I get home. At least I have a starting point.
                                    Thank you.

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

                                      Well, i get the same error when entering a sample utterance:

                                      The remote endpoint could not be called, or the response it returned was invalid.
                                      

                                      and in Lambda when i test:

                                      START RequestId: a70ecb9c-efe6-11e6-b979-693b99b365f9 Version: $LATEST
                                      END RequestId: a70ecb9c-efe6-11e6-b979-693b99b365f9
                                      REPORT RequestId: a70ecb9c-efe6-11e6-b979-693b99b365f9	Duration: 3003.26 ms	Billed Duration: 3000 ms 	Memory Size: 128 MB	Max Memory Used: 15 MB	
                                      2017-02-10T23:14:23.605Z a70ecb9c-efe6-11e6-b979-693b99b365f9 Task timed out after 3.00 seconds
                                      
                                      

                                      any help would be welcomed, its keeping me awake at night, would love to get it working :)

                                      Interesting enough, when i run it locally it connects…
                                      http://imgur.com/aecZ8af

                                      Still playing around, no luck…

                                      Saw this in the log now…

                                      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:27:17)
                                      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)
                                      

                                      Much later edit: so i notice that Lambda runs NodeJS 4.3, i am running 7.5 on the RPi, could that be it?

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

                                        @joanaz I finally got it perfected. And I love it. Minus the fact that we can’t essentially go home on the mirror. I posted it onto github. Is this something doable?

                                        Edit - I’m dumb and didn’t see the part where you said add a timeout to the module. How do I do this? Once I’m done with that I can finally build my actual mirror onto it :)
                                        One more edit - looking though files (only on github atm) I can’t find where to change font of text displayed. Is this in a node or am I missing something? Smaller and cleaner is what I’m shooting for lol

                                        And again. Thank you for writing this. When I saw smart mirrors about a year ago I’ve been dying to do this exact thing. Just didn’t have your brains to get it done:)

                                        J richland007R 2 Replies Last reply Reply Quote 0
                                        • S Offline
                                          savage_gr1nd @Journeytojah
                                          last edited by savage_gr1nd

                                          @Journeytojah my big fail with lambda was the overall simplicity. I tried to make it too complicated.
                                          Start fresh with a new git skill clone. Create a new project on lambda and follow @Joanaz instructions to the letter. When running npm install make sure you’re in /mirrormirroronthewallskill/src before installing dependencies.
                                          Don’t sudo anything. And node version should be fine. Lambda test never comes out perfect. Check skill test for success connections.
                                          Also. For youtube and Google APIs make sure billing is enabled for safe measure.

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

                                            @savage_gr1nd that’s awesome!!! I’ll try to add a timeout on the module, it’s just that videos have different lengths, but I’m sure it can be done. To change font, you can add some css in MMM-MirrorMirrorOnTheWall.css.

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