MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Benjaminh86
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 19
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-GroveGestures

      @Sean
      That’s what happens :
      pi@raspberrypi:~ $ ls ~/MagicMirror/modules/MMM-GroveGestures/py
      gesture_print.py grove_gesture_sensor.pyc
      grove_gesture_sensor.py grove_gesture_sensor.py.RPI
      grove_gesture_sensor.py.ATB

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @Sean
      I have to make this command every start of the pi, knowing that I do not start the MM automatically (pmm2) time to set everything (npm start).
      I’ll be watching tonight with
      ls ~ / MagicMirror / modules / MMM-GroveGestures / py

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @bolish
      it works!
      thanks for your help

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @Sean
      it’s weird; the sensor is not active if I do not order:

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

      would not it come from “chmod + x * .sh” where I hurt something? …

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

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

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

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

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      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?

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @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?

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @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?

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @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?..

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      Hello @bolish,

      thanks for sharing the script. I will watch this carefully ;)

      BenH

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @bolish

      you seem to know how to do things better than me; there are some who understand faster than others, I must be part of the 2nd categories!
      I already installed remote control that works well. I will try with all the information you give me as soon as I have time (I am not at home now).
      it may seem a little easy for me to ask you your scripts, but it allows me to understand the operation and interactions, so I want to see them when you have time.
      Thanks for your help :)

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      Thank you so much @bolish !!
      in principle, I understand how it works, but I’m really fond of programming.
      without wanting to abuse, can you show me your scripts MMM-GroveGestures, MMM-Pages, MMM-NotificationTrigger…

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      Hello @Sean
      i will watch npm start dev.
      Thanks for your help.

      BenH

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @Sean I modified my JavaScript and corrected the errors.
      On my Magic Mirror, I can see my left right scan, but the page does not change.
      an idea…

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @Sean

      I used the command “npm run config: check”

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @Sean

      here is my configuration for your module :

      {
      module: “MMM-GroveGestures”,
      position: “top_right”,
      pages: {‘all’: ‘top_right’},
      config: {
      autoStart: true, //When Mirror starts, recognition will start.
      verbose:false, // If set as true, useful messages will be logged.
      recognitionTimeout: 1000, //Gesture sequence will be ended after this time from last recognized gesture.
      cancelGesture: “WAVE”, //If set, You can cancel gesture sequence with this gesture.
      visible: true, //Recognized gesture sequence will be displayed on position

      idleTimer: 1000*60*30, // `0` for disable, After this time from last gesture, onIdle will be executed.
      onIdle: { // See command section
        moduleExec: {
          module: [],
          exec: (module, gestures) => {
            module.hide(1000, null, {lockstring:"GESTURE"})
      	}
           }
            },
      onDetected: {
        notificationExec: {
          notification: "GESTURE_DETECTED",
        },
        /* You can make Mirror to wake up the modules which were hidden by onIdle with any gestures.
        moduleExec: {
          module: [],
          exec: (module) => {
            module.show(1000, null, {lockstring:"GESTURE"})
          }
        }
        */
      },
      
      gestureMapFromTo: { //When your sensor is installed with rotated direction, you can calibrate with this.
        "Up": "UP",
        "Down": "DOWN",
        "Left": "LEFT",
        "Right": "RIGHT",
        "Forward": "FORWARD",
        "Backward": "BACKWARD",
        "Clockwise": "CLOCKWISE",
        "anti-clockwise": "ANTICLOCKWISE",
        "wave": "WAVE"
      },
      commandSet: {
           "LEFT": {
      	notificationExec: {
      		notification: "PAGE_SELECT",
      		payload: "main",
      	}
           },
            "RIGHT": {
      	notificationExec: {
      		notification: "PAGE_SELECT",
      		payload: "2",
            }
          },
        },
      },
      

      }
      },

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      @Sean as I said, I’m a beginner, and I do not understand everything in programming.
      In addition, I have a synthaxe error on the line “exec: (module, gestures) => {”
      it indicates a problem with the symbol =>.
      Can you help me?

      posted in System
      B
      Benjaminh86
    • RE: MMM-GroveGestures

      Hello World,

      I love your module!
      I use MMM-page-selector to switch between 2 pages. I wanted to use grove gesture to change pages, but I can not adapt the script.
      I can see my gestures in the Magic Mirror when I pass my hand in front of the grove gesture; after, i do not know what to put in config.js
      Can you help me?
      For information, my english is bad, and I do not know anything about programming!

      Thank you

      BenH

      posted in System
      B
      Benjaminh86
    • 1 / 1