• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

CALENDAR_EVENTS not broadcasting? MMM-Calendarweek

Scheduled Pinned Locked Moved Unsolved Troubleshooting
13 Posts 4 Posters 5.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil
    last edited by Oct 26, 2018, 7:29 PM

    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

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • S Offline
      Subintro
      last edited by Oct 26, 2018, 8:38 PM

      @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

      1 Reply Last reply Reply Quote 0
      • S Offline
        Subintro
        last edited by Oct 26, 2018, 8:54 PM

        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

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil
          last edited by sdetweil Oct 26, 2018, 11:24 PM Oct 26, 2018, 11:21 PM

          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);

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          H 1 Reply Last reply Nov 4, 2018, 6:28 PM Reply Quote 0
          • H Offline
            heskja Module Developer @sdetweil
            last edited by Nov 4, 2018, 6:28 PM

            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.

            H 1 Reply Last reply Nov 23, 2018, 7:35 PM Reply Quote 0
            • H Offline
              heskja Module Developer @heskja
              last edited by Nov 23, 2018, 7:35 PM

              Would also appreciate you marking the issue as solved, as this is not an issue with the MMM-CalendarWeek module :) Thanks!

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy