• 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.

TypeError: curr.start.toISOString is not a function

Scheduled Pinned Locked Moved Troubleshooting
34 Posts 7 Posters 27.5k Views 6 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.
  • M Offline
    MichMich Admin
    last edited by Aug 3, 2016, 7:43 AM

    Did you tryout the develop branch yet? It might include some changes that could help you.

    1 Reply Last reply Reply Quote 0
    • E Offline
      eugenelai
      last edited by Aug 31, 2016, 7:23 AM

      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 } ]
      ------------------------------------------------------------
      
      1 Reply Last reply Reply Quote 0
      • B Offline
        Bangee Module Developer
        last edited by Aug 31, 2016, 8:32 AM

        nope, still same here… :-(

        1 Reply Last reply Reply Quote 0
        • C Offline
          clumsy_ninja
          last edited by Oct 29, 2016, 6:15 AM

          I’m just starting with my MagicMirror today and am also having this issue.
          I have two calendars,

          1. Office 365 - gives this issue
          2. google - loads, but doesn’t display all events in my calendar
          1 Reply Last reply Reply Quote 0
          • B Offline
            Bangee Module Developer
            last edited by Nov 26, 2016, 9:18 AM

            so now I found something new:

            in my Calendar the DTSTART is set to:
            DTSTART;TZID="(UTC+00:00) Monrovia, Reykjavik":20161028T200000

            when I remove (UTC+00:00) everything works fine.

            Then it looks like this:
            DTSTART;TZID="Monrovia, Reykjavik":20161028T200000

            I’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;
            
            1 Reply Last reply Reply Quote 0
            • M Offline
              MichMich Admin
              last edited by Nov 26, 2016, 12:22 PM

              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. :)

              1 Reply Last reply Reply Quote 0
              • B Offline
                Bangee Module Developer
                last edited by Nov 27, 2016, 12:55 PM

                Ok, :-) but actually I don’t no where to implement this in js :-)

                Can someone give me a hint where to place my str_replace (UTC+00:00) in DTSTART variable?

                Thanks ;-)

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chadderwick
                  last edited by chadderwick Feb 26, 2017, 8:21 PM Feb 26, 2017, 4:16 PM

                  So I ran into this problem and have a fix. I have uploaded the files to drop box for know. If this fixes others, i’ll look into updating the project.

                  There are 2 files that need updated:
                  /home/pi/MagicMirror/modules/default/calendar/vendor/node-ical.js
                  line 33
                  https://dl.dropboxusercontent.com/u/1184191/node-ical.js

                  /home/pi/MagicMirror/modules/default/calendar/vendor/ical.js
                  line 97
                  https://dl.dropboxusercontent.com/u/1184191/ical.js

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bangee Module Developer
                    last edited by Apr 19, 2017, 8:11 PM

                    can you maybe post your solution? that would be great

                    thanks bangee

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chadderwick
                      last edited by chadderwick Apr 22, 2017, 3:27 PM Apr 22, 2017, 3:26 PM

                      Apologies…my dropbox links dropped out.
                      Here are the updated files:
                      https://www.dropbox.com/sh/xvlusz1po4tvq24/AABF9ZuCL5j-ok4xfnYA5JsHa?dl=0

                      This has not been tested with the latest version. I bought 6 different types of mirrors (glass and acrylic) and couldn’t find what i was looking for so gave up the dream for now…

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      • 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