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-GroveGestures

    Scheduled Pinned Locked Moved System
    51 Posts 8 Posters 19.2k Views 12 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.
    • B Offline
      Benjaminh86 @bolish
      last edited by

      @bolish
      I see in your MMM-notificationtrigger module that you have a MONITOROFF action.
      I imagine that we can associate a gesture command in Grove Gestures, for example: I make the gesture high, it turns on the screen.
      I would like to do that but I do not understand how to integrate it into Grove Gestures …
      If I do :

      “UP”: {
      notificationExec: {
      notification: “REMOTE_ACTION”,
      payload: {
      action: “MONITORON”,
      module: “MMM-Remote-Control”,
      }

      And in MMM-notificationtrigger:

      {
      // MONITOR_ON - turns screen on
      trigger: “MONITOR_ON”,
      fires: [
      {
      fire: “REMOTE_ACTION”,
      payload: {
      action: “MONITORON”,
                               module: “MMM-Remote-Control”,
      }
      }
      ]
      }

      is it good?..

      1 Reply Last reply Reply Quote 0
      • B Offline
        bolish
        last edited by

        @Benjaminh86
        Not really…

        “MONITORON” is already an action which is managed by MMM-REMOTECONTROL so you don’t need MMM-Notificationtrigger for that.

        You just need MMM-GroveGesture to send it :

        		        				"UP": {
        						        notificationExec: {
        						          notification: "REMOTE_ACTION",
        							    payload: {
        							  	action: "MONITORON",
        								     },	 // you don't need to refer to a module name for the MONITORONN action (only necessary for HIDE and SHOW)
        						        }
        

        But you need to make sure that MMM-REMOTEControl is configured in the right way so that when it receives “MONITORON” it sends the right command (depending if you use HDMI, CEC, etc…)

        Regards

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Benjaminh86 @bolish
          last edited by

          @bolish
          thank you
          when you say: “But you need to make sure that MMM-REMOTEControl is configured in the right way”, when I send the request http://192.168.xxx.xxx:8080…MONITOROFF, it works.
          is that enough, or do I have to add something to the MMM-Remote-Control script?

          1 Reply Last reply Reply Quote 0
          • B Offline
            bolish
            last edited by

            No, if it’s works by sending the request, it should work with Gesture also!

            B 2 Replies Last reply Reply Quote 0
            • B Offline
              Benjaminh86 @bolish
              last edited by

              @bolish

              Great!
              I will try tonight the adaptation I made of your script.
              I put the action “MONITOROFF” in the “Default_Mode” part of Grove Gestures, that’s it?

              1 Reply Last reply Reply Quote 0
              • B Offline
                Benjaminh86 @bolish
                last edited by

                Hello @bolish,

                thanks to you! everything is working!
                however, I thought Grove Gestures would activate automatically, but I have to make the command line for the sensor to be active:
                cd ~ / MagicMirror / modules / MMM-GroveGestures / py
                cp grove_gesture_sensor.py.RPI grove_gesture_sensor.py
                Is this normal?
                Another question about MMM-Pages; I would like to display the Google Calendar calendar on page 1 and the holiday calendar on page 2, but I do not know how to differentiate and name them on MMM-Pages …
                Do you have an idea?

                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @Benjaminh86
                  last edited by

                  @Benjaminh86 said in MMM-GroveGestures:

                  cd ~ / MagicMirror / modules / MMM-GroveGestures / py
                  cp grove_gesture_sensor.py.RPI grove_gesture_sensor.py

                  It is described on instruction for installation. And that command is not for activation. I provide 2 scripts for each of Raspberry Pi and Asus TinkerBoard. you need to select one for your device. You don’t need to do that job again after once you did.

                  The real activation would be performed in the module itself on every running of MM.

                  B 2 Replies Last reply Reply Quote 0
                  • B Offline
                    bolish
                    last edited by

                    @Benjaminh86
                    You have to search a bit on the forum.
                    One idea could be to create 2 calendars instances.
                    See below post extract :

                    well… I believe it’s far from being perfect…but at least it seems to do the job…
                    
                    I created a “new” module which does exactly same / has the same code as the one I want to use, but has a different name (folder named “MMM-Calendar2” -> file named “MMM-Calendar2.js” -> within the line Module.register(‘MMM_Calendar2’)).
                    Not in the default module folder but into the 3rd party module folder…
                    

                    And put instance 1 on page 1 and isntance 2 on page 2.

                    B 2 Replies Last reply Reply Quote 0
                    • B Offline
                      Benjaminh86 @Guest
                      last edited by

                      Hello @Sean,
                      I will look at this in more detail in the module.
                      Thank you again for your work.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        Benjaminh86 @bolish
                        last edited by

                        @bolish
                        I will explore this track.
                        Thanks to you ; you already helped me a lot!

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 3 / 6
                        • 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