emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Arun Persaud <apersaud@lbl.gov>
Cc: emacs-orgmode@gnu.org
Subject: Re: Status google calendar sync
Date: Fri, 21 Jan 2011 23:58:30 +0000	[thread overview]
Message-ID: <87hbd124ih.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <4D39CE28.4000005@lbl.gov> (Arun Persaud's message of "Fri, 21 Jan 2011 10:19:20 -0800")

I also have been syncing between my Google calendar and org.  A while
back, I posted this message onto this list:

http://article.gmane.org/gmane.emacs.orgmode/26848

but check out later messages in the thread for an updated awk script.
This dealt with converting a Google calendar into an org file.  I still
use this.

For the other route, org to Google, I use the googlecl (command line)
interface:

http://article.gmane.org/gmane.emacs.orgmode/27214

Again, check out the subsequent messages in this thread.

I have promised to write this procedure up for Worg but have not managed
(yet) to get around to it.  Sorry.


Arun Persaud <apersaud@lbl.gov> writes:

[...]

> I haven't figured out how to export org to ics, so that google can read
> it... I would like to export only items that have a start and an end
> timestamp and don't have a google tag (which they get when they are
> imported from google). I think I need to add this to
> org-icalendar-verify-function, but don't know enough lisp to write
> something like this... any ideas?
>
> Ian: how do you export to ics? Complete via python?

Straightforward actually:

--8<---------------cut here---------------start------------->8---
#!/bin/sh -f
#
# export the diary (not all the agenda files) to iCal format and upload this
# to where Google's calendar application can find it so that all my diary
# entries are available on my phone (and obviously on the web as well!)
#
# 2010-06-30
DIARY=${HOME}/git/notes/diary
emacs -Q --batch --debug-init \
    --directory=${HOME}/s/emacs --directory=/usr/share/emacs/site-lisp/auctex \
    --load=esf-org.el --visit=${DIARY}.org --eval='(org-export-icalendar-this-file)'
scp ${DIARY}.ics SOMEWHEREONTHEWEB.ics
--8<---------------cut here---------------end--------------->8---

This script starts up emacs with my specific org customisations (and it
needs auctex as texmathp is loaded by org-latex), visits my main diary
file, evaluates the specific export function and then copies this file
to somewhere on the web.  This latter location is where I have told
Google to load entries from.  Google does this once a day, I believe,
some time in the middle of the night (my time).  I use this as a backup
to the direct entry to Google's calendar described above: I essentially
have two calendars in Google which correspond to org entries.  At some
point, I will (soon probably) stop doing this conversion approach and
rely on the google command line alone as the latter has proved to be
robust enough in general.

Hope this helps.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.231.ge879)

  reply	other threads:[~2011-01-21 23:58 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21  8:38 Status google calendar sync Torsten Wagner
2011-01-21  9:43 ` Ian Barton
2011-01-21 15:22   ` Nick Dokos
2011-01-21 18:19   ` Arun Persaud
2011-01-21 23:58     ` Eric S Fraga [this message]
2011-01-25 20:21       ` Arun Persaud
2011-01-26 12:33         ` Eric S Fraga
2011-01-26 23:29           ` Mark Elston
2011-01-27  0:52             ` Arun Persaud
2011-01-27  2:51               ` Mark Elston
2011-01-27 19:43                 ` Arun Persaud
2011-01-27 21:57                 ` Arun Persaud
2011-01-28 16:13                   ` Eric S Fraga
2011-01-31 19:03                     ` Bastien
2011-01-29  1:28 ` Greg Troxel
2011-01-29 12:45   ` Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2011-01-29 14:53 Torsten Wagner
2011-01-29 19:38 ` Mark Elston
2011-01-29 20:44   ` Greg Troxel
2011-01-30  4:36     ` Mark Elston
2011-01-30 13:28       ` Greg Troxel
2011-01-30 14:09         ` Eric S Fraga
2011-01-30 20:43           ` Arun Persaud
2011-01-30 21:36         ` Mark Elston
2011-01-30 14:01       ` Eric S Fraga
2011-01-30  1:21 ` Eric S Fraga
2011-01-31 10:02   ` Christopher Witte
2011-02-01  9:07     ` Eric S Fraga
2011-02-01  0:54 Torsten Wagner
2011-02-01  9:12 ` Eric S Fraga
2011-02-01 22:44 ` Sven Bretfeld
2011-02-02  5:15   ` Torsten Wagner
2011-02-02  8:30     ` Konrad Hinsen
2011-02-14 21:39       ` Marcelo de Moraes Serpa
2011-02-15  7:18         ` Konrad Hinsen
2011-02-15 16:37           ` Marcelo de Moraes Serpa
2011-02-15 16:43             ` Marcelo de Moraes Serpa
2011-02-15 16:55               ` Bastien
2011-06-10 16:58           ` Stephen Eglen
2011-06-10 17:04             ` Arun Persaud
2011-06-10 18:34               ` Stephen Eglen
2011-06-10 19:09                 ` Arun Persaud
2011-06-11 13:25                   ` Philipp Haselwarter
2011-06-11 18:38                     ` Nick Dokos
2011-06-15 19:00                       ` Eric S Fraga
2011-06-11 17:32                 ` Niels Giesen
2011-06-30 16:14                   ` Bastien
2011-06-15 18:45                 ` Eric S Fraga
     [not found]                 ` <87hb7rory9.fsf@ucl.ac.uk>
2011-06-16 12:13                   ` Stephen Eglen

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=87hbd124ih.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=apersaud@lbl.gov \
    --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).