timthelion's blog

Or maybe it's more of a pensieve-portfolio.

home| About me| 2008 | March| Feb| Jan| 2007|

Sun, 10 Aug 2008

Planner-ical-import

So I have created an ical-planner codec, this allows you to see your google calendar events in planner mode!! It's easy to install and use!

At the shell.

$cd ~/elisp
$wget http://www.timthelion.com/planner-ical-import-0.1.el
And add:
;; Get calendar info from google calendar into planner.
(require 'planner-ical-import)
 (setq planner-ical-external-calendars
       '("http://www.google.com/calendar/ical/calendar1/basic.ics"
         "http://www.google.com/calendar/ical/calendar3/basic.ics"))

(define-key planner-mode-map (kbd "C-c g") 'planner-ical-retrieve-updates)
You can get those URLs by going to google calendar and going to Settings->Calendars->Calendar-name->Private URLs, and then the ical icon.

Please note that the first time you run this it will take about 15 minutes, it comes down to about a second per new entry on subsiquent runnings. If you have multiple calendars you may have to run it twice the first time. If you have to cancel this, you'll have to go to planner-ical-muse-dir and delete the muse files that where created.

You of course don't have to use google calendar to use this program. You don't even have to use a web based calendar, to convert a local file do.

(planner-ical->planner-muse "~/basic.ics")
You can also use the codec strait without importing into planner at all.
(setq planner-ical-dryrun t)
(planner-ical->planner-muse "~/basic.ics" "~/output.muse")
That's all for now. Please note that this is very much alpha software, here are some things which are iffy. By design it is *impossible* for me to implement event deletion. That is if you delete an event in google calendar it won't go away locally. I have not added timezone support, though this would be quite easy I think. I did not add support for long entries, ones where the content continues on another line with a space before it. You can do this yourself and send me the patch.

[] |permanent link|comment


0 writebacks

writebacks...

trackback

TrackBack ping me at:

http://www.timthelion.com/cgi-bin/blosxom.cgi/Planner-ical-import.trackback

comment...

 
Name:
URL/Email: [http://... or mailto:you@wherever] (optional)
Title: (optional)
Vim or emacs: (anti spam mesure, just type emacs)
Comments:
Save my Name and URL/Email for next time


RSS