Read the statement by Michael Teeuw here.
TypeError: curr.start.toISOString is not a function
-
Ok, preliminary digging done. It appears the pattern matching isn’t working correctly for the times that Office386 puts on its calendar, I mean, really 1601 for a year? I don’t think so.
Anyway, I’m going to tag @MichMich on this since he wrote the default calendar and I believe the node-ical stuff as well. I have the output of the ICS, so if you had shared it to get me the link, you can unshare it. I can work with the saved output.
-
ok, sounds not that good as expected. Whats next?
-
Basically one of us has to find the time to investigate. The way Office386 creates its dates is really odd. Leave it to Microsoft to break things … as always.
-
ok, my girlfriends calnedar is working. also with office 365 :-) so stupid…
-
Does she have the same events as you? Setup the same way? Same time zones configured?
-
she has different events in her calendar, but the all the other things are the same as mine.
-
Do you have a calendar feed which I can test that gives the error?
-
please give me your Mailadress, I’ll share my Calendar with you. :-)
-
Got it. Thanks. Will probably be able to look into this next week. Is that ok?
-
yeah, no problem. today my calendar is running. I’ve made no changes…
strange, I’ve sent you the link to the working one.
Thanks! :hand_splayed_tone1:
-
@MichMich did you find the problem?
-
@Bangee Did not have any time to look into this … I’m sorry! Did I understand it correctly that you managed to solve it with the new calendar feed you sent me?
-
i’ve sent you the working on. i don’t know why, but most of the time, the calendar is working find.
And sometimes there is this bug. I’ve sent you a diff file, with the differences between the files. -
@MichMich I still have these problems with office365 calender :-(
Did you found a solution for this issue? -
Did you tryout the develop branch yet? It might include some changes that could help you.
-
Any update on this? I’m also using office365 calendar and my Calendar randomly stopped working. I’ve tried the node debug.js and just get the below. @MichMich @KirAsh4
pi@rpi3:~/MagicMirror/modules/default/calendar $ sudo node debug.js Create fetcher ... Create fetcher done! [ { title: 'Max', startDate: '1493568000000', endDate: '1493654400000', fullDayEvent: true, firstYear: 1990 }, { title: 'Someone', startDate: '1493740800000', endDate: '1493827200000', fullDayEvent: true, firstYear: 2010 }, { title: 'Another', startDate: '1493913600000', endDate: '1494000000000', fullDayEvent: true, firstYear: 2000 }, { title: 'Event', startDate: '1494086400000', endDate: '1494172800000', fullDayEvent: true, firstYear: 1980 } ] ------------------------------------------------------------ -
nope, still same here… :-(
-
I’m just starting with my MagicMirror today and am also having this issue.
I have two calendars,- Office 365 - gives this issue
- google - loads, but doesn’t display all events in my calendar
-
so now I found something new:
in my Calendar the DTSTART is set to:
DTSTART;TZID="(UTC+00:00) Monrovia, Reykjavik":20161028T200000when I remove (UTC+00:00) everything works fine.
Then it looks like this:
DTSTART;TZID="Monrovia, Reykjavik":20161028T200000I’ve used a PHP Script to do this.
@MichMich can you implement this in the js script? or what will I need to replace for testing?$ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "https://ical.url/calendar.ics"); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_COOKIEJAR, "blabla"); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); $response = new Response(); $output = str_replace('(UTC+00:00) ', '', $output); $response->setContent($output); $response->setStatusCode(Response::HTTP_OK); $response->headers->set('Content-type', 'text/calendar'); return $response; -
I suggest you fork the project, implement the fix that works for you and send me a PR. That way you can test it and others can benefit from your solution. :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login