Gcalcli

From wikinotes

Gcalcli allows you to interface with google-calendar from the CLI.
It connects directly to google each time.

Documentation

homepage https://github.com/insanum/gcalcli

Usage

gcalcli list                 # list all calendars
gcalcli search               # search events matching string


gcalcli agenda               # agenda view
gcalcli calw                 # week view
gcalcli calm                 # month view

gcalcli --cal bdays calm     # restrict to single calendar

gcalcli add --cal main                                  # Add event to calendar
gcalcli quick --cal main "dinner at mom 8pm tomorrow"   # quick add event
gcalcli delete --cal main dinner                        # search for event to interactively delete


## Haven't successfully used reminder yet
gcalcli remind 5 echo "REMINDER"                  # schedule a reminder with command to be executed


# Install
packer -S gcalcli
   ### NOTE
   ### During install of gcalcli,  modify the pkgbuild for gcalcli.
   ### Add a new line to the end of procedure build() :
   ### (this forces python2 instead of python)
   ### sed -i -e '1s/$/2/' ${pkgdir}/usr/bin/gcalcli

yaourt -S python2-parsedatetime       #for fuzzy dates 'now, tomorrow etc'


# Setup
gcalcli agenda       #will prompt you to open web browser for initial pairing

# *** NOTE *** ADDING CALENDARS TO GOOGLE CALENDAR REQUIRES YOU TO DELETE
# THE TWO .GCALCLI FILES in $HOME AND RE-SYNCHING