Add (broken) ukaea calendar syncing
Make calendar and contacts read-only sync for now
This commit is contained in:
parent
a615762940
commit
125b4cf606
|
@ -9,17 +9,18 @@
|
||||||
[pair nextcloud_contacts]
|
[pair nextcloud_contacts]
|
||||||
a = "nextcloud_contacts_local"
|
a = "nextcloud_contacts_local"
|
||||||
b = "nextcloud_contacts_remote"
|
b = "nextcloud_contacts_remote"
|
||||||
collections = ["from a", "from b"]
|
collections = ["from b"]
|
||||||
metadata = ["displayname"]
|
metadata = ["displayname"]
|
||||||
conflict_resolution = null
|
conflict_resolution = null
|
||||||
|
|
||||||
[storage nextcloud_contacts_local]
|
[storage nextcloud_contacts_local]
|
||||||
type = "filesystem"
|
type = "filesystem"
|
||||||
path = "~/.contacts/"
|
path = "~/.contacts/personal/"
|
||||||
fileext = ".vcf"
|
fileext = ".vcf"
|
||||||
|
|
||||||
[storage nextcloud_contacts_remote]
|
[storage nextcloud_contacts_remote]
|
||||||
type = "carddav"
|
type = "carddav"
|
||||||
|
read_only = true
|
||||||
url = "https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/"
|
url = "https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/"
|
||||||
username = "xenia"
|
username = "xenia"
|
||||||
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
|
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
|
||||||
|
@ -28,16 +29,38 @@
|
||||||
[pair nextcloud_calendar]
|
[pair nextcloud_calendar]
|
||||||
a = "nextcloud_calendar_local"
|
a = "nextcloud_calendar_local"
|
||||||
b = "nextcloud_calendar_remote"
|
b = "nextcloud_calendar_remote"
|
||||||
collections = ["from a", "from b"]
|
collections = ["from b"]
|
||||||
metadata = ["displayname", "color"]
|
metadata = ["displayname", "color"]
|
||||||
|
|
||||||
[storage nextcloud_calendar_local]
|
[storage nextcloud_calendar_local]
|
||||||
type = "singlefile"
|
type = "singlefile"
|
||||||
path = "~/.calendars/%s.ics"
|
path = "~/.calendars/nextcloud/%s.ics"
|
||||||
|
|
||||||
[storage nextcloud_calendar_remote]
|
[storage nextcloud_calendar_remote]
|
||||||
type = "caldav"
|
type = "caldav"
|
||||||
|
read_only = true
|
||||||
url = "https://cloud.xenia.me.uk/remote.php/dav"
|
url = "https://cloud.xenia.me.uk/remote.php/dav"
|
||||||
username = "xenia"
|
username = "xenia"
|
||||||
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
|
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
|
||||||
|
|
||||||
|
[pair ukaea_calendar]
|
||||||
|
a = "ukaea_calendar_local"
|
||||||
|
b = "ukaea_calendar_remote"
|
||||||
|
collections = ["calendar"]
|
||||||
|
partial_sync = "ignore"
|
||||||
|
metadata = ["displayname", "color"]
|
||||||
|
|
||||||
|
[storage ukaea_calendar_local]
|
||||||
|
type = "singlefile"
|
||||||
|
path = "~/.calendars/ukaea/%s.ics"
|
||||||
|
|
||||||
|
[storage ukaea_calendar_remote]
|
||||||
|
type = "caldav"
|
||||||
|
read_only = true
|
||||||
|
start_date = "datetime.now() - timedelta(days=31)"
|
||||||
|
end_date = "datetime.now() + timedelta(days=31)"
|
||||||
|
item_types = ["VEVENT"]
|
||||||
|
url = "http://localhost:1080/users/evie.litherland-smith@ukaea.uk/calendar"
|
||||||
|
username = "evie.litherland-smith@ukaea.uk"
|
||||||
|
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Mail/Outlook/ukaea | head -n1"]
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue