From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Martins Subject: Re: Google calendar to org mode script and a feature request for agenda Date: Wed, 7 Jul 2010 17:38:45 -0300 Message-ID: References: <87d3v95v87.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWbON-00019s-4c for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 16:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWbOK-0004ku-Kx for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 16:38:50 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:44061) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWbOK-0004kc-HA for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 16:38:48 -0400 Received: by vws1 with SMTP id 1so119612vws.0 for ; Wed, 07 Jul 2010 13:38:47 -0700 (PDT) In-Reply-To: <87d3v95v87.wl%ucecesf@ucl.ac.uk> 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: Eric S Fraga Cc: org-mode mailing list Eric, Your awk seems to get timed appts in GMT How can I adapt it to GMT-3 Daniel 2010/6/29 Eric S Fraga : > Hello, > > I finally got myself an Android phone (and am loving it, especially > with an "all you can eat" data plan :-). =A0I have tried mobileorg for > Android but it's obviously early days and it's actually not really > what I want. > > However, I am very happy with the Google syncing provided by the > phone, both for email and for the calendar. =A0This has caused me to > revisit the possibility of a smoother integration between Google's > calendar and org-mode. > > First, I have created an awk script (yes, I'm dating myself: I do use > awk in preference to perl et al.) which allows me to convert the iCal > export from Google calendar to a sequence of org headlines (see > attached). =A0It's a preliminary version and seems to translate what I > need: simple day and timed events, mostly those that I will tend to do > on the phone as opposed to when I'm at my computer. =A0I'm not trying > for a comprehensive translation program here... =A0but I'm putting it on > the list in case anybody finds it useful. > > I use this script as follows: > > =A0 wget [address specified by google for my calendar] =A0--> basic.ics > =A0 awk -f ical2org.awk < basic.ics >> googlecalendar.org > > this appends any entries in my specific google calendar to the given > org file. =A0When I go the other way (creating an ics file from org), I > import the org items into a different calendar on google. =A0When > entries have been synced, I typically delete the original entries > placed in google to avoid them being downloaded over and over again > [1]. > > * A feature request: time prompt for insert diary agenda function > > Anyway, my increased use of google's calendar, has highlighted a > short-coming (?) of the agenda view (or more strictly speaking, the > iCal exporter): entries in which the time of appointment, say, is on > the headline but the date is on the following line, say, get converted > to "day" events as opposed to day+time events. =A0I.e. something like > > =A0 * 11am meeting with colleages > =A0 =A0 <2010-06-30 Wed> > > does not get exported as a timed event. =A0Obviously, the easy solution > is to put the time in the date stamp. =A0However, I like using the > "insert diary" function in the agenda view for defining appointments > and this doesn't allow the time to be specified other than in a > headline. =A0Would it be possible to enhance the insert diary function > to prompt for a time (and while we're at it, tags as well)? > > Thanks, > eric > > > Footnotes: > [1] =A0it may be possible to use the unique ID for each event to avoid cr= eating duplicates... something to look at in the future. > > > -- > Eric S Fraga > GnuPG: 8F5C 279D 3907 E14A 5C29 =A0570D C891 93D8 FFFC F67D > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >