The Following User Says Thank You to dov For This Useful Post: | ||
![]() |
2011-01-06
, 10:44
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#2
|
Is there any way of accessing the calendar from the command line? E.g. I would like to write add a calendar quick add widget that does the follows:
1. Pops up a small entry widget in which I would type something like:
Lunch with Ron next Wednesday at 12:00
2. A freetext format parses would convert this into an ical file.
3. The widget should somehow import the ical file into the calendar db.
The question is how to do step number 3?
![]() |
2011-01-06
, 12:16
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#3
|
![]() |
2011-01-06
, 12:57
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#4
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
![]() |
2011-01-06
, 13:22
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#5
|
![]() |
2011-01-06
, 13:52
|
Posts: 81 |
Thanked: 45 times |
Joined on Dec 2009
|
#6
|
The only way I know is using the calendar-backend API.
http://maemo.org/api_refs/5.0/5.0-fi...4d8d5b8d043570
But if you do so, you can just skip step 2 and 3 and use
the API for adding a new task.
Feel free to ask me if you have any questions. I used the calendar
API in my calendar-home-widget and my scout application.
Nicolai
![]() |
2011-01-06
, 14:08
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#7
|
@nicolai
The link you pointed me at imports ICS data. Do you have a link to this format, or did you suggest that I use non-file methods of the API? Is it the same fromat as the VCARD file format mentioned in: http://en.wikipedia.org/wiki/ICalendar ?
Regarding your programs scout and calendar-home-widget, are the sources available for reference?
Thanks a lot!
![]() |
2011-01-06
, 14:20
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#8
|
The Following User Says Thank You to Khertan For This Useful Post: | ||
![]() |
2011-01-06
, 14:37
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#9
|
sqlite3 ~/.calendardb
Insert into Components (CalendarId, ComponentType, Flags, DateStart, DateEnd, Summary, Status, AllDay, Until, CreatedTime, ModifiedTime, Tzid, TzOffset) VALUES (1, 2, -1, 1294095600, -1, 'Test Insert Todo Non valide', 0, -1,0,1294087227,1294144124,'Europe/Paris',3600);
^D
The Following User Says Thank You to Khertan For This Useful Post: | ||
![]() |
2011-01-06
, 15:03
|
Posts: 81 |
Thanked: 45 times |
Joined on Dec 2009
|
#10
|
1. Pops up a small entry widget in which I would type something like:
Lunch with Ron next Wednesday at 12:00
2. A freetext format parses would convert this into an ical file.
3. The widget should somehow import the ical file into the calendar db.
The question is how to do step number 3?