<?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[Calendar: Cannot user ADD_CALENDAR socket notification to add a new calendar]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I would like to send a notification via a node_helper of another module, so that the intefarce included a new calendar. But when I execute this code, nothing happens.<br />
I tried to debug the calendar node_helper, and I see that the sole notification that arrives is FETCH_CALENDAR.</p>
<p dir="auto"><code>this.io.of("calendar").emit("ADD_CALENDAR",payload);</code></p>
<p dir="auto">Could you suggest what’s going on?</p>
]]></description><link>https://forum.magicmirror.builders/topic/19132/calendar-cannot-user-add_calendar-socket-notification-to-add-a-new-calendar</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 22:33:38 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19132.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Nov 2024 11:58:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Calendar: Cannot user ADD_CALENDAR socket notification to add a new calendar on Sat, 16 Nov 2024 12:03:45 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> Thank you  for the useful hints! I will soon work on them, and consider making a pull request to the community.</p>
]]></description><link>https://forum.magicmirror.builders/post/121337</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/121337</guid><dc:creator><![CDATA[SimoneMSR]]></dc:creator><pubDate>Sat, 16 Nov 2024 12:03:45 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar: Cannot user ADD_CALENDAR socket notification to add a new calendar on Wed, 13 Nov 2024 12:43:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/simonemsr" aria-label="Profile: SimoneMSR">@<bdi>SimoneMSR</bdi></a><br />
lots of issues<br />
the socket connection is only to your module, module y helper cannot interact with  helper from module z</p>
<p dir="auto">add_calendar starts a data collector(fetcher)  to inform the ui to use later</p>
<p dir="auto">but the controlling data is in the module, not in the helper. helper asynchronously sends back events for the url, calendar module uses url to find config for display, but it doesnt match any, so the data is tossed</p>
<p dir="auto">so you would have to extend calendar.js to accept an add_calender notification (not socket) to add another configuration, and trigger the add_calendar socket notification to its helper</p>
<p dir="auto">then YOUR  helper would send YOUR module a socket notification to request IT  to send the (not socket) notification to inform the calendar module</p>
<p dir="auto">note that sendNotification is a broadcast to all  broswer side modules</p>
]]></description><link>https://forum.magicmirror.builders/post/121254</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/121254</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 13 Nov 2024 12:43:12 GMT</pubDate></item></channel></rss>