<?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[Module Update Question]]></title><description><![CDATA[<p dir="auto">I apologize in advance for the ignorance.</p>
<p dir="auto">When building a module, how do I periodically update a variable?  For example, let’s say I have a variable that is an array or list of files found on a share.  I have to fetch the list on start, how do I tell it to do it again in 10 minutes in case there has been a change?</p>
]]></description><link>https://forum.magicmirror.builders/topic/18173/module-update-question</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 07:47:25 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18173.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Nov 2023 16:54:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Module Update Question on Fri, 17 Nov 2023 14:52:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldrocker" aria-label="Profile: oldrocker">@<bdi>oldrocker</bdi></a> correct,… only for visual content change… MM doesn’t know anything else the modules does…</p>
]]></description><link>https://forum.magicmirror.builders/post/112596</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112596</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 17 Nov 2023 14:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to Module Update Question on Fri, 17 Nov 2023 14:47:59 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> If I understand you correctly, the call to the Dom is for the <strong>visual</strong> content update and not necessary after updating data the running module relies on unless that data is to be immediately displayed.</p>
]]></description><link>https://forum.magicmirror.builders/post/112595</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112595</guid><dc:creator><![CDATA[oldrocker]]></dc:creator><pubDate>Fri, 17 Nov 2023 14:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to Module Update Question on Fri, 17 Nov 2023 14:40:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldrocker" aria-label="Profile: oldrocker">@<bdi>oldrocker</bdi></a> the call to updateDom() tells MM runtime that your module has new/updated content,  and  the MM runtime will call your getDom() method to get that ‘new’ content to replace what is already displayed.</p>
]]></description><link>https://forum.magicmirror.builders/post/112594</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112594</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 17 Nov 2023 14:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to Module Update Question on Thu, 16 Nov 2023 19:14:47 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> I did it.</p>
<p dir="auto">Thanks for the help!</p>
]]></description><link>https://forum.magicmirror.builders/post/112582</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112582</guid><dc:creator><![CDATA[oldrocker]]></dc:creator><pubDate>Thu, 16 Nov 2023 19:14:47 GMT</pubDate></item><item><title><![CDATA[Reply to Module Update Question on Thu, 16 Nov 2023 18:59:58 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">Ok, that helps a little.  I’ll try some things with setInterval and come back again when I’m stuck.  I see a lot of examples where updateDom is included in the setInterval.  That just updates the config if necessary, correct?</p>
]]></description><link>https://forum.magicmirror.builders/post/112581</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112581</guid><dc:creator><![CDATA[oldrocker]]></dc:creator><pubDate>Thu, 16 Nov 2023 18:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to Module Update Question on Thu, 16 Nov 2023 17:41:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldrocker" aria-label="Profile: oldrocker">@<bdi>oldrocker</bdi></a> In JavaScript there are two timing functions</p>
<p dir="auto">setTimeout<br />
and<br />
setInterval</p>
<p dir="auto">both take a function to call<br />
and numbers of milliseconds before calling the function</p>
<p dir="auto">timeout calls once<br />
interval calls over and over</p>
<p dir="auto">each returns an if that can be used to cancel the time function</p>
]]></description><link>https://forum.magicmirror.builders/post/112578</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112578</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 16 Nov 2023 17:41:32 GMT</pubDate></item></channel></rss>