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 not updating

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    95 Posts 4 Posters 79.3k 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.
    • S Offline
      sdetweil @sdetweil
      last edited by

      @matt216 can u show me that event from the ICS file?

      does the rest of the debug output say

      Calendar-Fetcher: Broadcasting xxx events
      

      where xxx is not 0

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        matt216 @sdetweil
        last edited by

        @sdetweil from ics file:

        BEGIN:VEVENT
        CREATED:20240105T132005Z
        DTEND;TZID=Europe/London:20240106T100000
        DTSTAMP:20240105T132006Z
        DTSTART;TZID=Europe/London:20240106T090000
        LAST-MODIFIED:20240105T132005Z
        SEQUENCE:0
        SUMMARY:test1234567
        TRANSP:OPAQUE
        UID:60E1B9F2-66C4-46ED-B98E-AD1A36FAB1EF
        URL;VALUE=URI:
        X-APPLE-CREATOR-IDENTITY:com.apple.mobilecal
        X-APPLE-CREATOR-TEAM-IDENTITY:0000000000
        END:VEVENT
        

        Broadcasting 1000+ events, yes.

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

          @matt216 and it works perfectly here…

          could you try in config before the calendars list

          broadcastPastEvents: false
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            matt216 @sdetweil
            last edited by

            @sdetweil config now:

            {
                                    module: "calendar",
                                    header: "calendar",
                                    position: "top_left",
                                    config: {
                                            fetchInterval: 120000,
                                            timeFormat: 'absolute',
                                            maximumEntries: 5,
                                            broadcastPastEvents: false,
                                            calendars: [
                                                    {
                                                            url: 'https://my.cal.url',
                                                            auth:   {
                                                                    user: 'user',
                                                                    pass: 'pass',
                                                                    method: 'basic'
                                                                    }
                                                    }
                                                    ],
                                            }
                            },
            
            

            No change. Still not displaying newly created events. :(

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @matt216
              last edited by

              @matt216 ok, i don’t know… lets get you back to running on the prior release

              stop mm, shouldn’t be running as its not helpful

              cd ~/MagicMirror
              
              git tag -l 
              
              

              to see the list of tagged commits,

              then

              git checkout temp_branch -b tags/v???????
              

              where ??? is the number 2.25.0 or whatever u want to go back to

              then

              rm -rf node_modules
              npm install 
              

              please advise(we can get back to the current v2.26.0 branch too, very easily

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @matt216 just one last thing, if you comment out

                 maximumEntries: 5,
                

                what happens?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  matt216 @sdetweil
                  last edited by

                  @sdetweil commenting maximumEntries just shows the default 10 entries, but still does not include recently created events that should show within those 10.

                  Getting a git error (novice here, sorry):

                  fatal: 'temp_branch' is not a commit and a branch 'tags/v2.24.0' cannot be created from it
                  

                  Although this issue existed before I upgraded to 2.26.0…

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    matt216
                    last edited by

                    I might have a go at spinning up another calendar server and see if the issue still exists there. This calendar is a newly self-hosted one so it could be an issue there (although the magicmirror is the only device having trouble with it).

                    Thanks for the help still.
                    Matt

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

                      @matt216 also try

                      cd ~/MagicMirror
                      npm install electron@28.1.1
                      

                      supposedly it has the fix for ipv6 vs 4

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        matt216 @sdetweil
                        last edited by

                        @sdetweil Thanks. Done. No change :(

                        Have you heard of others with this problem? No one else on this thread. I really appreciate your efforts, but don’t worry too much if it’s just me. Part of the fun with self-hosting calendars etc :)

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

                          @matt216 I have not had others with no updates, but others w missing events

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • N Offline
                            nechry
                            last edited by

                            I also had the problem with a Google calendar and an iCloud. for me the update to electronic@28.1.1 was the solution, now everything works as with the previous version of MM

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

                              @nechry thanks for the feedback

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                mspk
                                last edited by

                                @sdetweil said in Calendar not updating:

                                @matt216 I have not had others with no updates, but others w missing events

                                Hi, I’m pretty new here, so sorry if I mess something up. I think I have the same problem. Installed MM yesterday (so pretty vanilla setup), the only module I added is the MMM-CalendarExt3.
                                I configured everything as it should be (I hope at least), but for some reason, my calendars are not beeing updated and one is not beeing show at all… I don’t know what to do anymore, maybe you guys have an idea.

                                Here is my error: ```
                                0|MagicMirror | [09.01.2024 12:28.43.248] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/[MyCalendarNameHere]/basic.ics
                                TypeError: fetch failed
                                0|MagicMirror | at Object.fetch (node:internal/deps/undici/undici:11576:11) {
                                0|MagicMirror | cause: Error: write EPIPE
                                0|MagicMirror | at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
                                0|MagicMirror | at handleWriteReq (node:internal/stream_base_commons:58:21)
                                0|MagicMirror | at writeGeneric (node:internal/stream_base_commons:149:15)
                                0|MagicMirror | at TLSSocket._writeGeneric (node:net:931:11)
                                0|MagicMirror | at TLSSocket._write (node:net:943:8)
                                0|MagicMirror | at writeOrBuffer (node:internal/streams/writable:392:12)
                                0|MagicMirror | at _write (node:internal/streams/writable:333:10)
                                0|MagicMirror | at TLSSocket.write (node:internal/streams/writable:337:10)
                                0|MagicMirror | at write (node:internal/deps/undici/undici:10124:18)
                                0|MagicMirror | at _resume (node:internal/deps/undici/undici:10037:33)
                                0|MagicMirror | at resume (node:internal/deps/undici/undici:9938:7)
                                0|MagicMirror | at [dispatch] (node:internal/deps/undici/undici:9286:11)
                                0|MagicMirror | at Client.Intercept (node:internal/deps/undici/undici:9017:20)
                                0|MagicMirror | at Client.dispatch (node:internal/deps/undici/undici:7772:44)
                                0|MagicMirror | at [dispatch] (node:internal/deps/undici/undici:7991:32)
                                0|MagicMirror | at Pool.dispatch (node:internal/deps/undici/undici:7772:44) {
                                0|MagicMirror | errno: -32,
                                0|MagicMirror | code: ‘EPIPE’,
                                0|MagicMirror | syscall: ‘write’
                                0|MagicMirror | }
                                0|MagicMirror | }

                                Thanks!
                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @mspk
                                  last edited by sdetweil

                                  @mspk I think you have the wrong calendar url , you need the ical format url, not the embed url
                                  mine is like

                                  https://calendar.google.com/calendar/ical/sdetweil%40gmail.com/private-fhkjsadfhsdflk'sdfk/basic.ics
                                  

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  M M 2 Replies Last reply Reply Quote 0
                                  • M Offline
                                    mspk @sdetweil
                                    last edited by

                                    @sdetweil said in Calendar not updating:

                                    I think you have the wrong calendar url , you need the ical format url, not the embed url
                                    mine is like

                                    You mean the public one? Because for some reason, 3 of the 5 calendars work just fine with the private ICal Format address.

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      matt216 @sdetweil
                                      last edited by

                                      @sdetweil I think you are potentially right. For baikal I have followed such advice as here: https://forum.magicmirror.builders/topic/434/caldav/4?_=1704811423495 where it was advised just adding ?export to the end of the cal URL to generate the ics file, but it is not an actual ics link.
                                      I shall work along those lines…

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

                                        @matt216 i test others problems by building an ics FILE and using the url

                                        http://localhost:mirror_port/modules/default/calendar/????.ics
                                        

                                        so it doesn’t have to be ON a ‘server’… just has to be an ICS format file.
                                        linking to google, the url returns that data when the calendar does a get request
                                        same as for the local file. BUT we depend on the data changing…
                                        the cal module does not know that ‘this’ fetch was or was not different than the last fetch.
                                        we don’t keep a diff… we just get the current data and present it.

                                        if it didn’t change then nothing changes

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          matt216 @sdetweil
                                          last edited by

                                          @sdetweil Trying this.
                                          Steps:

                                          1. add new test event scheduled tomorrow
                                          2. verify event on another device, proving calendar server sync
                                          3. curl .ics file from server, find test event
                                          4. set calendar module as described in your post above

                                          Result:
                                          calendar loads successfully, but still does not show new event.

                                          Event as shown in ics file:

                                          BEGIN:VEVENT
                                          CREATED:20240109T161646Z
                                          DTEND;TZID=Europe/London:20240110T170000
                                          DTSTAMP:20240109T161647Z
                                          DTSTART;TZID=Europe/London:20240110T160000
                                          LAST-MODIFIED:20240109T161646Z
                                          SEQUENCE:0
                                          SUMMARY:test54321
                                          TRANSP:OPAQUE
                                          UID:156ED8F1-9BDA-43D2-BE7C-DDEFE18E95EF
                                          URL;VALUE=URI:
                                          X-APPLE-CREATOR-IDENTITY:com.apple.mobilecal
                                          X-APPLE-CREATOR-TEAM-IDENTITY:0000000000
                                          END:VEVENT
                                          

                                          I think MagicMirror does not like the baikal server - no events created since I migrated from iCloud to self-hosted baikal are showing. Can you see anything unusual in the ics event above @sdetweil ?

                                          M S 2 Replies Last reply Reply Quote 0
                                          • M Offline
                                            matt216 @matt216
                                            last edited by

                                            @sdetweil so I’ve just spun up a radicale calendar server and added a few test events, then some more - works perfectly!

                                            Looks like a problem with baikal integration

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 5 / 5
                                            • 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