Read the statement by Michael Teeuw here.
Currentweather and weatherforecast do not stay hidden
-
@sdetweil
It’s the default behavior of the MMM-GroveGestures module.in config.js
"CLOCKWISE": { moduleExec: { module: [], exec: (module, gestures) => { module.hide(1000, null, {lockstring:"GESTURE"}) } } }, "ANTICLOCKWISE": { moduleExec: { module: [], exec: (module, gestures) => { module.show(1000, null, {lockstring:"GESTURE"}) } } },
in the code is looks like it adds a div around each module and sets it to
class="container" style="display: none;">
No “GESTURE” is being sent as all would show instead of hide. It’s just the weather stuff that reappears. The added DIV is being altered by some other process to
class="container" style="display: block;">
I can’t figure out what is doing it.
-
@kayakbabe said in Currentweather and weatherforecast do not stay hidden:
module.hide(1000, null, {lockstring:“GESTURE”})
module.hide(1000, {lockString:"GESTURE"})
after it’s the same scheme for
module.show()
;)
-
@Bugsounet I found that in the config.js for the grove gestures and changed it. … no effect. I fully stopped and restarted the magic mirror.
the other modules stayed hidden like the are supposed to, but not the current weather or weather forecast.
-
@sdetweil what sleepwake module are you using?
-
@kayakbabe https://github.com/sdetweil/MMM-SleepWake
I wrote this because I did not have a PIR sensor at the time, but did have a webcam.
I also didn’t want to learn how to manage the camera so use a system module,
motion.
sudo apt-get install motionthe module gets triggered by something executing the trigger script i provide.
-
@sdetweil Having what you have on hand makes a ton of sense. I would probably go that on route myself except I’m making this as a gift for my Dad. He is an absolute paranoid dude when it comes to cameras especially in his bathroom or bedroom, which is where this will go. And the PIR sensors are cheap. cheaper than even a pi camera. And this mirror will always be on due to the cheap monitor I"m using.
I do think something in the currentweather and forecastweather is tossing out dom information that is switching the style css from display off to display block.
i have commented out all the other modules except the MMM-grovegestures and the two weather modules. So it’s not coming from elsewhere.From looking at the code, it appears that there is an onIdle somewhere. I want to find that.
I wish I had Coda on this pi. I’m used to coding in a Mac environment. I’m being stubborn and trying to do this all on the pi.
Is there a graphic code editor which can search files in a project and not just the file you have open?