Read the statement by Michael Teeuw here.
CALENDAR_EVENTS not broadcasting? MMM-Calendarweek
-
You should use Log.log() in the module instead of console.log()…
Then open the debug console, ctrl-shift-i letter i)… select the console tab
-
@axled said in CALENDAR_EVENTS not broadcasting? MMM-Calendarweek:
console.log(“Calenderevent received.”);
Oh man this has been massive help. Looks like my module isnt receiving notifications at all. Time to figure it out
-
Man I think I misunderstood how the broadcast events works, I was understanding that when an event started, it broadcasted that one event as it started. I was hoping I could make a pop-up notification system for when an event starts, and disappear when it ends.
Thats what it seems like looking at the calendar console logs
-
It’s just one event, ‘here are the calendar “events” I found that match the configured environment’
That’s what I see in my module
case “CALENDAR_EVENTS”:
this.processEvents(payload); -
Hi,
Author of MMM-CalendarWeek here. I can confirm that the module is broadcasting the event as expected, unless you manually disable it in the module configuration page.
As you discovered, the module will broadcast all events available in one array, sorted on startdate as can be seen in the source code here.
-
Would also appreciate you marking the issue as solved, as this is not an issue with the MMM-CalendarWeek module :) Thanks!