<?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[Sleep for updatenotification loop -- Help with JS needed]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I’m running MM on a PiZero, which has a comparable small amount of memory and to have a long lasting SD card, I put some tmp directories in memory and disabled swap. It works fine, however, once the update process of the default updatenotification module starts, I quickly run out of memory and the browser crashes. By changing the updateinterval, I verified that it is indeed due to the updatenotification module. I think this is because all modules are checked at the same time.  I’ve 10 installed modules plus the default ones. All these parallel update processes consume quite some memory.</p>
<p dir="auto">I think I found the responsible loop “for (moduleName in modules)” in MagicMirror/modules/default/updatenotification/node_helper.js</p>
<p dir="auto">However I didn’t manage to put in some sleep command between each execution of the items in the loop. My knowledge of JS is very limited and I was not able to adapt the code examples found here <a href="https://stackoverflow.com/questions/3583724" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/3583724</a> to the MM code. I hope that somebody of you can help me with this issue.</p>
<p dir="auto">For me a hard coded sleep time would be totally fine, but of course an official change with a parameter that can be changed in the config file (or an option, that would make the different simpleGits run one after each other) would be even better.</p>
<p dir="auto">Already many thanks for your help!</p>
]]></description><link>https://forum.magicmirror.builders/topic/6908/sleep-for-updatenotification-loop-help-with-js-needed</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 03:57:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6908.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Apr 2018 00:19:08 GMT</pubDate><ttl>60</ttl></channel></rss>