Read the statement by Michael Teeuw here.
Cron Job Question
-
@Nneuland probably they don’t know what DISPLAY is set to
take of the redirects >
so u can see the errors in the cron log -
@Nneuland
My Old Cronjob was like this.
00 07 * * 1-5 /home/pi/hdmi-on.sh
45 21 * * 1-5 /home/pi/hdmi-off.sh
00 07 * * 6,0 /home/pi/hdmi-on.sh
00 22 * * 6,0 /home/pi/hdmi-off.shhdmi-off.sh file contains :
vcgencmd display_power 0hdmi-on.sh file contains:
vcgencmd display_power 1Don’t forget to
sudo chmod +x hdmi-off.sh
sudo chmod +x hdmi-on.sh
If you go this route.Now I use MMM-AutoDimmer
my setup in config.js it works great{ disabled: false, module: "MMM-AutoDimmer", position: "fullscreen_above", header: "", // Don't change anything above this line config: { maxDim: 1, brightTime: 700, dimTime: 2130 } },
-
@plainbroke I use a webcam for motion and also hide modules instead of turn off the display
using my Sleep wake module
https://github.com/sdetweil/MMM-SleepWake -
@sdetweil
I will give that a try next rainy day we have.
I like to try things like that module on my raining can’t do anything outside days… -
Just a small remark: /del/null is a typo.
When off works, then on will work when you change to /dev/null.
Unless it is right on your system and the typo is in your thread. -
@evroom good catch!
-
Good eye. And yes! This was the issue. Thank you
-
@sdetweil
Is there a way to run this as a cron job to black out the screen then in the morning un black the screen?
I don’t understand the camera angle, I have Motion Eye running on a PI zero and raspberry 5 mp camera and it works showing up in my mirror using Motion-Eye. I just do not understand at all the code to make it happen… -
@plainbroke I use the GitHub motion project to handle the camera and motion detection.
https://github.com/Motion-Project/motion
( I didn’t want to learn how to manage the camera too)it signals motion start and end.
the library provides tons of config options and supports just about every camera.I provide the interface script that is called on motion start/end and signals my sleep/wake module to turn off screen or hide modules.
you could use the script I provide in the cron job to signal wake up or go to sleep on a timed schedule
-
@sdetweil
What would the script code look like to do this manually instead of using the motion thing. I tried installing it but could not get it to work for me… the autoreconfig would not run at all… make just failed and one other step could not find certain files. There is no indication it actually installed. so I ran remove and it did. not sure where the motion program was installed in the first place I tried to install from inside MagicMirror/modules so I would be easier for me to find with no luck and when I tried to use find to find it nothing was found. Not my cup of tea for sure.Thought if there is a way to run your script manually I would then just incorperate that into a cron job and be done with it.
The module I am running autodimmer still glows at night and you can see the modules faintly in the background…