Syncing with clouds
How to view tasks and events from .ics files synced with clouds
Calcure can view calendars from cloud services, such as Google calendar, Nextcloud etc. Basically, you can view any .ics file published online or saved on your computer. To do that, you need to either provide a URL of your .ics file or sync your .ics files to your computer and provide the path to a single file or a folder of .ics files. Below are a few examples:
Obtaining secret URLs of .ics files (Google calendar)
The easiest way to view events from Google calendar is to obtain a secret URL. Open your Google calendar in the browser, in My calendars section click three dots > Settings and sharing > Copy the secret address in iCal format. It should look like:
Proceed to the section about reading from .ics files.
This method has a few cons, namely that loading from url usually take time and only works when you have internet. It is also possible to sync Google calendars locally, similar to the example below, but it is more complicated.
Syncing .ics files locally (Nextcloud calendar)
Install vdirsyncer to sync .ics files from your cloud to your computer:
Create a configuration file called config
at .config/vdirsyncer/config
. This example shows a typical config file for Nextcloud server. For other servers, see the tutorials here. For example, if you have a personal and work calendars, you need to create different sync records and get two .ics files (or two folders with .ics files). The example below shows typical records to sync two calendars, "work" and "personal":
After creating the config file, run the following to discover the config:
Agree to create all necessary files and folders and run the following to sync:
This should sync your tasks and events into .config/vdirsyncer/data
.
However, you can also use the type = "fylesystem"
option if you want to sync each event as a separate .ics file.
To sync the files periodically run (more details here):
systemctl --user enable vdirsyncer.timer
Reading from .ics files in Calcure
Now, add paths or URLs of .ics files in your Calcure config at .config/calcure/config.ini
. Calcure will accept a URL (starting with http) or path to a single file (ending with .ics) or path to a folder of .ics files, in which case the entire folder will be parsed a one calendar. Here is an example:
You can sync more than one path or URL. Multiple entry types can be mixed, but entries must be separated by a comma without a space, like this:
Run calcure
and you should see the synced tasks and events. If nothing appeared, there must have been an error. Double check everything and take a look at info.log file in config folder. If nothing helps, open an issue on GitHub and provide your configs (without passwords) and info.log file from your config folder.
Not supported yet
End time (only the beginning time is displayed)
Colors (currently, items are colored according to colors in config, but you can set them the same as in your cloud)
Editing (tasks and events from .ics are only displayed but can't be edited yet)
Troubleshooting
See this page for typical issues and solutions.
Last updated