insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.26k stars 307 forks source link

Seeing event duration // Retrieving raw input #618

Open mariabrbz opened 2 years ago

mariabrbz commented 2 years ago

Hi,

I was wondering if there is any way to get the event duration when using the agenda? Additionally, I would like to further manipulate the output from the agenda. For example, I would like to retrieve the event name and time it starts at and use it in my Python code. I get it from the terminal using subprocess.check_output but the output has a lot of the table variables and it's not very easy to clean up to get the event details only. Is there any easy way to do this?

Thanks!

pietro14 commented 2 years ago

Hi, I was having your same problem and I just found a possible solution:

gcalcli agenda --details=all

This way you get both the event duration and the ending time.

If you need just the end time, you can do:

gcalcli agenda --details=end

Hope it helps

franzinc commented 3 months ago

@pietro14 Looks like --details is gone. Is there a replacement?