<?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[Need Help with Receiving Notifications]]></title><description><![CDATA[<p dir="auto">I’m trying to add some new features to my magic mirror, which involve listening for notifications from other modules.  I tried adding code to:</p>
<p dir="auto">socketNotificationReceived(notification,  payload) {<br />
}<br />
in node_helper.js<br />
but the log messages that I am putting there are not appearing in the logs.  Is there another step that I have to do to make my module receive notifications?</p>
<p dir="auto">I’ve had this problem with a couple of totally different features I have been trying to add, but if you want more context, for this one, I am trying to make MMM-Buttons allow you to specify what a long press does and what a short press does, but make it depend on which page you are on.  So you can define a longpress action and a shortpress action for each of your pages.</p>
<p dir="auto">In order to do this, I need MMM-Buttons to listen for the PAGE_CHANGED notification and store the page number, but it doesn’t seem to listen to the broadcast of notifications.  I thought that if any module sends a notification, it gets broadcast to all of the other modules and each of their socketNotificationReceived should execute.   Is that not correct?</p>
<p dir="auto">Thanks so much for your help.</p>
]]></description><link>https://forum.magicmirror.builders/topic/19518/need-help-with-receiving-notifications</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 16:46:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19518.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Mar 2025 18:59:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need Help with Receiving Notifications on Fri, 14 Mar 2025 15:39:32 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> did you get this working?</p>
]]></description><link>https://forum.magicmirror.builders/post/124874</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124874</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 14 Mar 2025 15:39:32 GMT</pubDate></item><item><title><![CDATA[Reply to Need Help with Receiving Notifications on Tue, 11 Mar 2025 18:28: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> socketNotification is ONLY to/FROM the modules node_helper<br />
see this post<br />
<a href="https://forum.magicmirror.builders/post/124432">https://forum.magicmirror.builders/post/124432</a></p>
]]></description><link>https://forum.magicmirror.builders/post/124766</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124766</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 11 Mar 2025 18:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to Need Help with Receiving Notifications on Mon, 10 Mar 2025 19:43:29 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> see this post<br />
<a href="https://forum.magicmirror.builders/post/124608">https://forum.magicmirror.builders/post/124608</a></p>
]]></description><link>https://forum.magicmirror.builders/post/124762</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124762</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 10 Mar 2025 19:43:29 GMT</pubDate></item></channel></rss>