* [OT] org-caldav and radicale
@ 2015-01-19 4:05 Eric Abrahamsen
2015-01-19 20:59 ` Simon Thum
0 siblings, 1 reply; 3+ messages in thread
From: Eric Abrahamsen @ 2015-01-19 4:05 UTC (permalink / raw)
To: emacs-orgmode
I'm finally getting around to trying to have an Org-generated calendar
available on my Android tablet. I looked at a few caldav servers, and
settled on Radicale as looking like about the right level of
usability/configurability.
I don't think I'm doing it right, and can't find any examples online.
Can someone who's doing this (I know there are some of you) just show me
the basic configuration? Specifically, how do I create a new calendar on
the server, and how do I refer to it? My Radicale config has this:
[storage]
type = filesystem
filesystem_folder = /home/eric/apps/cal/collections
If I touch a file called "eric" in the "collections" directory, and then
access the server via HTTP (ie http://cal.myserver.com/eric), the file
is correctly served as an (empty) calendar and downloaded by my browser.
How do I get org-caldav to mesh with that? I thought this would do it:
(setq org-caldav-url "http://cal.myserver.com")
(setq org-caldav-calendar-id "eric")
But when I call `org-caldav-sync' it first collects all the headings
it's supposed to, and then gives me:
org-caldav-get-event-etag-list: Error while getting eventlist from
http://cal.myserver.com/eric/. Got status code: 207.
If I run it again, it offers to delete all the relevant Org headings.
I suspect I've just got something configured wrong, but can't think of
what. Any pointers?
Thanks!
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OT] org-caldav and radicale
2015-01-19 4:05 [OT] org-caldav and radicale Eric Abrahamsen
@ 2015-01-19 20:59 ` Simon Thum
2015-01-20 9:51 ` Eric Abrahamsen
0 siblings, 1 reply; 3+ messages in thread
From: Simon Thum @ 2015-01-19 20:59 UTC (permalink / raw)
To: emacs-orgmode
On 01/19/2015 05:05 AM, Eric Abrahamsen wrote:
> I'm finally getting around to trying to have an Org-generated calendar
> available on my Android tablet. I looked at a few caldav servers, and
> settled on Radicale as looking like about the right level of
> usability/configurability.
>
> I don't think I'm doing it right, and can't find any examples online.
> Can someone who's doing this (I know there are some of you) just show me
> the basic configuration? Specifically, how do I create a new calendar on
> the server, and how do I refer to it? My Radicale config has this:
Well I just put it on my server over http/DAV and have it
auto-regenerate from org (happens to be in git on the same machine)
using a script. But even if you generate locally and push, the following
might help you:
export bash script:
# export ical via org (funnyly, the X.org-trick causes harm here)
echo ">>> exporting iCalendar..."
emacs -batch -l ~/.emacs.d/init.el -l ~/bin/ical-export-3.el --kill
echo ">>> done with export."
export elisp script:
;; export icalendar using new icalendar exporter
(require 'ox-icalendar)
; remove-if and friends
(require 'cl)
; inhibit source block execution during export
(setq org-export-babel-evaluate nil)
;; TODO check this TZ (also if to give decimal 47 (solidus) prefix)
(setq org-icalendar-timezone "Europe/Berlin")
;; while this violates iCal (missing VTIMEZONE), it is the nicest of
options for my setup
(setq org-icalendar-date-time-format ";TZID=%Z:%Y%m%dT%H%M%S")
;; Mins alarm
(setq org-icalendar-alarm-time 15)
;; use inhertited tags for iCal categories (add TODO state?)
(setq org-icalendar-categories '(all-tags))
;; target file
(setq org-icalendar-combined-agenda-file "~/org-export/all.ics")
; create sumo "all.ics" iCal
(org-icalendar-combine-agenda-files)
; create one without external stuff; sadly tags cannot yet be used
(let (
(org-agenda-files (remove-if (lambda (f) (string-match "external"
f)) (org-agenda-files)))
(org-icalendar-combined-agenda-file "~/org-export/org-native.ics")
)
(org-icalendar-combine-agenda-files)
)
The last part (without external) is only relevant if you have external
calendars represented in org that you do not neccessarily want
re-represented in the ical. Anyway, tweak as neccessary.
HTH,
Simon
>
> [storage]
> type = filesystem
> filesystem_folder = /home/eric/apps/cal/collections
>
> If I touch a file called "eric" in the "collections" directory, and then
> access the server via HTTP (ie http://cal.myserver.com/eric), the file
> is correctly served as an (empty) calendar and downloaded by my browser.
>
> How do I get org-caldav to mesh with that? I thought this would do it:
>
> (setq org-caldav-url "http://cal.myserver.com")
> (setq org-caldav-calendar-id "eric")
>
> But when I call `org-caldav-sync' it first collects all the headings
> it's supposed to, and then gives me:
>
> org-caldav-get-event-etag-list: Error while getting eventlist from
> http://cal.myserver.com/eric/. Got status code: 207.
>
> If I run it again, it offers to delete all the relevant Org headings.
>
> I suspect I've just got something configured wrong, but can't think of
> what. Any pointers?
>
> Thanks!
> Eric
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OT] org-caldav and radicale
2015-01-19 20:59 ` Simon Thum
@ 2015-01-20 9:51 ` Eric Abrahamsen
0 siblings, 0 replies; 3+ messages in thread
From: Eric Abrahamsen @ 2015-01-20 9:51 UTC (permalink / raw)
To: emacs-orgmode
Simon Thum <simon.thum@gmx.de> writes:
> On 01/19/2015 05:05 AM, Eric Abrahamsen wrote:
>> I'm finally getting around to trying to have an Org-generated calendar
>> available on my Android tablet. I looked at a few caldav servers, and
>> settled on Radicale as looking like about the right level of
>> usability/configurability.
>>
>> I don't think I'm doing it right, and can't find any examples online.
>> Can someone who's doing this (I know there are some of you) just show me
>> the basic configuration? Specifically, how do I create a new calendar on
>> the server, and how do I refer to it? My Radicale config has this:
>
> Well I just put it on my server over http/DAV and have it
> auto-regenerate from org (happens to be in git on the same machine)
> using a script. But even if you generate locally and push, the
> following might help you:
Thanks Simon!
It's true that it wouldn't be too hard just to export an ics and get it
onto the server somehow. But I'd still like to use org-caldav, as it
allows for two-way syncing, and that gets more complex. I guess I'll
just poke around in org-caldav and see exactly what it's doing, and
figure out where I'm going wrong.
> export bash script:
>
> # export ical via org (funnyly, the X.org-trick causes harm here)
> echo ">>> exporting iCalendar..."
> emacs -batch -l ~/.emacs.d/init.el -l ~/bin/ical-export-3.el --kill
>
> echo ">>> done with export."
>
>
> export elisp script:
>
>
> ;; export icalendar using new icalendar exporter
> (require 'ox-icalendar)
>
> ; remove-if and friends
> (require 'cl)
>
> ; inhibit source block execution during export
> (setq org-export-babel-evaluate nil)
>
> ;; TODO check this TZ (also if to give decimal 47 (solidus) prefix)
> (setq org-icalendar-timezone "Europe/Berlin")
>
> ;; while this violates iCal (missing VTIMEZONE), it is the nicest of
> options for my setup
> (setq org-icalendar-date-time-format ";TZID=%Z:%Y%m%dT%H%M%S")
>
> ;; Mins alarm
> (setq org-icalendar-alarm-time 15)
>
> ;; use inhertited tags for iCal categories (add TODO state?)
> (setq org-icalendar-categories '(all-tags))
>
> ;; target file
> (setq org-icalendar-combined-agenda-file "~/org-export/all.ics")
>
> ; create sumo "all.ics" iCal
> (org-icalendar-combine-agenda-files)
>
> ; create one without external stuff; sadly tags cannot yet be used
> (let (
> (org-agenda-files (remove-if (lambda (f) (string-match
> "external" f)) (org-agenda-files)))
> (org-icalendar-combined-agenda-file "~/org-export/org-native.ics")
> )
> (org-icalendar-combine-agenda-files)
> )
>
>
> The last part (without external) is only relevant if you have external
> calendars represented in org that you do not neccessarily want
> re-represented in the ical. Anyway, tweak as neccessary.
>
>
> HTH,
>
> Simon
>
>>
>> [storage]
>> type = filesystem
>> filesystem_folder = /home/eric/apps/cal/collections
>>
>> If I touch a file called "eric" in the "collections" directory, and then
>> access the server via HTTP (ie http://cal.myserver.com/eric), the file
>> is correctly served as an (empty) calendar and downloaded by my browser.
>>
>> How do I get org-caldav to mesh with that? I thought this would do it:
>>
>> (setq org-caldav-url "http://cal.myserver.com")
>> (setq org-caldav-calendar-id "eric")
>>
>> But when I call `org-caldav-sync' it first collects all the headings
>> it's supposed to, and then gives me:
>>
>> org-caldav-get-event-etag-list: Error while getting eventlist from
>> http://cal.myserver.com/eric/. Got status code: 207.
>>
>> If I run it again, it offers to delete all the relevant Org headings.
>>
>> I suspect I've just got something configured wrong, but can't think of
>> what. Any pointers?
>>
>> Thanks!
>> Eric
>>
>>
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-20 9:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-19 4:05 [OT] org-caldav and radicale Eric Abrahamsen
2015-01-19 20:59 ` Simon Thum
2015-01-20 9:51 ` Eric Abrahamsen
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).