• 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 module won't show all events

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 5 Posters 3.5k Views 5 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.
  • H Offline
    Hein-Jan @gama
    last edited by Jan 2, 2018, 6:26 PM

    @gama

    Look into issue:

    https://forum.magicmirror.builders/topic/5071/mmm-calendarext-cant-get-the-calendar-to-show

    It is a problem of Electron that has been downgraded.

    The default calendar module has had some issues removed in the update, maybe it is now okay for you.

    1 Reply Last reply Reply Quote 0
    • G Offline
      gama
      last edited by Jan 3, 2018, 12:43 AM

      This is what I found out.

      0_1514939982015_Error.PNG

      Here’s the code at that location:

      addCalendars: async function() {
          var self = this
          for (var c in this.CurrentConfigs.calendars) {
            self.addCalendar(self.CurrentConfigs.getCalConfig(c))
            await sleep(1000)
          }
        },
      

      Could it be that the error is within the core programming of the module?

      1 Reply Last reply Reply Quote 0
      • N Offline
        ninjabreadman
        last edited by Jan 3, 2018, 3:43 AM

        I’ve had the same problem since upgrading to MagicMirror 2.2.0.

        It seems that Node.js is upset that MMM-CalendarExt uses an async function at MMM-CalendarExt.js:182. From what I can tell, Node.js didn’t support async until 7.4, and I’m (apparently) running 6.12.2 (via node -v). However, until I upgraded MagicMirror this weekend, MMM-CalendarExt was working fine.

        I just edited run-start.sh:4 to the following, and just got MMM-CalendarExt working again:

        electron --js-flags="--harmony-async-await" js/electron.js $1
        

        Can someone explain why upgrading to MagicMirror 2.2.0 would’ve rolled back the Node.js support for async?

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        G D ? 3 Replies Last reply Jan 3, 2018, 9:25 PM Reply Quote 1
        • G Offline
          gama @ninjabreadman
          last edited by gama Jan 3, 2018, 9:25 PM Jan 3, 2018, 9:25 PM

          @ninjabreadman

          Nice. Thanks for the workaround! It’s working now.

          1 Reply Last reply Reply Quote 0
          • D Offline
            Daveladd @ninjabreadman
            last edited by Jan 9, 2018, 2:17 PM

            @ninjabreadman
            Slick fix, Well done. Think this should get pushed to the master branch? Does not seem it will get in the way of other functionality/stability since we can still use the lower electron version but obviously the workaround means updates involve stashing changes and such.

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @ninjabreadman
              last edited by A Former User Jan 14, 2018, 4:12 PM Jan 14, 2018, 4:11 PM

              @ninjabreadman said in Calendar module won’t show all events:

              I just edited run-start.sh:4 to the following, and just got MMM-CalendarExt working again:
              electron --js-flags=“–harmony-async-await” js/electron.js $1

              It’s a great fix for this issue. Anyway, I’m almost finishing my vacation and my current business a few days. I should have to join the summit for business in mid of January in Seoul and Paris. After that, I will release fix of this issue.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                6/7
                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