Open alensiljak opened 12 months ago
ox-icalendar.el
(https://github.com/emacs-mirror/emacs/blob/master/lisp/org/ox-icalendar.el) is an excellent reference. I haven't used VTODO
components yet, but other features like VALARM
work out-of-the-box.
Just for reference, as this approach has been serving me well: I use
(setq org-icalendar-combined-agenda-file "~/org/sync/org-journal.ics")
(defun hrdl/org-journal-calendar-export ()
"Call `org-icalendar-combine-agenda-files' and upload to WebDAV server."
(org-icalendar-combine-agenda-files)
(start-process "sync-org-ics" "sync-org-ics" "sync-org-ics"))
(advice-add 'org-journal-after-save-hook :after #'hrdl/org-journal-calendar-export)
and upload this using sync-org-ics
:
URL="https://$MACHINE/$LOGIN/$RESOURCE/"
PASSWORD="$(secret-tool lookup $LOGIN password)"
FILEPATH=~/org/sync/org-journal.ics
resp=$(curl --netrc-file <(cat <<<"machine $MACHINE login $LOGIN password $PASSWORD") \
-X PUT --data-binary "@$FILEPATH" "$URL")
if [[ ! -z $resp ]]; then
notify-send "sync-org-ics-failed" "$resp"
fi
Original request: https://github.com/orgzly/orgzly-android/issues/946
The purpose of this request is summarized in this comment: