Read the statement by Michael Teeuw here.
Calendar module won't show all events
-
This is what I found out.
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?
-
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 atMMM-CalendarExt.js:182
. From what I can tell, Node.js didn’t supportasync
until 7.4, and I’m (apparently) running 6.12.2 (vianode -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 gotMMM-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
? -
Nice. Thanks for the workaround! It’s working now.
-
@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. -
@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 $1It’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.