Hi everyone, I have a problem with the EXT-Page and MMM-GroveGesture modules, I have this sensor (PAJ7620u2) on raspberry pi 4 correctly installed and working, but the pages don’t scroll in any way, you just want to go forward or back through the pages, this is my config.js
thanks to everyone
{
module: “MMM-GroveGestures”,
position: “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"
},
defaultNotification: "GESTURE",
pythonPath: "/usr/bin/python", // your python path
defaultCommandSet: "default",
commandSet: {
"default": {
"FORWARD-BACKWARD": {
notificationExec: {
notification: "ASSISTANT_ACTIVATE",
payload: null
}
},
"LEFT-RIGHT": {
notificationExec: {
notification: "ASSISTANT_CLEAR",
payload:null,
}
},
"CLOCKWISE": {
moduleExec: {
module: [],
exec: (module, gestures) => {
module.hide(1000, null, {lockstring:"GESTURE"})
}
}
},
"ANTICLOCKWISE": {
moduleExec: {
module: [],
exec: (module, gestures) => {
module.show(1000, null, {lockstring:"GESTURE"})
}
}
},
"LEFT": {
notificationExec: {
notification: "PAGE_DECREMENT",
payload: null,
}
},
"RIGHT": {
notificationExec: {
notification: "PAGE_INCREMENT",
payload: null,
}
},
},
},
}
},