![]() Start_date = "datetime.now() - timedelta(days=1)"Įnd_date = "datetime.now() + timedelta(days=30)" # We need to keep the number of events low, so we'll just sync the next month # We only want to sync in the direction TO the mirror, so we make iCloud readonly Path = "/home/pi/MagicMirror/modules/calendars/%s.ics" # We'll put the calendar file to a readable location for the calendar module ics file for use with the mirror (Attention! This is really slow on big amounts of events.) # A folder where vdirsyncer can store some metadata about each pair.Ĭollections = # This file doesn't document all available parameters, see # Move it to ~/.vdirsyncer/config or ~/.config/vdirsyncer/config and edit it. # vdirsyncer configuration for MagicMirror. Just copy it into your opened file in nano and enter your iCloud credentials. Here’s an example configuration to use with iCloud. So we create a folder for our calendars: mkdir /home/pi/MagicMirror/modules/calendarsĬreate a config file in ~/.vdirsyncer/config and open it with nano: mkdir ~/.vdirsyncer Create a folder for the calendar fileĪs mentioned in this post, we can put the calendar file into the modules folder to access it via the calendar module. Now you should be able to use the vdirsyncer command from the command line. So we’re doing this: sudo ln -s /home/pi/.local/bin/vdirsyncer /usr/bin/vdirsyncer I needed to create a symlink to the vdirsyncer executable. Now, change the first line of your vdirsyncer executable to use only python3: nano ~/.local/bin/vdirsyncerĪnd change the first line to #!/usr/bin/python3 For a more clean way to install it, please refer to ) (This is the quick and easy way, it should suffice for most users. ![]() Pip3 install -user -ignore-installed vdirsyncer Now we get vdirsyncer and it’s dependencies: sudo apt-get install libxml2 libxslt1.1 zlib1g python3 On my raspbian system, vdirsyncer was not available via apt. Vdirsyncer needs to be installed on the machine that hosts your mirror software. You can create one in your AppleID settings like descibed in Apple’s support document for using app-specific passwords: Ĭreate one and write it down for later. Vdirsyncer needs an app-specific password to connect to iCloud. So here’s a really nice solution to sync the mirror with iCloud (privately): Get app-specific password from iCloud So I wanted a solution that uses encryption and authentication against all services. Even though the public sharing address is quite long, web crawlers can still find them and your private life is publicly available. I don’t want my calendar to be available via a public URL like mentioned in the iCloud calendar thread. ![]() I’ll re-post this part from the original post: Why doing it this way? I just found out that the tool I was using ( vdirsyncer) also supports syncing with iCloud. Unfortunately this solution was just a workaround and you needed to use a Mac which is also synced with your calendar. A while ago, I posted a thread for syncing an iCloud calendar with MagicMirror. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |