Closed linuxcaffe closed 9 years ago
The events have to be in Google Calendar to be able to print an agenda. The dump option simply prints the stuff in the ics file and then quits. There is no ability to create an in-memory calendar and have it print in the agenda format. Stacked commands also aren't supported (the import/agenda stuff you have.) You'd have to do 2 different calls, 1 to import, 1 to print the agenda.
Also we currently use the python vobject module for parsing vcal/ics files. We don't look for any VTODO sections and only iterate over the VEVENT sections. This is most likely why you're seeing the python errors and corresponding stack trace. We could do a better job at catching exceptions. :-)
Well it's further off than I'd hoped, but not impossible.
I have to admit that as a taskwarrior user, I kind of lust after gcalcli agendas and calendars, and at the same time, I'm underusing my google calendar accounts, so you'll be seeing more of me :)
I'm still imagining using them separately, from tw, gcalcli is just used for display, otherwise, gcalcli does its regular google-calendar thing.. but it ain't gonna happen overnight ;-) Extending vcal objects to include (at least) VTODOs (they're not that different) would be a Good Thing(tm). Keep this silly function in mind as you do the plumbing, thanks for the kick-ass softwares, djp
Actually (insert arch-villain signature gesture) if gcalcli uses exclusively VEVENTSs here, and taskwarrior uses exclusively VTODOs.. we might be on to something.. (insert trademark laugh) Bug? or feature? YOU decide! In Mother Russia, the Bugs have Features!!
I have no problem adding code to gcalcli to support VTODO sections. As I understand it there is a DTSTART field but no DTEND. So maybe gcalcli imports them as a simple 30 min event starting at DTSTART. There is also SEQUENCE, REPEAT. and TRIGGER fields which I don't understand at this time.
How does taskwarrior export VTODO sections? Specifically what fields are used?
to explain that, as a crap programmer, I would have to point to the perl export script linked in the first post above (tasktools.org/gitweb/) have a look at that, quite short and explicit.
@insanum you can actually have an event that starts/ends at the same time. Google supports it just find. I would import tasks that way. If it's a date and not a time, I would import it as an all-day event. I believe the iCalendar documentation (RFC2445) explains what SEQUENCE/REPEAT/TRIGGER are for.
On Sat, Nov 2, 2013 at 4:39 PM, David J Patrick notifications@github.comwrote:
to explain that, as a crap programmer, I would have to point to the perl export script linked above (tasktools.org/gitweb/) have a look at that, quite short and explicit.
— Reply to this email directly or view it on GitHubhttps://github.com/insanum/gcalcli/issues/113#issuecomment-27634350 .
my variation on addition to no-specified-time would be that, because dated task with an unspecified time in tw gets a default 00:00:00 (I think) that that be considered an all-day event (VEVENT) too, and any specified time would be (?) a VTODO,, if I understand the spec (unlikely)
That could be part of the export-ical.pl plumbing, it's not carved in stone :)
Just dropping this little gem in here, http://tasklib.readthedocs.org/en/latest/#retrieving-tasks there is a python library that wraps taskwarrior which may be of more use than the perl script.
Closing unless or until someone has a patch for this.
Hey there gcalcli team! djp here from the taskwarrior team!
I'm trying to figure out how to use gcalcli import -d to display dated tasks as agenda, calw and calm, not dealing (yet) with any real google-calendar integration, just display for tw tasks, but I'm having no luck so far.
Taskwarrior(.org) ships with an ical export scripts that can be found here; http://tasktools.org/gitweb/?p=task.git;a=blob_plain;f=scripts/add-ons/export-ical.pl;hb=2.3.0 and I attempted a conversion line that looked something like
but that failed with a bunch of BowWowWow sort of errors.
Have I got the form all wrong ? (there is some contradictory instructions in the docs) is there anyone lurking that might want to give this a whirl? (tw feature discussion here: http://taskwarrior.org/boards/6/topics/3106#message-3107 )