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.

    Sync private iCloud calendar with MagicMirror

    Scheduled Pinned Locked Moved Tutorials
    162 Posts 58 Posters 389.7k Views 65 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @Beh
      last edited by

      @Beh said in Sync private iCloud calendar with MagicMirror:

      Please read answers carefully

      Amen

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • schwoediauerS Offline
        schwoediauer @Beh
        last edited by schwoediauer

        @Beh Hi Beh, great work it’s a little bit tricky but it works fine on my side. One additional Information. I got an error by syncing after modification of an event on iCloud side. Therefore is necessary to modify the conflict_resolution in the config file as described here: https://vdirsyncer.pimutils.org/en/stable/config.html#pair-section

        I added this section in my configuration:

        CALDAV Sync

        [pair iCloud_to_MagicMirror]
        a = “Mirror”
        b = “iCloud”
        collections = [“65CFC60E-8888-4B7A-B8DB-0043A969A041”]
        conflict_resolution = “b wins”

        after first sync…

        pi@pi_mirror:/etc/systemd/user $ /usr/bin/vdirsyncer sync
        Syncing iCloud_to_MagicMirror/65CFC60E-8888-4B7A-B8DB-0043A969A041
        Doing conflict resolution for item 247C105F-156B-41DC-B1D6-BFDB7C753BDC…

        second sync imports the modified event in my .ics file

        have a nice Day!

        1 Reply Last reply Reply Quote 0
        • schwoediauerS Offline
          schwoediauer @bgz
          last edited by

          @bgz Good morning Create an “hidden” folder by command mkdir .vdirsyncer, and check it by command ls - lisa

          B 1 Reply Last reply Reply Quote 0
          • R Offline
            ribermon
            last edited by

            Also you have to create first the file, it does not exist, so first create it following the path said by Beh and inside the folder create the file

            1 Reply Last reply Reply Quote 0
            • ildottoreI Offline
              ildottore
              last edited by

              @Beh: First I want to thank you for this tutorial! Great job!

              It syncs my iCloud calender fine, but not birthdays which are placed from the contacts app.

              Can someone advice me?

              Thanks in advance!

              BehB 1 Reply Last reply Reply Quote 0
              • B Offline
                bgz @schwoediauer
                last edited by

                @schwoediauer

                Thanks schwoediauer and the others.
                I finally got it and it is up & syncing!!

                1 Reply Last reply Reply Quote 0
                • BehB Offline
                  Beh @ildottore
                  last edited by

                  @ildottore I configured the syncer config to only synchronize calendar events with the property item_types = ["VEVENT"]. The CalDav function only supports the items like "VEVENT" and "VTODO".

                  I think, that iOS/macOS does not store the birthdays directly in the calendars but adds the birthdays via the Contacts.app to the Calendar.app.

                  Maybe you can achieve showing birthdays by syncing the contacts with vdirsyncer as described in the docs here and somehow extract the birthdays. But I think this would be quite costly…

                  Or you can use the MagicMirror module MMM-iCloud-Client maybe…

                  1 Reply Last reply Reply Quote 1
                  • G Offline
                    ganther
                    last edited by

                    Hi there,
                    i followed the instructions, my calendars are shown in discovery.
                    I copied the UUID and it starts syncing, but the saved files are 0kb.
                    I tried several calendars and checked the UUID’s but can’t find any mistake?

                    any ideas?
                    thanks!!

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gailby @Beh
                      last edited by

                      @Beh Everything works fine until I’ll try to save the config file:

                      1. ~/.vdirsyncer/config directory cannot be found
                      2. Once I manuals create directories I also save config file as config.cfg and also tried config.config and save
                      3. I haven’t filled in collections = [“HERE-GOES-THE-UUID-OF-THE-CALENDAR-YOU-WANT-TO-SYNC”] in conf. Could this make it crash?
                      4. Running curl for timer ok.
                        5.Then when vdirsyncer discover nothing happens I get Errno 21 and that’s where I get stuck…

                      Really wonder what might be the issues here?

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        ganther @Gailby
                        last edited by

                        @Gailby
                        The file is named config. It‘s not a directory, it‘s the name of the file. (No ending).

                        G 1 Reply Last reply Reply Quote 0
                        • G Offline
                          Gailby @ganther
                          last edited by

                          @ganther so if I put config in ~/.vdirsyncer/config it should work?
                          I think I did try it but somehow wansn’t able to read it as a file nor save and getting empty file and no result forward…

                          G 1 Reply Last reply Reply Quote 0
                          • G Offline
                            ganther @Gailby
                            last edited by

                            @Gailby
                            Yes. Just type these commands as given:

                            touch ~/.vdirsyncer/config
                            nano ~/.vdirsyncer/config

                            1 Reply Last reply Reply Quote 0
                            • schwoediauerS Offline
                              schwoediauer @l0cal
                              last edited by

                              @l0cal Hi !

                              I’m also interrested on this solution to display reminders on this way, but It dosen’t work actually for me.
                              Do you have a running configuration

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

                                Two run two calendars, would I need to adjust config.js file as well?

                                Thanks

                                M 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  Gailby @Beh
                                  last edited by

                                  @Beh I had no problem adding several modules of same kind and several .ics files in Calendars…however it doesn’t seem to sync or retrieve anything…only says no upcomming events :/

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    ganther @Gailby
                                    last edited by

                                    @Gailby
                                    Is your ics-file in modules/calendars also 0kb?

                                    G 1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      Gailby @ganther
                                      last edited by

                                      @ganther I don’t know…I need to check

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gailby
                                        last edited by

                                        Doesn’t seem like they are empty in KB. However the first file has rw–r–r-- and the others only rw------ don’t know if these permissions affects the none fetching of data

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

                                          @maestro82 So I was able to get through the tutorial with no errors, all files discovered and synced. But when I run MagicMirror calendar says “Loading…” and never loads. I have changed interval to 5min in timer file. Any advise to troubleshoot?

                                          Thanks,

                                          M 1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            Gailby @Gailby
                                            last edited by

                                            @Gailby @ganther @Beh the ics files doesn’t seem to sync in Calendars… all files are empty. Have anyone resolved this?

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 8 / 9
                                            • 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