From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Status google calendar sync Date: Fri, 21 Jan 2011 23:58:30 +0000 Message-ID: <87hbd124ih.fsf@pinto.chemeng.ucl.ac.uk> References: <4D3945ED.9060605@gmail.com> <4D39555C.8050902@manor-farm.org> <4D39CE28.4000005@lbl.gov> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=44923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgQsH-000417-MH for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 18:58:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgQsG-0006Gy-Dl for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 18:58:37 -0500 Received: from vscani-b2.ucl.ac.uk ([144.82.108.135]:46807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgQsG-0006GJ-9f for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 18:58:36 -0500 In-Reply-To: <4D39CE28.4000005@lbl.gov> (Arun Persaud's message of "Fri, 21 Jan 2011 10:19:20 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Arun Persaud Cc: emacs-orgmode@gnu.org 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 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)