@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
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-GroveGestures
-
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 -
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.pywould not it come from “chmod + x * .sh” where I hurt something? …
-
RE: MMM-GroveGestures
@bolish
I will explore this track.
Thanks to you ; you already helped me a lot! -
RE: MMM-GroveGestures
Hello @Sean,
I will look at this in more detail in the module.
Thank you again for your work. -
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? -
RE: MMM-GroveGestures
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? -
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? -
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?..
-
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