Read the statement by Michael Teeuw here.
MMM-GroveGestures Parsing error: Parenthesized pattern
-
Copying the default config code into config.js makes “npm run config:check” generate a “Parsing error: Parenthesized pattern” on
exec: (module, gestures) => { module.hide(1000, null, {lockstring:"GESTURE"})}I’m uncertain how to fix it or proceed and I so much want to incorporate this module into my setup. Can anyone please offer some advice? Thank you. (complete config code is below):
{ 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: "ARTICLE_PREVIOUS", payload: null, } }, "RIGHT": { notificationExec: { notification: "ARTICLE_NEXT", payload: null, } }, }, }, } }, -
@jerry11d don’t do that.
why are u copying this code?
-
@sdetweil to make sure my config contains no errors before I start editing and tweaking, only to be completely baffled whether a syntax error is of my doing or not … case in point.
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