MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Problem with Google generated .ics link

    Troubleshooting
    2
    30
    173
    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.
    • ankonaskiff17
      ankonaskiff17 last edited by

      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 Reply Quote 0
      • S
        sdetweil @ankonaskiff17 last edited by sdetweil

        @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

        Create a working config
        How to add modules

        ankonaskiff17 1 Reply Last reply Reply Quote 0
        • ankonaskiff17
          ankonaskiff17 @sdetweil last edited by

          @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 Reply Quote 0
          • S
            sdetweil @ankonaskiff17 last edited by

            @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

            Create a working config
            How to add modules

            ankonaskiff17 1 Reply Last reply Reply Quote 0
            • ankonaskiff17
              ankonaskiff17 @sdetweil last edited by ankonaskiff17

              @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

              ankonaskiff17 S 2 Replies Last reply Reply Quote 0
              • ankonaskiff17
                ankonaskiff17 @ankonaskiff17 last edited by

                @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
                  sdetweil @ankonaskiff17 last edited by

                  @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

                  Create a working config
                  How to add modules

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @sdetweil last edited by

                    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

                    Create a working config
                    How to add modules

                    ankonaskiff17 1 Reply Last reply Reply Quote 0
                    • ankonaskiff17
                      ankonaskiff17 @sdetweil last edited by

                      @sdetweil Check your email

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sdetweil @ankonaskiff17 last edited by

                        @ankonaskiff17 replied

                        Sam

                        Create a working config
                        How to add modules

                        ankonaskiff17 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy