Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-GroveGestures
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 :) -
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… -
RE: MMM-GroveGestures
Hello @Sean
i will watch npm start dev.
Thanks for your help.BenH
-
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… -
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 astrue
, 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 positionidleTimer: 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", } }, }, },
}
}, -
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? -
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