<?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[2 problems with MMM-MyCommute module]]></title><description><![CDATA[<p dir="auto">Brief bit of background.</p>
<p dir="auto">I have 2 offices that I go to. One is about a mile from where I live and I have 4 ways to get to there (walking, tram, train or bus). The other is about 30 miles away with a couple of alternative driving routes. Depending on which office I’m going to (and whether I want to walk or take public transport), I want the module to show me what is likely to be the best option to get to each of the specific offices.</p>
<p dir="auto">This is where I have 2 problems I’m trying to resolve and could do with some help.</p>
<ol>
<li>
<p dir="auto">For driving, I never have anything but a “green” commuting time (ie, it never goes yellow or red for delays, even when adjusted to 1% and 5% delay thresholds)</p>
</li>
<li>
<p dir="auto">For the closer office I can’t get the alternative transit modes to work (ie, train, tram, bus etc). If I specify anything within the <em><strong>transitMode</strong></em> option, I get <strong>Error</strong> displayed in the module. If I just use <em><strong>transit</strong></em> (with no transitmode) it works fine, although I can’t then pick which mode of transit to use.</p>
</li>
</ol>
<p dir="auto">My code is below (API is edited out, as are home &amp; work postal codes - the rest is cut and paste)</p>
<pre><code>{
	module: 'MMM-MyCommute',
	header: "Work Commute",
	position: 'bottom_right',
	config: {
		api_key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
		origin: 'Home Postal Code',
		showSummary: true,
		startTime: '00:00',
		endTime: '23:59',
		colorCodeTravelTime: true,
		moderateTimeThreshold: 1.01,
		poorTimeThreshold: 1.05,
		destinations: [
			{
			destination: 'Work  1 Postal Code', // Farther office, by car, alternatives on
			label: 'Office 1',
			color: '#1E90FF', //Blue
			alternatives: true,
			},
			{
			destination: 'Work  2 Postal Code', // Closer office, walking, alternatives off
			label: 'Office 2 - Walking',
			mode: 'walking',
			color: '#98FB98', // Green
			alternatives: false,
			},
			{
			destination: 'Work 2 Postal Code',
			label: 'Office 2 - Train',
			mode: 'transit',
			transitMode: 'train',
			showNextVehicleDeparture: true,
			color: '#ffff00', //Yellow
			alternatives: false,
			},
			{
			destination: 'Work 2 Postal Code,
			label: 'Office 2 - Tram',
			mode: 'transit',
			transitMode: 'tram',
			showNextVehicleDeparture: true,
			color: '#ffff00', //Yellow
			alternatives: false,
			},
			{
			destination: 'Work 2 Postal Code,
			label: 'Office 2 - Bus',
			mode: 'transit',
			transitMode: 'bus',
			showNextVehicleDeparture: true,
			color: '#ffff00', //Yellow
			alternatives: false,
			},
			]
	},
},
</code></pre>
<p dir="auto">I’ve tried all sorts of editing, using both single and double quotes, and am using Geany to check the syntax (which I believe is correct)</p>
<p dir="auto">Any ideas ?</p>
]]></description><link>https://forum.magicmirror.builders/topic/4725/2-problems-with-mmm-mycommute-module</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 08:25:13 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4725.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Aug 2017 12:34:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Fri, 23 Mar 2018 03:13:52 GMT]]></title><description><![CDATA[<p dir="auto">this helped immensely. i got my MM exactly where i want it now and can cancel CTATracker. sorry for being a nub</p>
]]></description><link>https://forum.magicmirror.builders/post/37330</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37330</guid><dc:creator><![CDATA[shakir]]></dc:creator><pubDate>Fri, 23 Mar 2018 03:13:52 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Tue, 03 Oct 2017 15:51:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/j.e.f.f" aria-label="Profile: j.e.f.f">@<bdi>j.e.f.f</bdi></a> Thanks Jeff, problem solved, and everything now works. Typical that Google allows you to use the API without a valid key, and doesn’t error out to say it’s not a valid entry :(</p>
<p dir="auto">Oh for the good old days of 2 word *nix error messages that required a manual the size of war and peace to troubleshoot…but at least you knew there was an error ! :)</p>
]]></description><link>https://forum.magicmirror.builders/post/28940</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/28940</guid><dc:creator><![CDATA[Bob]]></dc:creator><pubDate>Tue, 03 Oct 2017 15:51:51 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Fri, 29 Sep 2017 13:12:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob" aria-label="Profile: Bob">@<bdi>Bob</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/knubbl" aria-label="Profile: knubbl">@<bdi>knubbl</bdi></a> The issue is that the config has <code>api_key: "..."</code>.  It should be <code>apikey: "..."</code> (no underscore)</p>
]]></description><link>https://forum.magicmirror.builders/post/28675</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/28675</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Fri, 29 Sep 2017 13:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Sun, 17 Sep 2017 17:40:56 GMT]]></title><description><![CDATA[<p dir="auto">I got the same problem. So im really interested what is the problem and how to fix.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/28188</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/28188</guid><dc:creator><![CDATA[knubbl]]></dc:creator><pubDate>Sun, 17 Sep 2017 17:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Thu, 07 Sep 2017 22:33:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob" aria-label="Profile: Bob">@<bdi>Bob</bdi></a> I’m the author of this module.  Can you send me a private message? I’ll see if I can figure out what’s going on.</p>
]]></description><link>https://forum.magicmirror.builders/post/27771</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27771</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Thu, 07 Sep 2017 22:33:10 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Thu, 07 Sep 2017 17:07:10 GMT]]></title><description><![CDATA[<p dir="auto">I’m guessing no-one has any other ideas ? I wondered if there was a conflict with any other modules, so I’ve done a full rebuild of the RPi, stripped the config to just this module, and it still doesn’t work properly.</p>
<p dir="auto">Ho hum</p>
]]></description><link>https://forum.magicmirror.builders/post/27759</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27759</guid><dc:creator><![CDATA[Bob]]></dc:creator><pubDate>Thu, 07 Sep 2017 17:07:10 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Wed, 30 Aug 2017 09:20:36 GMT]]></title><description><![CDATA[<p dir="auto">@strawberry-3-141 I saw that, and fixed it (just not in my post)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> I cut and pasted your code (adjusted the API key and the postal codes), and still get the same error (as per previous screenshot)</p>
]]></description><link>https://forum.magicmirror.builders/post/27256</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27256</guid><dc:creator><![CDATA[Bob]]></dc:creator><pubDate>Wed, 30 Aug 2017 09:20:36 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Wed, 30 Aug 2017 07:54:41 GMT]]></title><description><![CDATA[<pre><code>{
	module: 'MMM-MyCommute',
	header: "Work Commute",
	position: 'bottom_right',
	config: {
		api_key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
		origin: 'Home Postal Code',
		showSummary: true,
		startTime: '00:00',
		endTime: '23:59',
		colorCodeTravelTime: true,
		moderateTimeThreshold: 1.01,
		poorTimeThreshold: 1.05,
		destinations: [
			{
			destination: 'Work  1 Postal Code', // Farther office, by car, alternatives on
			label: 'Office 1',
			color: '#1E90FF', //Blue
			alternatives: true,
			},
			{
			destination: 'Work  2 Postal Code', // Closer office, walking, alternatives off
			label: 'Office 2 - Walking',
			mode: 'walking',
			color: '#98FB98', // Green
			alternatives: false,
			},
			{
			destination: 'Work 2 Postal Code',
			label: 'Office 2 - Train',
			mode: 'transit',
			transitMode: 'train',
			showNextVehicleDeparture: true,
			color: '#ffff00', //Yellow
			alternatives: false,
			},
			{
			destination: 'Work 2 Postal Code',
			label: 'Office 2 - Tram',
			mode: 'transit',
			transitMode: 'tram',
			showNextVehicleDeparture: true,
			color: '#ffff00', //Yellow
			alternatives: false,
			},
			{
			destination: 'Work 2 Postal Code',
			label: 'Office 2 - Bus',
			mode: 'transit',
			transitMode: 'bus',
			showNextVehicleDeparture: true,
			color: '#ffff00', //Yellow
			alternatives: false,
			}
		]
	},
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/27249</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27249</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Wed, 30 Aug 2017 07:54:41 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Tue, 29 Aug 2017 18:56:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob" aria-label="Profile: Bob">@<bdi>Bob</bdi></a> two times you have <code>destination: 'Work 2 Postal Code,</code> instead of <code>destination: 'Work 2 Postal Code',</code></p>
]]></description><link>https://forum.magicmirror.builders/post/27233</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27233</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Tue, 29 Aug 2017 18:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Tue, 29 Aug 2017 10:22:16 GMT]]></title><description><![CDATA[<p dir="auto">This is what I get using the code above.</p>
<p dir="auto"><img src="/assets/uploads/files/1504002122553-mycommute-error.jpg" alt="0_1504002124877_MyCommute error.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/27203</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27203</guid><dc:creator><![CDATA[Bob]]></dc:creator><pubDate>Tue, 29 Aug 2017 10:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Tue, 29 Aug 2017 10:22:44 GMT]]></title><description><![CDATA[<p dir="auto">@strawberry-3-141 Where are there quotes missing ? I could only see a couple (which I’ve corrected in my first post). I edited the code to remove identifying info, so it should be ok now. Normally when there is a code error due to syntax (such as quotes), MM won’t even run.</p>
<p dir="auto">In this instance, I simply get a line error for the specific mode of transport.</p>
]]></description><link>https://forum.magicmirror.builders/post/27202</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27202</guid><dc:creator><![CDATA[Bob]]></dc:creator><pubDate>Tue, 29 Aug 2017 10:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to 2 problems with MMM-MyCommute module on Sun, 27 Aug 2017 19:13:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob" aria-label="Profile: Bob">@<bdi>Bob</bdi></a> I can spot multiple missing quotes</p>
]]></description><link>https://forum.magicmirror.builders/post/27144</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27144</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Sun, 27 Aug 2017 19:13:28 GMT</pubDate></item></channel></rss>