Page 1 of 1

Simplest way to read out the calendar to another program

Posted: Tue Jan 25, 2011 11:23 am
by jayrock
Hi,

I want to read out the entries in the calendar for further processing in my program running on the HDA. I could think of different ways of doing this:

(i) direct programmatic access to the calendar (Ruby preferred) - how is this done?
(ii) read items from the SQL database (if I got it right the calendar uses SQL, right?) - where is the database?
(iii) let the program trigger export to a text file, then read and parse that text file - how can I trigger export?
(vi) ....?

I'm looking for advise which way is reliable yet easy to program. Either of the a.m methods, I'm glad for some hints to get started.

Thanks,

jayrock

Re: Simplest way to read out the calendar to another program

Posted: Fri Jan 28, 2011 5:51 am
by bigfoot65
The calendar must be created and published from a client, like MS Outlook or Sunbird. It is not in a database on the HDA. See http://wiki.amahi.org/index.php/Calendars for more info.

Keep in mind the Calendar function on the HDA is a display only. If you want to have read/write access to a calendar and export it for further processing I recommend you try Web Calendar (http://www.amahi.org/apps/webcalendar).

Re: Simplest way to read out the calendar to another program

Posted: Fri Jan 28, 2011 9:35 am
by jayrock
Thanks bigfoot65,

I found my way through calendar, webcalendar and icalendar.

Cheers

/jayrock