<?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 can i toggle various destinations via transport module?]]></title><description><![CDATA[<p dir="auto">Hey guys, so far im having a blast configuring my mirror and adding features.  What i wanted to know is, has anyone created a module that will swap out 2 different destinations via the same module?  For example, i am using the localtransport module to display my subway times to work.  i wanted to add another destination, but i want to save space.  I tried using carousel but i failed. i want to configure it where i can toggle various different destinations (via touch) so i can easily toggle through my routes.    Granted I can just add the module several times,  but i need to conserve space.</p>
]]></description><link>https://forum.magicmirror.builders/topic/2662/how-can-i-toggle-various-destinations-via-transport-module</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 00:52:43 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2662.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 May 2017 15:26:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Wed, 31 May 2017 16:52:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a> said in <a href="/post/22207">How can i toggle various destinations via transport module?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mirror.master" aria-label="Profile: mirror.master">@<bdi>mirror.master</bdi></a> ah, so you got it to display two different instances of the module? Just Carousel doesn’t let you input those two instances because it requires a name?! Then I recommend using  <a href="https://github.com/tosti007/MMM-ProfileSwitcher" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-ProfileSwitcher</a> + <a href="https://github.com/Jopyth/MMM-Remote-Control" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-Remote-Control</a> and/or MMM-ModuleScheduler. Instead of having to provide a list of modules which form one “page”, you can assign every module a list of “pages” it should be displayed on. This eliminates the problem of modules being named the same / being duplicates.<br />
Just install ProfileSwitcher and RemoteControl, assign some “classes” (think of it as pages) to modules (e.g. “transport1” and “transport2” to the transport instances) and switch between them using URLs like <a href="https://forum.magicmirror.builders/topic/1402/mmm-profileswitcher-a-profile-user-layout-switching-module/52">here</a>. I guess ModuleScheduler isn’t necessary since ProfileSwitcher already comes with timing functionalities. Just mentioned for completeness.</p>
</blockquote>
<p dir="auto">ill try my best with all the info provided.  thank you, im honestly loving this mess i call my mirror</p>
]]></description><link>https://forum.magicmirror.builders/post/22230</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22230</guid><dc:creator><![CDATA[mirror.master]]></dc:creator><pubDate>Wed, 31 May 2017 16:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Wed, 31 May 2017 02:14:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mirror.master" aria-label="Profile: mirror.master">@<bdi>mirror.master</bdi></a> ah, so you got it to display two different instances of the module? Just Carousel doesn’t let you input those two instances because it requires a name?! Then I recommend using  <a href="https://github.com/tosti007/MMM-ProfileSwitcher" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-ProfileSwitcher</a> + <a href="https://github.com/Jopyth/MMM-Remote-Control" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-Remote-Control</a> and/or MMM-ModuleScheduler. Instead of having to provide a list of modules which form one “page”, you can assign every module a list of “pages” it should be displayed on. This eliminates the problem of modules being named the same / being duplicates.<br />
Just install ProfileSwitcher and RemoteControl, assign some “classes” (think of it as pages) to modules (e.g. “transport1” and “transport2” to the transport instances) and switch between them using URLs like <a href="https://forum.magicmirror.builders/topic/1402/mmm-profileswitcher-a-profile-user-layout-switching-module/52">here</a>. I guess ModuleScheduler isn’t necessary since ProfileSwitcher already comes with timing functionalities. Just mentioned for completeness.</p>
]]></description><link>https://forum.magicmirror.builders/post/22207</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22207</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Wed, 31 May 2017 02:14:41 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Wed, 31 May 2017 00:51:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a> i can run mmm-localtransport twice (same module, two different destinations) but what i was trying to do was have destination A show up on slide1 and Destination B show up on slide 2,  Since the module has one name i cant choose which way the module works for each slide, i can only carry over both destinations to both slides which defeats the purpose of me using carousel as a profile switch.   I did change change the module name when i duplicated it.  it would get stuck on loading even though i configured it.  I gave up on creating the module twice.  I will see if i can work with your additional pointers.  I do ok, but im not on the level of the rest of you guys lol.</p>
<p dir="auto">p.s i apologize for saying localtransport module.  i renamed mmm-localtransport to it lol</p>
]]></description><link>https://forum.magicmirror.builders/post/22205</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22205</guid><dc:creator><![CDATA[mirror.master]]></dc:creator><pubDate>Wed, 31 May 2017 00:51:11 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Tue, 30 May 2017 23:28:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mirror.master" aria-label="Profile: mirror.master">@<bdi>mirror.master</bdi></a> ah i see. I don’t think modules are meant to be used in form of multiple instances of the same module. For example, see the way <code>node_helper</code> is used (even when changing some names/parameters in config). Some modules may work with multiple instances of themselves, some don’t.</p>
<p dir="auto">The module you are talking about is <a href="https://github.com/CFenner/MMM-LocalTransport" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-LocalTransport</a>, correct? It’s not really clear by the term “localtransport module”. If I see correctly, you should be able to use multiple instances of this module just by adding it two times in the config file. If not, see below.</p>
<p dir="auto">As far as I understand, you already tried to copy the whole module under different name? In other words, you created a “new” module which does exactly same / has the same code as the one you want to use, but has a different name (folder named “newModule” -&gt; file named “newModule.js” -&gt; within the line <code>Module.register('newModule')</code>)?! This is definitely possible and should work unless the module itself uses some sort of API which restricts multiple accesses.</p>
<p dir="auto">Alternative way IF the module itself provides the option to set destinations via notifications (Note: MMM-LocalTransport doesn’t seem to offer that): use MMM-RemoteControl and/or MMM-ModuleScheduler to swap destinations by remote command and/or timing.<br />
IF it doesn’t, implement it yourself (and use together with the modules mentioned above). In most cases, it is not difficult: basically the following structure should apply</p>
<pre><code>notificationReceived: function(notification, payload) {
  if (notification==="SET_FROM_TO") {
    /* 1. set variable containing destination to new destination defined by payload;
     *     may be this.config.origin/this.config.destination or something
     * 2. make changes visible; probably by doing this.update() or this.updateDom();
     * So, for example for MMM_LocalTransport something like this should work:
     */
    this.config.origin = payload.origin;
    this.config.destination = payload.destination;
    this.update();
  }
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/22201</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22201</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Tue, 30 May 2017 23:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Tue, 30 May 2017 19:52:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a><br />
so i started using the carousel, and i have modules working except that i cannot run the localtransport module 2 different instances. For example i have no idea how to add the same module twice that will display 2 diff destinations for each slide.  i tried dulpicating the module under a different name and made the corresponding changes, however.  no bueno… lol there has to be a way to give each instance of localtransport  im running withing my config a unique name so i can run one instance in one slide and a another in the second.</p>
]]></description><link>https://forum.magicmirror.builders/post/22196</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22196</guid><dc:creator><![CDATA[mirror.master]]></dc:creator><pubDate>Tue, 30 May 2017 19:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Tue, 30 May 2017 15:48:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mirror.master" aria-label="Profile: mirror.master">@<bdi>mirror.master</bdi></a> You’re welcome! The information provided are rather general. Feel free to ask again, if you need more specific help.</p>
]]></description><link>https://forum.magicmirror.builders/post/22182</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22182</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Tue, 30 May 2017 15:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Tue, 30 May 2017 15:39:06 GMT]]></title><description><![CDATA[<p dir="auto">definitely going to check it out.  hope i can get a lead to solve my problem.  Thank you!</p>
]]></description><link>https://forum.magicmirror.builders/post/22180</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22180</guid><dc:creator><![CDATA[mirror.master]]></dc:creator><pubDate>Tue, 30 May 2017 15:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to How can i toggle various destinations via transport module? on Tue, 30 May 2017 15:34:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mirror.master" aria-label="Profile: mirror.master">@<bdi>mirror.master</bdi></a> Have a look <a href="https://forum.magicmirror.builders/topic/2530/multiple-pages-of-modules-using-css">here</a>. I don’t know how you want to trigger the swapping, but in general the possibilities described in the thread are the ways to go.</p>
]]></description><link>https://forum.magicmirror.builders/post/22179</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22179</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Tue, 30 May 2017 15:34:03 GMT</pubDate></item></channel></rss>