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

Problem with Google generated .ics link

Scheduled Pinned Locked Moved Unsolved Troubleshooting
30 Posts 2 Posters 6.5k Views 2 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.
  • A Offline
    ankonaskiff17
    last edited by Apr 24, 2022, 11:24 PM

    I am running two calendars, the standard one out of the box and then a second instance but have my personal Google calendar in the url.
    When it tries to load that url I get several errors, starting with this. I’ve done this numerous times in past. Google creates an ics link, you plug it in to URL slot and everything worked but not now.

    [24.04.2022 19:05.23.694] [ERROR] Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/ical/group.calendar.google.com/private-yadayada/basic.ics RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at /home/pi/MagicMirror/modules/default/calendar/calendarutils.js:314:28
    at Array.forEach (<anonymous>)
    at Object.filterEvents (/home/pi/MagicMirror/modules/default/calendar/calendarutils.js:142:24)
    at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:74:29
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    
    S 1 Reply Last reply Apr 24, 2022, 11:29 PM Reply Quote 0
    • S Offline
      sdetweil @ankonaskiff17
      last edited by sdetweil Apr 24, 2022, 11:40 PM Apr 24, 2022, 11:29 PM

      @ankonaskiff17 could u post one of the vevents from the ICS file?

      curl -sL   whatever_url  >xxx.ics
      

      xxx.ics is a text file

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Apr 25, 2022, 12:00 AM Reply Quote 0
      • A Offline
        ankonaskiff17 @sdetweil
        last edited by Apr 25, 2022, 12:00 AM

        @sdetweil said in Problem with Google generated .ics link:

        curl -sL whatever_url >xxx.ics

        What were you either expecting or hoping to see?
        Looks like a bunch of my calendar entries in like csv (or similar) format.

        I had earlier dropped link in MS Edge and it opened the Google calendar but in the MS Edge default calendar applet or whatever they call those bare bones apps

        S 1 Reply Last reply Apr 25, 2022, 12:03 AM Reply Quote 0
        • S Offline
          sdetweil @ankonaskiff17
          last edited by Apr 25, 2022, 12:03 AM

          @ankonaskiff17

          pick a
          BEGIN:VEVENT
          .
          .
          .
          END:VEVENT

          change whatever is personal, dont change the date info please

          this is the format the calendar module passes to the parser…

          its needs to be in a specific format

          u don’t want a calendar tool to display it, we need to look at the raw text…

          (I spent 8 months in there solving all kinds of problems., and with the parser too)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Apr 25, 2022, 12:06 AM Reply Quote 0
          • A Offline
            ankonaskiff17 @sdetweil
            last edited by ankonaskiff17 Apr 25, 2022, 12:08 AM Apr 25, 2022, 12:06 AM

            @sdetweil I’m not worried about personal stuff in this one so you got complete.
            BEGIN:VEVENT
            DTSTART:20200512T124500Z
            DTEND:20200512T134500Z
            DTSTAMP:20220424T235526Z
            UID:74o68d9k61hj4b9pckom6b9kccsj2bb1cdgj6bb370sj0dpk6k
            CREATED:20210216T015059Z
            DESCRIPTION:
            LAST-MODIFIED:20210216T015059Z
            LOCATION:
            SEQUENCE:0
            STATUS:CONFIRMED
            SUMMARY:X-Ray & MRI
            TRANSP:OPAQUE
            END:VEVENT

            A S 2 Replies Last reply Apr 25, 2022, 12:10 AM Reply Quote 0
            • A Offline
              ankonaskiff17 @ankonaskiff17
              last edited by Apr 25, 2022, 12:10 AM

              @ankonaskiff17 I know historically it would post my calendar info as a list, identical to the US Holiday link

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @ankonaskiff17
                last edited by Apr 25, 2022, 12:13 AM

                @ankonaskiff17 ok, we need to see which one is causing the problem… so edit config.js and change loglevel like this

                logLevel: ["INFO", "LOG", "WARN", "ERROR","DEBUG"], // Add "DEBUG" for even more logging
                

                then run MM like this

                cd ~/MagicMirror
                npm start >somefile.txt
                

                wait for cal to come up

                ctrl-c to end MM

                then examine someflle.txt

                u may need to send me the file

                same userid at gmail. I don’t share

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Apr 25, 2022, 12:14 AM Reply Quote 0
                • S Offline
                  sdetweil @sdetweil
                  last edited by Apr 25, 2022, 12:14 AM

                  my event looks like this

                  BEGIN:VEVENT
                  DTSTART:20220126T150000Z
                  DTEND:20220126T210000Z
                  DTSTAMP:20220425T000759Z
                  UID:6oq3edpnc9ijeb9nc9h30b9k6tj3ibb2c5j3eb9k75hj6opk6dhjce32cg@google.com
                  CREATED:20220111T023256Z
                  DESCRIPTION:
                  LAST-MODIFIED:20220111T023256Z
                  LOCATION:
                  SEQUENCE:0
                  STATUS:CONFIRMED
                  SUMMARY:drive to ft stockton
                  TRANSP:OPAQUE
                  END:VEVENT
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A 1 Reply Last reply Apr 25, 2022, 12:25 AM Reply Quote 0
                  • A Offline
                    ankonaskiff17 @sdetweil
                    last edited by Apr 25, 2022, 12:25 AM

                    @sdetweil Check your email

                    S 1 Reply Last reply Apr 25, 2022, 12:33 AM Reply Quote 0
                    • S Offline
                      sdetweil @ankonaskiff17
                      last edited by Apr 25, 2022, 12:33 AM

                      @ankonaskiff17 replied

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Apr 25, 2022, 12:47 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        1/30
                        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