From: "Saša Janiška" <gour@atmarama.com>
To: emacs-orgmode@gnu.org
Subject: syncing multiple calendars with org-caldav
Date: Thu, 01 Mar 2018 14:17:33 +0100 [thread overview]
Message-ID: <87k1uwhr4i.fsf@atmarama.com> (raw)
Hello,
in the past I was using org-caldav package to sync my calendar (and
contacts) entries with my Android phones via Baikal server, but at some
point it got broken - see
https://github.com/dengste/org-caldav/issues/51 so I had to resort to
another solution by using vdiryncer.
Recently, I found out that org-caldav is supposed to work (again) with
multiple calendars and there is example:
setq org-caldav-calendars
'((:calendar-id "work@whatever" :files ("~/org/work.org")
:inbox "~/org/fromwork.org")
(:calendar-id "stuff@mystuff"
:files ("~/org/sports.org" "~/org/play.org")
:skip-conditions (regexp "soccer")
:inbox "~/org/fromstuff.org")) )
in its README file,
(https://github.com/dengste/org-caldav/blob/master/README.md)
but I must admit it's not clear how one is supposed to configure
:skip-conditions
function?
I have a neeed for 4 or 5 calendars: my own, one for wife's activities,
one for the kid's, another using special calendar, birthdays...
I did try with this setup:
* I did add required calendars to my org-agenda-files, like:
(setq org-agenda-files
(list "~/emacs/org/gour.org"
"~/emacs/org/wife.org"
"~/emacs/org/kid.org"
"~/emacs/org/special.org"
"~/emacs/org/birthdays.org"
"~/emacs/org/calendar.org"
)
and I want that calendar.org does contain all the entries which do
arrive from the Android phones.
* here is org-caldav's part of setup:
(setq org-caldav-calendars
'((:calendar-id "gour" :files ("~/emacs/org/gour.org")
:inbox "~/emacs/org/calendar.org")
(:calendar-id "jahnava" :files ("~/emacs/org/wife.org")
:inbox "~/emacs/org/calendar.org")
(:calendar-id "kirtana" :files ("~/emacs/org/kid.org")
:inbox "~/emacs/org/calendar.org")
(:calendar-id "vaishnava" :files ("~/emacs/org/special.org")
:inbox "~/emacs/org/calendar.org")
(:calendar-id "birthdays" :files ("~/emacs/org/birthdays.org")
:inbox "~/emacs/org/calendar.org")
)
)
So, I'd like to entry calendar entries for myself into gour.org and,
similarly to other adequately named *.org files, while calendar.org
should contain entries which were entered on the phone(s) and were
synced with my org files.
However, when I tried the above setup, one of the calendar got all the
duplicates from another, in my case, kid.org got all the entries from
wife.org.
Anyone can suggest how to incorporate :skip-conditions so that there
won't by any duplicates and every for every entry in my agenda it will
be clear where the entry does belong to?
In the test-suite I've noticed the following:
:skip-conditions (notregexp ":sometag:")
so maybe the setup could be done by adding specific tags (eg. ":kid:",
":wife:" etc. to the setup, but it's not clear to me how to configure
eveything for more than two calendars, although I'm not sure how e.g.:
:skip-conditions (regexp "soccer")
can prevent duplicate entries?
Sincerely,
Gour
--
As a blazing fire turns firewood to ashes, O Arjuna, so does the
fire of knowledge burn to ashes all reactions to material activities.
next reply other threads:[~2018-03-01 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 13:17 Saša Janiška [this message]
2018-04-26 23:34 ` syncing multiple calendars with org-caldav Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1uwhr4i.fsf@atmarama.com \
--to=gour@atmarama.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).