<?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[Show some modules and config in Holidays]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I wish I could display the modules and their configuration depending on whether we are on vacation or not.</p>
<p dir="auto">For example, I use the AlarmClock module, some alarms are specific to the school period. So, these are of no use during the holidays.</p>
<p dir="auto">Has anyone already configured such a configuration?</p>
]]></description><link>https://forum.magicmirror.builders/topic/8993/show-some-modules-and-config-in-holidays</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 12:57:37 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8993.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Oct 2018 23:07:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Show some modules and config in Holidays on Mon, 29 Oct 2018 23:39:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ybbet" aria-label="Profile: ybbet">@<bdi>ybbet</bdi></a><br />
But if your case be somehow regularly, you could make some script or program to compose and encode “config.js” file from some defined structure with python or any other language.<br />
Basically, config.js is some kind of JSON object(or like-something), So you can prepare one template object, and manipulate the object with your purpose by condition. Then write it into config.js file.</p>
]]></description><link>https://forum.magicmirror.builders/post/46096</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/46096</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 29 Oct 2018 23:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to Show some modules and config in Holidays on Mon, 29 Oct 2018 23:31:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ybbet" aria-label="Profile: ybbet">@<bdi>ybbet</bdi></a><br />
As I know, MM doesn’t have a feature - dynamic runtime configuration or conditional( or modular) config loading. So I think that might be the easiest (?) way.</p>
]]></description><link>https://forum.magicmirror.builders/post/46095</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/46095</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 29 Oct 2018 23:31:17 GMT</pubDate></item><item><title><![CDATA[Reply to Show some modules and config in Holidays on Mon, 29 Oct 2018 22:51:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">This is exactly the answer I put in place. I wanted to know if there was a simpler solution to not multiply the config files. And so, avoid mistakes and forgetfulness.</p>
<pre><code>@daily bash ~/tools/disk_usage.sh &gt;&gt; /tmp/cron_log.txt
0 0 * * * cd /home/pi/magicmirror_config; git checkout ./ ; git pull &gt;&gt; /tmp/cron_log.txt
5 0 * * * bash /home/pi/magicmirror_config/update_files_config.sh &gt;&gt; /tmp/cron_log.txt
10 0 * * * cd /home/pi/; pm2 restart mm.sh &gt;&gt; /tmp/cron_log.txt
@monthly sudo reboot
15 0 * * * mail -s "MagicPi : cron rapport" test@example.tld &lt; /tmp/cron_log.txt; rm /tmp/cron_log.txt

###############
# Summer holidays : 7 july
30 0 8 7 * cd /home/pi/MagicMirror/config/; rm -rf config.js; ln -s /home/pi/magicmirror_config/config_vac_centre.js config.js; pm2 restart mm
# The boys
30 0 6 8 * cd /home/pi/MagicMirror/config/; rm -rf config.js; ln -s /home/pi/magicmirror_config/config_vac_salome_centre.js config.js; pm2 restart mm
# First boy come back to home
30 0 14 8 * cd /home/pi/MagicMirror/config/; rm -rf config.js; ln -s /home/pi/magicmirror_config/config_vac_salome_1garcon_centre.js config.js; pm2 restart mm
# The last boy come back to home
30 0 24 8 * cd  /home/pi/MagicMirror/config/; rm -rf config.js; ln -s /home/pi/magicmirror_config/config_vac_centre.js config.js; pm2 restart mm
# 3 september
30 0 3 9 * cd /home/pi/MagicMirror/config/; rm -rf config.js; ln -s /home/pi/magicmirror_config/config.js config.js; pm2 restart mm

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/46094</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/46094</guid><dc:creator><![CDATA[Ybbet]]></dc:creator><pubDate>Mon, 29 Oct 2018 22:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to Show some modules and config in Holidays on Sun, 28 Oct 2018 23:25:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ybbet" aria-label="Profile: ybbet">@<bdi>ybbet</bdi></a><br />
I think it is possible with crontab or some simple scripts. Prepare several config files(config_weekday.js, config_holiday.js, config_sunday.js, etc.) then make a script or cron job to copy one of them to config.js by condition. Add cronjob to restart every 0am with new configuration.</p>
]]></description><link>https://forum.magicmirror.builders/post/46043</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/46043</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 28 Oct 2018 23:25:13 GMT</pubDate></item></channel></rss>