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

Calendar Module not working with Google Calendar

Scheduled Pinned Locked Moved Solved Troubleshooting
22 Posts 6 Posters 10.6k Views 8 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.
  • S Away
    sdetweil @jott0204
    last edited by Jan 1, 2024, 10:26 PM

    @jott0204 yes config, url xxx out

    also please show the messages where you do npm start

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • A Offline
      AnduriI
      last edited by Jan 3, 2024, 10:10 AM

      I have a very similiar problem. I use two calendar modules, one with dates from the local waste pickup service and another one with multiple google calendars. The waste calendar works fine (so nothing with the module), but google gives errors. I copied out two of the google-calendars:

      [03.01.2024 11:05.10.477] [ERROR] Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/ical/XXXXX/basic.ics RangeError: Invalid time value
          at Date.toISOString (<anonymous>)
          at /home/pi/MagicMirror/modules/MMM-MyCalendar/calendarutils.js:314:28
          at Array.forEach (<anonymous>)
          at Object.filterEvents (/home/pi/MagicMirror/modules/MMM-MyCalendar/calendarutils.js:142:24)
          at /home/pi/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js:74:29
          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      [03.01.2024 11:05.11.076] [ERROR] Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/ical/XXXXX/basic.ics RangeError: Invalid time value
          at Date.toISOString (<anonymous>)
          at /home/pi/MagicMirror/modules/MMM-MyCalendar/calendarutils.js:314:28
          at Array.forEach (<anonymous>)
          at Object.filterEvents (/home/pi/MagicMirror/modules/MMM-MyCalendar/calendarutils.js:142:24)
          at /home/pi/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js:74:29
          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      

      I don’t know what invalid time value means, maybe someone can help

      S J 2 Replies Last reply Jan 3, 2024, 12:57 PM Reply Quote 0
      • S Away
        sdetweil @AnduriI
        last edited by Jan 3, 2024, 12:57 PM

        @AnduriI you need the latest mm version which has a fix for the isostring problem

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Jan 3, 2024, 7:51 PM Reply Quote 1
        • A Offline
          AnduriI @sdetweil
          last edited by Jan 3, 2024, 7:51 PM

          @sdetweil what do you mean with latest mm version? I did git pull && npm install, so I should have the latest…

          S 1 Reply Last reply Jan 3, 2024, 8:49 PM Reply Quote 0
          • S Away
            sdetweil @AnduriI
            last edited by Jan 3, 2024, 8:49 PM

            @AnduriI can u chedck the actual version u have

            cd ~/MagicMirror
            grep version package.json
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Jan 4, 2024, 8:40 AM Reply Quote 0
            • A Offline
              AnduriI @sdetweil
              last edited by Jan 4, 2024, 8:40 AM

              @sdetweil

              /MagicMirror $ grep version package.json
                      "version": "2.26.0",
              
              S 1 Reply Last reply Jan 4, 2024, 1:14 PM Reply Quote 0
              • S Away
                sdetweil @AnduriI
                last edited by Jan 4, 2024, 1:14 PM

                @AnduriI bizarre.

                can u turn on debug in config.js

                add

                ,"DEBUG"
                

                to the loglevel: list

                then let’s use non pm2 to capture the info

                pm2 stop all
                cd ~/MagicMirror
                npm start >somefile.txt 2>&1
                

                wait til u think the error occurs
                ctrl-q

                to top mm

                then look at the somefile.txt

                search for the isostring

                you should see dates=
                for each event

                the problem was the rule.between function which calculates the repeating events would return junk
                I put in a filter to remove the junk.

                anyhow, then remove the DEBUG
                thing from config.js

                and you can use pm2 to restart mm til we figure it out

                if u can, send the somefile.txt to me via email
                my userid here at gmail

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A R 2 Replies Last reply Jan 4, 2024, 8:42 PM Reply Quote 0
                • A Offline
                  AnduriI @sdetweil
                  last edited by Jan 4, 2024, 8:42 PM

                  @sdetweil wow I was not aware of all old events also being sent and parsed… from 5+ years ago. That’s a lot of entries… (more than 1500 only for my main calendar)
                  I sent the log via eMail to you.

                  S 2 Replies Last reply Jan 4, 2024, 9:09 PM Reply Quote 1
                  • S Away
                    sdetweil @AnduriI
                    last edited by Jan 4, 2024, 9:09 PM

                    @AnduriI yes, the ics holds all that junk

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @AnduriI
                      last edited by Jan 4, 2024, 11:23 PM

                      @AnduriI are u willing to share one of the trouble cal urls so I can debug?

                      send in a private chat. not via mail. after use I will delete the data and the chat.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Jan 6, 2024, 10:55 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        6/22
                        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