<?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[Create another config.js file]]></title><description><![CDATA[<p dir="auto">Hi, so for a project that I’m working on, I want to create multiple config.js files and name them like config1.js, config2.js and etc. But in order to open on of them (so like the config2.js for example)  while booting the MagicMirror, I need to change the path or the configuration that defaults it to config.js. Does anyone know how I can do that?</p>
]]></description><link>https://forum.magicmirror.builders/topic/11545/create-another-config-js-file</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 21:33:22 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11545.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Nov 2019 22:36:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create another config.js file on Thu, 07 Nov 2019 09:32:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bigman" aria-label="Profile: BigMan">@<bdi>BigMan</bdi></a>  said in <a href="/post/63958">Create another config.js file</a>:</p>
<p dir="auto">even easier!<br />
put all your configs into the config folder<br />
then just set which on to use</p>
<pre><code> #!/bin/bash
 # set my config 
 export MM_CONFIG_FILE=~/MagicMirror/config/config1.js
 # then call mm.sh
 exec ~/MagicMirror/installers/mm.sh
</code></pre>
<p dir="auto">thanks @strawberry-3-141</p>
]]></description><link>https://forum.magicmirror.builders/post/63968</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63968</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 07 Nov 2019 09:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to Create another config.js file on Thu, 07 Nov 2019 09:03:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bigman" aria-label="Profile: BigMan">@<bdi>BigMan</bdi></a> Since version <a href="https://github.com/MichMich/MagicMirror/blob/master/CHANGELOG.md#211---2017-04-01" target="_blank" rel="noopener noreferrer nofollow ugc">2.1.1</a> this is natively supported by MagicMirror²</p>
<p dir="auto"><code>Enable ability to set configuration file by the environment variable called MM_CONFIG_FILE.</code></p>
<p dir="auto">To test it you can run <code>MM_CONFIG_FILE=YOUR_PATH_TO_CONFIG_FILE npm start</code> in the terminal.</p>
]]></description><link>https://forum.magicmirror.builders/post/63967</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63967</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Thu, 07 Nov 2019 09:03:40 GMT</pubDate></item><item><title><![CDATA[Reply to Create another config.js file on Thu, 07 Nov 2019 00:22:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bigman" aria-label="Profile: BigMan">@<bdi>BigMan</bdi></a> create a folder called ~/MagicMirror/myConfigs<br />
place you config1, config2 … confign…js in there</p>
<p dir="auto">MM starts with a script  installers/mm.sh (or u can create your own)</p>
<p dir="auto">anyhow…</p>
<p dir="auto">lets create <a href="http://run1.sh" target="_blank" rel="noopener noreferrer nofollow ugc">run1.sh</a> in installers</p>
<pre><code>#!/bin/bash
# copy my config.js into the folder with the required name
cp ~/MagicMirror/myConfigs/config1.js ~/MagicMirror/config/config.js
# then call mm.sh
exec ~/MagicMirror/installers/mm.sh
</code></pre>
<p dir="auto">then after saving, do</p>
<pre><code>chmod +x run1.sh
</code></pre>
<p dir="auto">then whenever u want to run MM with config1</p>
<p dir="auto">just do</p>
<pre><code>~/MagicMirror/installers/run1.sh
</code></pre>
<p dir="auto">u can shorten the commands if u are in the MagicMirror folder at the time…</p>
<p dir="auto">create as many run?.sh as u need</p>
<p dir="auto">I might save the original config.js in your folder too</p>
]]></description><link>https://forum.magicmirror.builders/post/63958</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63958</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 07 Nov 2019 00:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to Create another config.js file on Wed, 06 Nov 2019 23:59:20 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> can you please elaborate more on your response. If you can, with examples too. Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/63957</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63957</guid><dc:creator><![CDATA[BigMan]]></dc:creator><pubDate>Wed, 06 Nov 2019 23:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Create another config.js file on Wed, 06 Nov 2019 23:41:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bigman" aria-label="Profile: BigMan">@<bdi>BigMan</bdi></a> I would create different scripts, and copy your specific config.js into the config folder as config.js.</p>
]]></description><link>https://forum.magicmirror.builders/post/63955</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63955</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 06 Nov 2019 23:41:18 GMT</pubDate></item></channel></rss>