<?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[Trouble with Sending Notifcation on Module Start]]></title><description><![CDATA[<p dir="auto">I am trying to get a feature to work that depends on the clock module broadcasting a notification upon start up.  I put a call to this.sendNotification() in the start()  function in clock.js, but it doesn’t appear like it is being executed.  Is there something subtle about the timing of modules being loaded so that the other modules is listening when the clock sends this notification?</p>
<p dir="auto">Also, I know there was a post somewhere about logging.  This is ten times harder than it should be because most/all of my log messages don’t seem to show up when I run: npm start dev.</p>
<p dir="auto">Thanks so much for your help.</p>
]]></description><link>https://forum.magicmirror.builders/topic/19530/trouble-with-sending-notifcation-on-module-start</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 21:56:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19530.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Mar 2025 01:22:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trouble with Sending Notifcation on Module Start on Fri, 14 Mar 2025 04:48:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raspberrypi9" aria-label="Profile: raspberrypi9">@<bdi>raspberrypi9</bdi></a> my pleasure,<br />
And actually DOM_OBJECTS_CREATED  means YOUR module’s content has been placed in the DOM the first time<br />
And DOM_OBJECTS_UPDATED is each time after that<br />
Because updateDom() is asynchronous now</p>
<p dir="auto">If you ever tried to document.getElementByID after getDom(),<br />
but it returned null. Then you needed to wait for one of those notifications</p>
]]></description><link>https://forum.magicmirror.builders/post/124867</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124867</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 14 Mar 2025 04:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with Sending Notifcation on Module Start on Fri, 14 Mar 2025 03:33:44 GMT]]></title><description><![CDATA[<p dir="auto">Thank you!</p>
]]></description><link>https://forum.magicmirror.builders/post/124866</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124866</guid><dc:creator><![CDATA[raspberrypi9]]></dc:creator><pubDate>Fri, 14 Mar 2025 03:33:44 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with Sending Notifcation on Module Start on Fri, 14 Mar 2025 04:40:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raspberrypi9" aria-label="Profile: raspberrypi9">@<bdi>raspberrypi9</bdi></a></p>
<p dir="auto">So, net, don’t send to other modules til after  ALL_MODULES_STARTED</p>
]]></description><link>https://forum.magicmirror.builders/post/124865</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124865</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 14 Mar 2025 04:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with Sending Notifcation on Module Start on Fri, 14 Mar 2025 01:48:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raspberrypi9" aria-label="Profile: raspberrypi9">@<bdi>raspberrypi9</bdi></a> all the modules aren’t ready yet</p>
<p dir="auto">That is what the ALL_MODULES_STARTED and<br />
DOM_OBJECTS_CREATED notifications  are for</p>
<p dir="auto">And all the modules start() functions are called one module at a time, so UNLESS the module you WANT to talk to is BEFORE YOUR module in config.js. It’s not even loaded yet</p>
]]></description><link>https://forum.magicmirror.builders/post/124862</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124862</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 14 Mar 2025 01:48:17 GMT</pubDate></item></channel></rss>