<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cron Job Question]]></title><description><![CDATA[<p dir="auto">Within terminal these work flawlessly.</p>
<p dir="auto">vcgencmd display_power 0 to turn off</p>
<p dir="auto">vcgencmd display_power 1 to turn on</p>
<p dir="auto">However my cron job isn’t turning my monitor back on. Any suggestions? This is my cron job</p>
<p dir="auto">0 14 * * * root /usr/bin/vcgencmd display_power 1 &gt;/del/null 2&gt;&amp;1</p>
<p dir="auto">0 23 * * * root /usr/bin/vcgencmd display_power 0 &gt;/dev/null 2&gt;&amp;1</p>
<p dir="auto">Am I missing something?</p>
]]></description><link>https://forum.magicmirror.builders/topic/16967/cron-job-question</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 03:47:52 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16967.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Jul 2022 23:16:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 09:00:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nneuland" aria-label="Profile: Nneuland">@<bdi>Nneuland</bdi></a></p>
<p dir="auto">Just a small remark: /<strong>del</strong>/null is a typo.<br />
When off works,  then on will work when you change to /<strong>dev</strong>/null.<br />
Unless it is right on your system and the typo is in your thread.</p>
]]></description><link>https://forum.magicmirror.builders/post/102770</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102770</guid><dc:creator><![CDATA[evroom]]></dc:creator><pubDate>Sun, 10 Jul 2022 09:00:21 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 22:45:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> yes, but just call my script with</p>
<p dir="auto">ended<br />
(motion stopped)<br />
started<br />
(motion started)</p>
<p dir="auto">same as my doc says for the motion config</p>
]]></description><link>https://forum.magicmirror.builders/post/102876</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102876</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 15 Jul 2022 22:45:53 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 20:09:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/102851">Cron Job Question</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> autoreconfig?</p>
<p dir="auto">u don’t have to build motion, they have binaries (on every platform I’ve tried so far)</p>
<p dir="auto">my script (launched by something outside mm)<br />
creates an empty file in a known folder for each motion event</p>
<p dir="auto">detected<br />
ended</p>
<p dir="auto">my module node_helper watches for those files to be created, and then sends notification to my module side to signal sleep or wake depending on the config.</p>
<p dir="auto">the default folder is ‘motion’ inside the MMM-SleepWake folder</p>
<p dir="auto">the script locates the running mm instance, and uses it’s path to locate the module folder and this it’s motion folder</p>
<p dir="auto">the script assumes the path includes the username mm is running under and that username is used to set file permissions, so the module can remove them after processing the detection</p>
</blockquote>
<p dir="auto">So if I send a empty file    ended    to the  motion folder in MMM-SleepWake   that triggers the timer in config.js to blank screen?<br />
and  then in the morning send empty file detected to the same motion folder  in  MMM-SleepWake  it should turn the modules back on.<br />
Have I got this correct in my head or am I still wondering at sea?</p>
]]></description><link>https://forum.magicmirror.builders/post/102875</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102875</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Fri, 15 Jul 2022 20:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 17:24:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Ok that is what I was wondering.   I am playing with it now.  I WILL figure it out.   I like the idea of it being blank we have enough ambient light from out side.  (night time porch lights,  I live out in the sticks.) for security lighting…</p>
]]></description><link>https://forum.magicmirror.builders/post/102871</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102871</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Fri, 15 Jul 2022 17:24:36 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 17:07:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> yes  logitech USB webcam.</p>
<p dir="auto">just works</p>
<p dir="auto">I fiddled w delay, and some light flash settings but thing else…</p>
]]></description><link>https://forum.magicmirror.builders/post/102870</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102870</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 15 Jul 2022 17:07:35 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 17:06:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nneuland" aria-label="Profile: Nneuland">@<bdi>Nneuland</bdi></a><br />
Exactly and I have dimmer max set to 1 which should in my understanding blank the screen.   It used to but since my reinstall of MagicMirror and all modules it does not seem to work correctly.  I am in the process of removing it and reinstalling the dimmer module, to see if that is my problem…   It also starts dimming 2 hours early but changing the dim timer has no effect.  The reason for removal and reinstall today…</p>
]]></description><link>https://forum.magicmirror.builders/post/102869</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102869</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Fri, 15 Jul 2022 17:06:20 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 16:38:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> for me</p>
<p dir="auto">sudo apt install motion</p>
<p dir="auto">was all I needed</p>
]]></description><link>https://forum.magicmirror.builders/post/102867</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102867</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 15 Jul 2022 16:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 12:40:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nneuland" aria-label="Profile: Nneuland">@<bdi>Nneuland</bdi></a> however, in many cases u cannot turn off the actual monitor… only HDMI port… which then puts up a NO INPUT message, til it powers off (energy star compliant)</p>
<p dir="auto">I cannot turn off any of mine, so I hide modules instead, but get a glow… (my nightlight)</p>
]]></description><link>https://forum.magicmirror.builders/post/102854</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102854</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 15 Jul 2022 12:40:30 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 12:21:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a></p>
<p dir="auto">If I understand you correctly the dimmer is dimming the modules, but the monitor is still giving off light.  A cron job set to turn on/off the monitor at specific times is what you’re looking for.</p>
]]></description><link>https://forum.magicmirror.builders/post/102853</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102853</guid><dc:creator><![CDATA[Nneuland]]></dc:creator><pubDate>Fri, 15 Jul 2022 12:21:13 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Fri, 15 Jul 2022 12:10:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> autoreconfig?</p>
<p dir="auto">u don’t have to build motion, they have binaries (on every platform I’ve tried so far)</p>
<p dir="auto">my script (launched by something outside mm)<br />
creates an empty file in a known folder for each motion event</p>
<p dir="auto">detected<br />
ended</p>
<p dir="auto">my module node_helper watches for those files to be created, and then sends notification to my module side to signal sleep or wake depending on the config.</p>
<p dir="auto">the default folder is ‘motion’ inside the MMM-SleepWake folder</p>
<p dir="auto">the script locates the running mm instance, and uses it’s path to locate the module folder and this it’s motion folder</p>
<p dir="auto">the script assumes the path includes the username mm is running under and that username is used to set file permissions, so the module can remove them after processing the detection</p>
]]></description><link>https://forum.magicmirror.builders/post/102851</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102851</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 15 Jul 2022 12:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Thu, 14 Jul 2022 15:32:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
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.</p>
<p dir="auto">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.<br />
The module I am running autodimmer still glows at night and you can see the modules faintly in the background…</p>
]]></description><link>https://forum.magicmirror.builders/post/102834</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102834</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Thu, 14 Jul 2022 15:32:29 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Thu, 14 Jul 2022 02:43:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> I use the GitHub motion project to handle the camera and motion detection.<br />
<a href="https://github.com/Motion-Project/motion" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Motion-Project/motion</a><br />
( I didn’t want to learn how to manage the camera too)</p>
<p dir="auto">it signals motion start and end.<br />
the library provides tons of config options and supports just about every camera.</p>
<p dir="auto">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.</p>
<p dir="auto">you could use the script I provide in the cron job to signal wake up or go to sleep on a timed schedule</p>
]]></description><link>https://forum.magicmirror.builders/post/102829</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102829</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 14 Jul 2022 02:43:12 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Thu, 14 Jul 2022 02:31:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Is there a way to run this as a cron job to black out the screen then in the morning un black the screen?<br />
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…</p>
]]></description><link>https://forum.magicmirror.builders/post/102827</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102827</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Thu, 14 Jul 2022 02:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 17:26:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evroom" aria-label="Profile: evroom">@<bdi>evroom</bdi></a></p>
<p dir="auto">Good eye.  And yes! This was the issue.  Thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/102776</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102776</guid><dc:creator><![CDATA[Nneuland]]></dc:creator><pubDate>Sun, 10 Jul 2022 17:26:22 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 09:27:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evroom" aria-label="Profile: evroom">@<bdi>evroom</bdi></a> good catch!</p>
]]></description><link>https://forum.magicmirror.builders/post/102771</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102771</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 10 Jul 2022 09:27:59 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 09:00:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nneuland" aria-label="Profile: Nneuland">@<bdi>Nneuland</bdi></a></p>
<p dir="auto">Just a small remark: /<strong>del</strong>/null is a typo.<br />
When off works,  then on will work when you change to /<strong>dev</strong>/null.<br />
Unless it is right on your system and the typo is in your thread.</p>
]]></description><link>https://forum.magicmirror.builders/post/102770</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102770</guid><dc:creator><![CDATA[evroom]]></dc:creator><pubDate>Sun, 10 Jul 2022 09:00:21 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 04:44:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
I will give that a try next rainy day we have.<br />
I like to try things like that module on my raining can’t do anything outside days…</p>
]]></description><link>https://forum.magicmirror.builders/post/102767</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102767</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Sun, 10 Jul 2022 04:44:18 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 04:08:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> I use a webcam for motion and also hide modules instead of turn off the display</p>
<p dir="auto">using my Sleep wake module<br />
<a href="https://github.com/sdetweil/MMM-SleepWake" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MMM-SleepWake</a></p>
]]></description><link>https://forum.magicmirror.builders/post/102766</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102766</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 10 Jul 2022 04:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 03:20:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nneuland" aria-label="Profile: Nneuland">@<bdi>Nneuland</bdi></a><br />
My Old Cronjob was like this.<br />
00 07 * * 1-5 /home/pi/hdmi-on.sh<br />
45 21 * * 1-5 /home/pi/hdmi-off.sh<br />
00 07 * * 6,0 /home/pi/hdmi-on.sh<br />
00 22 * * 6,0 /home/pi/hdmi-off.sh</p>
<p dir="auto"><a href="http://hdmi-off.sh" target="_blank" rel="noopener noreferrer nofollow ugc">hdmi-off.sh</a>  file contains :<br />
vcgencmd display_power 0</p>
<p dir="auto"><a href="http://hdmi-on.sh" target="_blank" rel="noopener noreferrer nofollow ugc">hdmi-on.sh</a>  file contains:<br />
vcgencmd display_power 1</p>
<p dir="auto">Don’t forget to<br />
sudo chmod +x <a href="http://hdmi-off.sh" target="_blank" rel="noopener noreferrer nofollow ugc">hdmi-off.sh</a><br />
sudo chmod +x <a href="http://hdmi-on.sh" target="_blank" rel="noopener noreferrer nofollow ugc">hdmi-on.sh</a><br />
If you go this route.</p>
<p dir="auto">Now I use   MMM-AutoDimmer<br />
my setup in config.js it works great</p>
<pre><code>{
        disabled: false,
        module: "MMM-AutoDimmer",
        position: "fullscreen_above",
        header: "",
        // Don't change anything above this line
        config: {
        maxDim: 1,
        brightTime: 700,
        dimTime: 2130
              }
},

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/102763</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102763</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Sun, 10 Jul 2022 03:20:56 GMT</pubDate></item><item><title><![CDATA[Reply to Cron Job Question on Sun, 10 Jul 2022 00:13:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nneuland" aria-label="Profile: Nneuland">@<bdi>Nneuland</bdi></a> probably they don’t know what DISPLAY is set to</p>
<p dir="auto">take of the redirects  &gt;<br />
so u can see the errors in the cron log</p>
]]></description><link>https://forum.magicmirror.builders/post/102760</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102760</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 10 Jul 2022 00:13:07 GMT</pubDate></item></channel></rss>