<?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[How to run two instances of one module?]]></title><description><![CDATA[<p dir="auto">eya guys,</p>
<p dir="auto">So I found a perfect module to manage my hue-lights: <a href="https://skillminegames.com/does-cryptocurrency-have-effect-on-crypto-casino/" target="_blank" rel="noopener noreferrer nofollow ugc">Crypto Casino</a></p>
<p dir="auto">But since I have my rooms spread out across two hue bridges I cant display all my rooms.</p>
<p dir="auto">This is going to sound so stupid, but I tried renaming all the instances of the modules name in order to make another bridge config possible.<br />
It did work, kinda - but the renamed module acts weird and prompts the HUE API until it gives up after a couple of minutes. It also causes a memory leak which leads MM to crash after a couple of minutes.</p>
<p dir="auto">Help would be very much appreciated!</p>
]]></description><link>https://forum.magicmirror.builders/topic/10982/how-to-run-two-instances-of-one-module</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 16:37:48 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10982.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Aug 2019 09:28:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to run two instances of one module? on Sun, 18 Aug 2019 01:11:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qu1que" aria-label="Profile: qu1que">@<bdi>qu1que</bdi></a> said in <a href="/post/60185">How to run two instances of one module?</a>:</p>
<blockquote>
<p dir="auto">Thanks! Now it works perfect!!</p>
</blockquote>
<p dir="auto">Excellent! :thumbsup:</p>
]]></description><link>https://forum.magicmirror.builders/post/60186</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60186</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Sun, 18 Aug 2019 01:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to run two instances of one module? on Sun, 18 Aug 2019 01:09:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a></p>
<p dir="auto">Thanks! Now it works perfect!!</p>
]]></description><link>https://forum.magicmirror.builders/post/60185</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60185</guid><dc:creator><![CDATA[qu1que]]></dc:creator><pubDate>Sun, 18 Aug 2019 01:09:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to run two instances of one module? on Sun, 18 Aug 2019 00:31:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qu1que" aria-label="Profile: qu1que">@<bdi>qu1que</bdi></a></p>
<p dir="auto">Clone <a href="https://github.com/lavolp3/MMM-ComicStrips" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/lavolp3/MMM-ComicStrips</a> into modules folder.<br />
Copy and paste that folder, renaming it to MMM-ComicStrips2<br />
Open MMM-ComicStrips2 folder and rename MMM-ComicStrips.js to MMM-ComicStrips2.js<br />
Open MMM-ComicStrips2.js file and change line 1 to <code>Module.register("MMM-ComicStrips2", {</code></p>
<p dir="auto">Make config.js entry</p>
<pre><code>{
    module: 'MMM-ComicStrips',
    position: 'top_center',
    config: {
      comic: "dilbert",         // Choose between  ["dilbert", "xkcd", "garfield", "peanuts", "nichtlustig", "ruthe", "dilbert_de"]
      updateInterval : 1000 * 60 * 30,  // 30 minutes
      coloredImage: false,      //colored or black&amp;white (inverted) image
      comicWidth: 500,
      timeForDaily: [7, 9]    //time frame to show the most recent (or daily) comic.
    }
  },
  {
    module: 'MMM-ComicStrips2',
    position: 'middle_center',
    config: {
      comic: "garfield",         // Choose between  ["dilbert", "xkcd", "garfield", "peanuts", "nichtlustig", "ruthe", "dilbert_de"]
      updateInterval : 1000 * 60 * 30,  // 30 minutes
      coloredImage: false,      //colored or black&amp;white (inverted) image
      comicWidth: 500,
      timeForDaily: [7, 9]    //time frame to show the most recent (or daily) comic.
    }
  },
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1566088219751-screenshot-from-2019-08-17-20-21-53.png" alt="0_1566088219125_Screenshot from 2019-08-17 20-21-53.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/60184</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60184</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Sun, 18 Aug 2019 00:31:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to run two instances of one module? on Sat, 17 Aug 2019 14:26: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></p>
<p dir="auto">Hi, the same happens to me with <a href="https://github.com/lavolp3/MMM-DailyDilbert" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/lavolp3/MMM-DailyDilbert</a> module. I’ve tried to use two instances of the same module, one with Dilbert, and another with Garfield comic. For that, I’ve git cloned one time the module, change name to MMM-DailyDilbert_Dilbert, git clone again and rename MMM-DailyDilbert_Garfield. Added two tricky-modules to config.js, each one with its own configuration, but doesn’t work, does not show any module or just show only one…</p>
]]></description><link>https://forum.magicmirror.builders/post/60173</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60173</guid><dc:creator><![CDATA[qu1que]]></dc:creator><pubDate>Sat, 17 Aug 2019 14:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to run two instances of one module? on Sat, 17 Aug 2019 11:14:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrewescobar" aria-label="Profile: AndrewEscobar">@<bdi>AndrewEscobar</bdi></a> typically, you copy the module to another folder name, mmm-hue-lights1,<br />
then edit the mmm-hue-lights.js and chaneg the name there to mmm-hue-lights1, then rename that file to mmm-hue-lights1.js</p>
<p dir="auto">then in the config use the module: ‘mmm-hue-lights1’</p>
<p dir="auto">but, some modules think there will be only one instance, and find and edit the single copy of the html<br />
and of course the api usage may have limits too…</p>
]]></description><link>https://forum.magicmirror.builders/post/60169</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60169</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 17 Aug 2019 11:14:01 GMT</pubDate></item></channel></rss>