The icalgit.toml
file is used to configure the behavior of the ical-git daemon. Below are the descriptions of the fields and their purposes.
- timezone: Specifies the timezone for the notifications. Both the .ics timezone and config timezone will be shown in the notification message
- Example:
timezone = "Europe/Rome"
- Example:
- tick: Defines the interval at which the daemon checks for new events.
- Example:
tick = "24h"
- Example:
- alarms: A list of alarm configurations. Each alarm specifies the type and when it should trigger. The
when
field uses the ISO 8601 duration format to specify the time before the event when the alarm should trigger.- Example:
alarms = [ {type = "desktop", when = "-P7D"}, # 7 days before the event {type = "desktop", when = "-P1D"}, # 1 day before the event {type = "desktop", when = "-PT1H"}, # 1 hour before the event {type = "telegram", when = "-P7D"}, # 7 days before the event {type = "telegram", when = "-P1D"}, # 1 day before the event {type = "telegram", when = "-PT1H"},# 1 hour before the event ]
- ISO 8601 Duration Format Examples:
-P7D
: 7 days before the event-P1D
: 1 day before the event-PT1H
: 1 hour before the event-PT30M
: 30 minutes before the event-P1DT12H
: 1 day and 12 hours before the event
- Example:
Note: If the event has defined VALARMS
, the alarms present in the calendar VEVENT
are used instead.
- images: A list of image configurations. Each image has a
name
and avalue
. Thevalue
can be a URL or a base64 encoded string. Thename
is just a label present in theATTACH
line of the calendar. If thename
is present in theATTACH
line, the correspondingvalue
here is used. Local filesystem paths are not supported.- Note: Multiple images with the same
name
are possible. One random image from the list of images with the samename
will be used. - Example:
images = [ {name = "image1.jpg", value = "https://example.com/image1.jpg"}, {name = "image1.jpg", value = "iVBORw0KGgoAAAANSUhEUgAA..."}, {name = "image2.jpg", value = "https://example.com/image2.jpg"} ]
- Note: Multiple images with the same
Both Fetcher Filesystem
and Fetcher Git
are possible. If both are present, Fetcher Git
has precedence.
- directory: Specifies the directory where the iCal files are stored.
- Example:
directory = "testdata"
- Example:
- url: Specifies the URL of the git repository containing the iCal files.
- Example:
url = "[email protected]:me/myrepo.git"
- Example:
- private_key_path: Specifies the path to the private SSH key used to access the git repository.
- Example:
private_key_path = "/home/path/to/key"
- Example:
Note: Only SSH keys without a passphrase are supported.
Both Notifier Desktop
and Notifier Telegram
can be used simultaneously.
- token: The API token for the Telegram bot.
- Example:
token = "yuu3b3k"
- Example:
- chat_id: The chat ID to which the notifications will be sent.
- Example:
chat_id = 588488
- Example:
- icon: The path to the icon file used for desktop notifications.
- Example:
icon = "/usr/share/icons/hicolor/48x48/apps/filezilla.png"
- Example: