sudo apt-get install gcalcli
“Google deprecated the old APIs that 2.x relies on a couple years back and EOL'd them effective yesterday. You'll need to upgrade to the 3.x release tree to get it working again.” https://github.com/insanum/gcalcli/issues/153
sudo apt-get purge gcalcli rm ~/.gcalclirc # the old .config file NOT compatible with new program version
sudo apt-get install git python-pip python-gdata python-dateutil python-gflags python-vobject python-parsedatetime python-googleapi
git clone https://github.com/insanum/gcalcli.git cd gcalcli sudo python setup.py install pip install vobject parsedatetime
wget https://launchpad.net/~cjohnston/+archive/ubuntu/ppa/+files/python-parsedatetime_1.2-1~ubuntu14.04.1~ppa1_all.deb sudo gdebi python-parsedatetime_1.2-1~ubuntu14.04.1~ppa1_all.deb # requires having installed gdebi
Reference: http://askubuntu.com/questions/468907/how-to-set-up-gcalcli
gcalcli list --noauth_local_webserver
which will output a message that starts with
WARNING:root:This function, oauth2client.tools.run(), and the use of the gflags library are deprecated and will be removed in a future version of the library. Go to the following link in your browser:
https://accounts.google.com/o/oauth2/auth?
chmod 700 ~/.gcalcli_oauth # set permissions so only this user can access this file.
sudo apt-get install conky-all ttf-dejavu ttf-dejavu-core ttf-dejavu-extra
Reference: https://github.com/insanum/gcalcli
nano ~/.conky/conkyrc_gcalcli # copy & past the following text into this empty file
alignment top_left
background no
border_width 0
cpu_avg_samples 2
default_color white
default_shade_color black
default_outline_color white
own_window_colour black
color0 white
color1 #333399
color2 white
color3 #333333
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=8
gap_x 5
gap_y 25
minimum_size 600 5
maximum_width 800
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 96
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
text_buffer_size 8096
TEXT
# uncomment the below line for a 2 week Calendar
#${execpi 300 gcalcli --conky --nolineart --color_border black --color_date white --color_now_marker red --calendar "Holidays"#white --color_owner green --width 13 calw 2}
# uncomment the below line for a 2 day Agenda
#${execpi 300 gcalcli --conky --nolineart --color_date white --calendar "Holidays"#white --color_owner green --detail_description agenda today tomorrow}
nano ~/.conky/conkystart.sh # uncomment the line to run the Google Calendar Conky
At the bottom of the conkystart.sh startup script, uncomment the last line (remove the leading #), so the Google Calendar Conky will run when the user logs in.