<?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[MMM-MyCommute has delay]]></title><description><![CDATA[<p dir="auto">Hi,<br />
i’m having a little problem with MMM-MyCommute:</p>
<p dir="auto">The dates and times when it should be displayed are configured as in the text below,<br />
but it is never display at the specified time. It is always delayed by about 10 - 15 minutes.<br />
iE it should show up at 22:00 but is displayed at about 22:13,<br />
it should be closed at 23:00 but keeps being displayed until about 23:09<br />
But when i then restart the MM or Raspberry at 22:03 or so, everything is displayed correctly.<br />
is there any kind of missing refresh or time between refresh to long?<br />
Any other ideas?<br />
Thanks for you help</p>
<pre><code>{
                     module: 'MMM-MyCommute',
                     position: 'bottom_left',
                     header: 'Traffic',
                     config: {
                        apikey: 'key',
                        origin: 'Home',
                        startTime: '00:00',
                        endTime: '23:59',
                        moderateTimeThreshold: 1.1,
                        poorTimeThreshold: 1.3,
                        hideDays: [],
                        destinations: [
                          {
                            destination: 'Dest1',
                            label: 'Dest1',
                            colorCodeTravelTime: true,
                            hideDays: [6,0],
                            startTime: '08:30',
                            endTime: '09:20',
                          },
                          {
                            destination: 'Dest2',
                            label: 'Dest2',
                            hideDays: [1,2,4,5,0],
                            startTime: '22:00',
                            endTime: '23:00',
                          }
                        ]
                      }
                    },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/6829/mmm-mycommute-has-delay</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 13:53:29 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6829.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Mar 2018 22:08:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-MyCommute has delay on Sun, 25 Mar 2018 16:57:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zambuca" aria-label="Profile: Zambuca">@<bdi>Zambuca</bdi></a> the Rapsberry Pi is notoriously bad about keeping time, and Javascript timers over time don’t fare much better.</p>
<p dir="auto">To mitigate this, first install NTP to make sure your Raspberry Pi syncs with an online TV service periodically. Next, I suggest setting a cron job to restart MagicMirror maybe each night when you’re asleep to reset JavaScript timers.</p>
<p dir="auto">This won’t get rid of the problem entirely, as you’ll still be at the whim of the refresh cycle of the module — if the module is set to refresh it’s data every five minutes, the show/hide can be off by as much as five minutes. The show/hide check is done during data refresh.</p>
]]></description><link>https://forum.magicmirror.builders/post/37413</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37413</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Sun, 25 Mar 2018 16:57:02 GMT</pubDate></item></channel></rss>