From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Persaud Subject: Re: Status google calendar sync Date: Fri, 21 Jan 2011 10:19:20 -0800 Message-ID: <4D39CE28.4000005@lbl.gov> References: <4D3945ED.9060605@gmail.com> <4D39555C.8050902@manor-farm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50918 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgLa3-00020l-P8 for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 13:19:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgLa2-0008El-Ct for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 13:19:27 -0500 Received: from ironport3.lbl.gov ([128.3.41.25]:54187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgLa2-0008Eb-8X for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 13:19:26 -0500 Received: by mail-px0-f180.google.com with SMTP id 17so421183pxi.39 for ; Fri, 21 Jan 2011 10:19:24 -0800 (PST) In-Reply-To: <4D39555C.8050902@manor-farm.org> 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: emacs-orgmode@gnu.org Hi I'm in the middle of setting something up, at the moment I import google events into org by using the google command line interface on my linux machine. For this I changed the line in the config for googcl to print out an org timestamp and also changed the fields to be printed by using: date_print_format = <%Y-%m-%d %a %H:%M> list_style = title,when,where,url-site in the general option of .googlecl/config. With this I create a .org file with all my google calendar entries by running the following script every N minutes (header + one line sed): ---script start--- #!/bin/bash # get my google calendar items and create a org-mode file # output header echo "#+STARTUP: overview #+TAGS: @google(g) #+FILETAGS: @google #+SEQ_TODO: GCAL #+STARTUP: hidestars " > ~/org/mygooglecal.org # output entries google calendar list | sed -e 's/\(.*\),\(.*\) - \(.*\),\(.*\),\(.*\)/* GCAL \1\n SCHEDULED: \2--\3\n Location: \4\n link: [[\5][link]]/' >> ~/org/mygooglecal.org ----script end---- and by just adding this file to my agenda everything seems to be working fine... To sync between different computers I use git with an automated commit, pull and push, which makes the google entries available on all of my other computers. 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? regards Arun