<?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[Notifications help]]></title><description><![CDATA[<p dir="auto">Trying to capture notifications for a module, can anyone tell me what’s wrong with this mai js, my objective for now is to capture the SHOW_ALERT notification and print it in the console log. Here is the mainjs</p>
<pre><code>Module.register("MMM-11-TTS", {
    start: function() {
        console.log(`Starting module: ${this.name}`);
    },

    notificationReceived: function(notification, payload) {
        if (notification === 'SHOW_ALERT') {
            console.log(`Received notification: ${notification}`);
            console.log(`Payload: ${payload}`);
        }
    }
});

</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/17623/notifications-help</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 02:03:17 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17623.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Feb 2023 03:59:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Notifications help on Mon, 13 Feb 2023 10:36:40 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><br />
Got it thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/107847</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107847</guid><dc:creator><![CDATA[sdmydbr9]]></dc:creator><pubDate>Mon, 13 Feb 2023 10:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to Notifications help on Sun, 12 Feb 2023 15:48:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdmydbr9" aria-label="Profile: sdmydbr9">@<bdi>sdmydbr9</bdi></a> I replied on discord</p>
]]></description><link>https://forum.magicmirror.builders/post/107829</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107829</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 12 Feb 2023 15:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Notifications help on Sun, 12 Feb 2023 05:10:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> I did that and it’s definitely my code, I can see the notification is being sent by the SHOW_ALERT but my module is not able to capture them, I tried different codes and hit mental block now.</p>
]]></description><link>https://forum.magicmirror.builders/post/107826</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107826</guid><dc:creator><![CDATA[sdmydbr9]]></dc:creator><pubDate>Sun, 12 Feb 2023 05:10:04 GMT</pubDate></item><item><title><![CDATA[Reply to Notifications help on Sun, 12 Feb 2023 05:06:24 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> well they match, the folder, the module name and module.js.<br />
The folder is MMM-11-TTS under the modules directory.<br />
Under that directory is MMM-11-TTS.js module. I have also specified the config.js to consider this module.<br />
The contents of the MMM-11-TTS.js posted earlier, is that correct or if there is anything missing, can you please provide me the updated code.</p>
]]></description><link>https://forum.magicmirror.builders/post/107825</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107825</guid><dc:creator><![CDATA[sdmydbr9]]></dc:creator><pubDate>Sun, 12 Feb 2023 05:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to Notifications help on Sun, 12 Feb 2023 04:34:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdmydbr9" aria-label="Profile: sdmydbr9">@<bdi>sdmydbr9</bdi></a> In my case, it helped me tremendously to have MMM-ViewNotifications installed on my test system, so I could eliminate if it was my code or the notification.</p>
<p dir="auto"><a href="https://github.com/glitch452/MMM-ViewNotifications" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/glitch452/MMM-ViewNotifications</a></p>
]]></description><link>https://forum.magicmirror.builders/post/107820</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107820</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sun, 12 Feb 2023 04:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Notifications help on Sun, 12 Feb 2023 04:18:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdmydbr9" aria-label="Profile: sdmydbr9">@<bdi>sdmydbr9</bdi></a> module name = module folder name = module_name.js = register name</p>
<p dir="auto">all must match exactly, case matters</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdmydbr9" aria-label="Profile: sdmydbr9">@<bdi>sdmydbr9</bdi></a> said in <a href="/post/107817">Notifications help</a>:</p>
<blockquote>
<p dir="auto">MMM-11-TTS</p>
</blockquote>
<p dir="auto">, right?</p>
<p dir="auto">only displayed in the dev console log  unless u install mmm-logging</p>
]]></description><link>https://forum.magicmirror.builders/post/107818</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107818</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 12 Feb 2023 04:18:22 GMT</pubDate></item></channel></rss>