Recently I’ve been on a bit of a command line kick and I started using khal to render my calendar agenda locally.
All of the codebases used are python based so before I start I’ve created a virtualenv so as not to pollute my OS.
mkvirtualenv khal workon khal
Vdirsyncer
Firstly we need to setup Vdirsyncer, which is used to actually download your caldav entries to a local folder which khal then reads from.
pip install vdirsyncer
Then to configure it create a file in ~/.vdirsyncer/config and adding these contents, replacing the username/password with your own.
Then run an initial vdirsyncer command, this will create a bunch of folders under ~/.vdirsyncer/fastmail, each of these represents each of the calendars you have in fastmail.
Khal
pip install khal
Now to configure khal we create this file in ~/.config/khal/config with the contents, replace the folder_id_* with the actual foldernames in ~/.vdirsyncer/fastmail
Now if you run khal you should get a nice calendar view with an agenda next to it.
Aliases
To keep things simple I created an alias that allows me to pop into this virtualenv, sync my calendars and display khal whenever I need my calendars displayed.
alias khal='workon khal && vdirsyncer sync && khal'