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.

    Change page with MMM-Pages

    Scheduled Pinned Locked Moved General Discussion
    25 Posts 3 Posters 10.3k Views 3 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
      MMRIZE @Egnos
      last edited by

      @Egnos Which condition do you regard as a trigger? timer? button? face recognition?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @MMRIZE
        last edited by

        @MMRIZE swipe? hand gesture

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MMRIZE @sdetweil
          last edited by

          @sdetweil
          For the gesture, you can use MMM-Touch(touchscreen) or MMM-GroveGesture(gesture sensor).
          Yup, it was my PR time… :D

          @Egnos
          If you want to use MMM-Pages as simply time-based rotation, just assign rotationTime to your module configuration.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @MMRIZE
            last edited by

            @MMRIZE he has timed change… wants something explicit … has voice via GA now… but wants interaction without GA

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MMRIZE @sdetweil
              last edited by MMRIZE

              @Egnos
              We might have many user-input methods for the mirror, but you need to have them already. What do you have? physical button? touchscreen? command from a smartphone? IR sensor? face detection from a webcam? Geo-fence detection? IFTTT event? noise detection? voice command without GA? Alexa skill? by email(yes, even it possible)…
              What do you want? then we can discuss about it. :)

              S E 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @MMRIZE
                last edited by sdetweil

                @MMRIZE cannot be Alexa Skill

                sadly Amazon has implemented new certification processes that MM system cannot pass
                until certified all skill access is blocked

                https://forum.magicmirror.builders/topic/16069/alexa-implementations-now-more-difficult-and-some-features-will-stop-working

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MMRIZE @sdetweil
                  last edited by MMRIZE

                  @sdetweil Sad to hear it.
                  But I think through IFTTT it might be possible (though not tested, but…)
                  I mean, not Alexa implemented mirror, but use Alexa Echo to command a mirror (via IFTTT and webhook endpoint)

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @MMRIZE
                    last edited by

                    @MMRIZE ah, and MMM-AlexaControl can do that locally (and already supports pages)

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • E Offline
                      Egnos @MMRIZE
                      last edited by

                      @MMRIZE said in Change page with MMM-Pages:

                      @Egnos
                      We might have many user-input methods for the mirror, but you need to have them already. What do you have? physical button? touchscreen? command from a smartphone? IR sensor? face detection from a webcam? Geo-fence detection? IFTTT event? noise detection? voice command without GA? Alexa skill? by email(yes, even it possible)…
                      What do you want? then we can discuss about it. :)

                      Hi @MMRIZE and thanks for your reply.
                      I wanted to understand which methods were possible to change the page using the notification method (excluding GA that I already use …).

                      I was interested in “MMM-GroveGesture” (Maybe combined with a PIR…) but I have seen that some have reliability problems. Have you ever tried it?
                      https://forum.magicmirror.builders/topic/6428/question-to-mmm-swipe-simon089-and-mmm-pages-and-mmm-page-indicator

                      @MMRIZE said in Change page with MMM-Pages:

                      @sdetweil Sad to hear it.
                      But I think through IFTTT it might be possible (though not tested, but…)
                      I mean, not Alexa implemented mirror, but use Alexa Echo to command a mirror (via >IFTTT and webhook endpoint)

                      This solution of using Alexa Echo might interest me: have you already done some tests?

                      Thanks very much for the valuable advice!

                      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                      S M 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Egnos
                        last edited by

                        @Egnos said in Change page with MMM-Pages:

                        This solution of using Alexa Echo might interest me: have you already done some tests?

                        MMM-AlexaControl already provides support for MMM-Pages, using the notifications configuration options

                        next and back, and you can add actions to go to a specific pages (hard coded number)

                        AlexaControl creates fake/virtual wemo plugs, which can be turned on or off…
                        they cannot receive any data … so you can say ‘Turn on page 2’ which sends notification to pages to go to page two

                        but you cannot define a single switch that can go to any page based on voice…
                        (but it sounds like that to the user)…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        E 1 Reply Last reply Reply Quote 0
                        • M Offline
                          MMRIZE @Egnos
                          last edited by

                          @Egnos said in Change page with MMM-Pages:

                          I was interested in “MMM-GroveGesture” (Maybe combined with a PIR…) but I have seen that some have reliability problems. Have you ever tried it?

                          Yup, I made that. :)

                          @Egnos said in Change page with MMM-Pages:

                          https://forum.magicmirror.builders/topic/6428/question-to-mmm-swipe-simon089-and-mmm-pages-and-mmm-page-indicator

                          That is a different H/W and different module with MMM-GroveGesture. MMM-Swipe is using HC-SR04, Ultrasonic Sensor, it is different with PAJ7620 gesture sensor.

                          @Egnos said in Change page with MMM-Pages:

                          This solution of using Alexa Echo might interest me: have you already done some tests?

                          Not with Echo, But with Google Home I had success,(+ IFTTT + Nginx + dataplicity.io + MMM-NotificationTrigger) It is definitely possible.

                          E 1 Reply Last reply Reply Quote 0
                          • E Offline
                            Egnos @sdetweil
                            last edited by

                            @sdetweil said in Change page with MMM-Pages:

                            but you cannot define a single switch that can go to any page based on voice…
                            (but it sounds like that to the user)…

                            I did not understand this last sentence …

                            @MMRIZE said in Change page with MMM-Pages:

                            That is a different H/W and different module with MMM-GroveGesture. MMM-Swipe is using HC-SR04, Ultrasonic Sensor, it is different with PAJ7620 gesture sensor.

                            Which one do you recommend between the two? Did you find “MMM-GroveGesture” reliable?

                            @MMRIZE said in Change page with MMM-Pages:

                            Not with Echo, But with Google Home I had success,(+ IFTTT + Nginx + dataplicity.io + MMM-NotificationTrigger) It is definitely possible.

                            It would be perfect (I am oriented to the purchase of a Nest Audio …) but I see the thing too “complicated” … :grinning_face_with_sweat:

                            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @Egnos
                              last edited by sdetweil

                              @Egnos said in Change page with MMM-Pages:

                              I did not understand this last sentence …

                              the way AlexaControl works , it creates a switch, on or off…

                              a switch doesn’t get any data from the voice command

                              on 12? makes no sense

                              so you cannot create a single generic go to page x, notification
                              and use voice to give x

                              you CAN create a notification for EACH page

                              page 1
                              page 2
                              page 3
                              page 4
                              page 5

                              and the voice is ‘alexa, turn on page 1’
                              and the page 1 alexacontrol event fires the pages notification for goto page 1

                              this.sendNotification("PAGE_CHANGED", 0);
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                Egnos @MMRIZE
                                last edited by Egnos

                                @MMRIZE said in Change page with MMM-Pages:

                                Yup, I made that.

                                Sorry @MMRIZE but I didn’t understand that the module “MMM-GroveGesture” was created by you and I apologize if I doubted its reliability.
                                I found the sensor you mentioned, in a nicer form to see, I am attaching the link:
                                https://shop.m5stack.com/products/unit-gesture-recognition-sensor-paj7620u2
                                Can you confirm that it is the same HW that you used?

                                Furthermore, would it be possible to link the functions of the gesture sensor to a motion sensor (PIR)?
                                For instance:
                                IF the motion sensor does not detect movement THEN do not activate the gesture sensor (also because the monitor would be off …)
                                IF the motion sensor detects movement THEN also activate the gesture sensor (also because the monitor would be on …)

                                @sdetweil said in Change page with MMM-Pages:

                                the way AlexaControl works , it creates a switch, on or off…
                                a switch doesn’t get any data from the voice command
                                on 12? makes no sense
                                so you cannot create a single generic go to page x, notification
                                and use voice to give x
                                you CAN create a notification for EACH page
                                page 1
                                page 2
                                page 3
                                page 4
                                page 5
                                and the voice is ‘alexa, turn on page 1’
                                and the page 1 alexacontrol event fires the pages notification for goto page 1

                                thanks @sdetweil now i understand. Thank you so much!

                                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MMRIZE @Egnos
                                  last edited by

                                  @Egnos said in Change page with MMM-Pages:

                                  Sorry @MMRIZE but I didn’t understand that the module “MMM-GroveGesture” was created by you and I apologize if I doubted its reliability.
                                  I found the sensor you mentioned, in a nicer form to see, I am attaching the link:
                                  https://shop.m5stack.com/products/unit-gesture-recognition-sensor-paj7620u2
                                  Can you confirm that it is the same HW that you used?

                                  Looks like so. (If the description is right). I think it is only housed with pretty cover. But I think its better without housing (Because you may want to dig this sensor to wooden mirror frame. In that case, without housing would be better to assembly)
                                  Another possible issue might be HY2.0-4P Cable included. That connector would not fit with bare GPIO pins of RPI. You may need something like below cable (only one piece);
                                  1d51469e-c75e-4e55-9e4a-c1acc0b5d3bc-image.png

                                  @Egnos said in Change page with MMM-Pages:

                                  Furthermore, would it be possible to link the functions of the gesture sensor to a motion sensor (PIR)?
                                  For instance:
                                  IF the motion sensor does not detect movement THEN do not activate the gesture sensor (also because the monitor would be off …)
                                  IF the motion sensor detects movement THEN also activate the gesture sensor (also because the monitor would be on …)

                                  MMM-GroveGestures module already has onIdle and onDetected features, So these features could be used for your idle/wakeup behaviours. (But the sensor itself has not long distances like PIR, so to use PIR together would be better idea.)

                                  E 1 Reply Last reply Reply Quote 0
                                  • E Offline
                                    Egnos @MMRIZE
                                    last edited by Egnos

                                    @MMRIZE said in Change page with MMM-Pages:

                                    Looks like so. (If the description is right). I think it is only housed with pretty cover. But I think its better without housing (Because you may want to dig this sensor to wooden mirror frame. In that case, without housing would be better to assembly)
                                    Another possible issue might be HY2.0-4P Cable included. That connector would not fit with bare GPIO pins of RPI. You may need something like below cable (only one piece);

                                    If instead you took the sensor without a cover how did you think of attaching it to the frame? Do you leave the sensor naked or cover it with a self made cover?

                                    @MMRIZE said in Change page with MMM-Pages:

                                    MMM-GroveGestures module already has onIdle and onDetected features, So these features could be used for your idle/wakeup behaviours.

                                    Ok, I hope you will help me when I have to make it work!:winking_face:

                                    @MMRIZE said in Change page with MMM-Pages:

                                    (But the sensor itself has not long distances like PIR, so to use PIR together would be better idea.)

                                    From your tests what is the minimum distance that the hand must have from the sensor?

                                    Thank you very much!

                                    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @Egnos
                                      last edited by

                                      @Egnos said in Change page with MMM-Pages:

                                      From your tests what is the minimum distance that the hand must have from the sensor?

                                      the doc for the sensor he linked says

                                      Effective recognition distance 5cm-15cm
                                      (without obstruction of case or cover)

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      E 1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        Egnos @sdetweil
                                        last edited by

                                        @sdetweil said in Change page with MMM-Pages:

                                        Effective recognition distance 5cm-15cm
                                        (without obstruction of case or cover)

                                        If so, it is very little!

                                        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          MMRIZE @Egnos
                                          last edited by MMRIZE

                                          @Egnos
                                          See how usage looks like.
                                          https://youtu.be/BcpZvkcrfHU

                                          E 1 Reply Last reply Reply Quote 1
                                          • E Offline
                                            Egnos @MMRIZE
                                            last edited by

                                            @MMRIZE said in Change page with MMM-Pages:

                                            See how usage looks like.
                                            https://youtu.be/BcpZvkcrfHU

                                            I just have to try!

                                            @MMRIZE If instead you took the sensor without a cover how did you think of attaching it to the frame? Do you leave the sensor naked or cover it with a self made cover?

                                            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                            M 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
                                            • 1 / 2
                                            • 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