Read the statement by Michael Teeuw here.
MMM-GroveGestures
-
@Sean thanks for your answer it was a H/W failure I2C was not activate and i don’t know why ? I enabled I2c with raspi-config and shutdown the pi. I pluged my sensor again and it works
-
@Sean Hi mate, just dipping my toe in to the whole Magic Mirror world and loving it. Was just wondering if there’s any way to control MMM-Carousel and MMM-CECControl using the output from MMM-GroveGestures?
I’m thinking
- Clockwise for next slide
- Anti clockwise for previous slide
- UP to send the wake up signal on HDMI
- Down to send the sleep signal on HDMI
-
@jim-dw
Well, I’m not the author of those modules, so Ask these to the creator of MMM-Carousel / MMM-CECControl ;(Or need to check by yourself)- Are there notifications for that purpose?
- Or Are there method of module class for that purpose?
- Or controllable by external shell script or HTTP API?
At least one of them possible, it could.
-
@Sean lol. Good point.
I guess what confused me is this code below. I understand ‘clock’ or ‘newsfeed’ can be swapped out for ‘mmm-ceccontrol’ or ‘mmm-carousel’ it’s just figuring out how I send the command.
Is it “module.hide()” that needs to be replaced?
Sorry for this. Still learning
moduleExec: {
module: [“clock”, “newsfeed”], //[]
will be all modules.
exec: (module, gestures) => {
module.hide()
}
} -
@jim-dw
right. “.hide()” is a common method of every module should have. Usually, module developer need to implement that method by his own or just leave it as inheritance from parent class. So, every module will have that “hide()” method definitely.
Now, let’s see your needs.
For example;
If MMM-Carousel has specific method like “changePage(pageNo)”(IDK whether really it exists o not), you can call that method with “moduleExec”
However I’m not the author of MMM-Carousel, so don’t know it supports or not. Ask to the author. -
@Sean hide() technically turns into a suspend function call in the module
show() turns into resume() -
@Sean You know what, I think I understood that mate. Thank you. I guess I’m gonna have to learn a little bit of python. Thank you
-
in the readme file it says it doesnt work behind spy glass, does that include regular glass with a reflective film?
im guessing that it wont work but hoping that it will! :)
thanks
-
@banbutcher
Not tested, so not sure. The issue relies on the thickness of the glass.