<?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[Stop Magic Mirror interface and Shutdown R Pi automatically at given timepoints]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">first, I m new to this and I am a total noob in programming and setting up stuff.<br />
Anyway, somehow I managed to build my own MM with the help of tutorials and guides from this site :)</p>
<p dir="auto">I m planning to shutdown my R Pi at different timepoints, for example every evening at 11 pm.<br />
I googled and I found out that I can do this using cronjob.</p>
<p dir="auto">To date, I manually stop my MM interface using the “pm2 stop mm” command in the console. This brings me back to the desktop. Then I shut down my R Pi using either the shutdown button in the R Pi Menu or by the shutdown command in the console.</p>
<p dir="auto">I m planning now to use a cronjob to shut down my R pi. Here s my problem:</p>
<p dir="auto">Do I have to stop my MM interface (using the “pm2 stop mm” command in the console) before I shut down my R pi with the cronjob? Will there be any errors occuring after next boot if the R pi just shuts down at 11 pm without stopping the Magic Mirror surface in advance?</p>
<p dir="auto">Or can I add to the cronjob that MM interface should stop, before executing the shutdown?<br />
I don´t know how to handle/set up this.</p>
<p dir="auto">Can you help please?</p>
<p dir="auto">Thanks and Best regards<br />
Lukas</p>
]]></description><link>https://forum.magicmirror.builders/topic/5574/stop-magic-mirror-interface-and-shutdown-r-pi-automatically-at-given-timepoints</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 14:41:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/5574.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Nov 2017 07:18:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stop Magic Mirror interface and Shutdown R Pi automatically at given timepoints on Thu, 23 Nov 2017 20:55:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jeff</p>
<p dir="auto">thanks for your reply and help!<br />
Now I will skip the stopping process and directly go for shutdown.</p>
<p dir="auto">Greetings<br />
Lukas</p>
]]></description><link>https://forum.magicmirror.builders/post/31531</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31531</guid><dc:creator><![CDATA[vortex]]></dc:creator><pubDate>Thu, 23 Nov 2017 20:55:34 GMT</pubDate></item><item><title><![CDATA[Reply to Stop Magic Mirror interface and Shutdown R Pi automatically at given timepoints on Thu, 23 Nov 2017 16:32:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vortex" aria-label="Profile: vortex">@<bdi>vortex</bdi></a> No need to stop MM if you are doing a full shutdown.  Whether you have MM managed by PM2 or are starting MM manually with <code>npm start</code>, the processes will be killed as part of the shutdown process.</p>
<p dir="auto">I’ve restarted or shut down my Mirror many times without stopping MM, and I have not run into any issues.</p>
]]></description><link>https://forum.magicmirror.builders/post/31519</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31519</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Thu, 23 Nov 2017 16:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Stop Magic Mirror interface and Shutdown R Pi automatically at given timepoints on Thu, 23 Nov 2017 13:52:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">after some more reading I constructed the following:</p>
<p dir="auto">sudo crontab -e</p>
<p dir="auto">Adding:<br />
55 7 * * 0-4 /pm2 stop mm         	<br />
(at 07:55 am quit Magicmirror , sundays - thursdays)<br />
0 8 * * 0-4 /sudo shutdown -h    	<br />
(at 08:00 am shutdown R Pi , sundays - thursdays)</p>
<p dir="auto">After shutdown:  Power off with timeclock</p>
<p dir="auto">Can anyone verify that this will work?</p>
<p dir="auto">Thank you very much</p>
<p dir="auto">Greetings<br />
Lukas</p>
]]></description><link>https://forum.magicmirror.builders/post/31516</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31516</guid><dc:creator><![CDATA[vortex]]></dc:creator><pubDate>Thu, 23 Nov 2017 13:52:03 GMT</pubDate></item></channel></rss>