
{"id":3795,"date":"2014-08-16T14:21:39","date_gmt":"2014-08-16T14:21:39","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=3795"},"modified":"2014-08-16T14:21:39","modified_gmt":"2014-08-16T14:21:39","slug":"gcalcli-google-calendar-command-line","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2014\/08\/gcalcli-google-calendar-command-line\/","title":{"rendered":"Gcalcli &#8211; Google Calendar in Command Line \/Desktop Widget"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/google-calendar-logo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2132\" alt=\"Google Calendar desktop widget command line\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/google-calendar-logo.jpg\" width=\"230\" height=\"230\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/google-calendar-logo.jpg 230w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/google-calendar-logo-150x150.jpg 150w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p>Gcalcli is a command line tool for Linux users to manage Google Calendar. It allows you to get your agenda, search for, add, delete, edit events and even import those annoying ICS\/vCal invites from Microsoft Exchange and\/or other sources.<\/p>\n<p>Additionally, gcalcli can be used as a reminder service and execute any application you want when an event is coming up.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/google-calendar-terminal.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3796\" alt=\"Google Calender in Command Line\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/google-calendar-terminal-1024x552.jpg\" width=\"610\" height=\"328\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/google-calendar-terminal-1024x552.jpg 1024w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/google-calendar-terminal-300x161.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/google-calendar-terminal.jpg 1362w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Gcalcli features:<\/p>\n<ul>\n<li>OAuth2 authention with your Google account<\/li>\n<li>list your calendars<\/li>\n<li>show an agenda using a specified start\/end date and time<\/li>\n<li>ascii text graphical calendar display with variable width<\/li>\n<li>search for past and\/or future events<\/li>\n<li>&#8220;quick add&#8221; new events to a specified calendar<\/li>\n<li>&#8220;add&#8221; a new event to a specified calendar (interactively or automatically)<\/li>\n<li>&#8220;delete&#8221; event(s) from a calendar(s) (interactively or automatically)<\/li>\n<li>&#8220;edit&#8221; event(s) interactively<\/li>\n<li>import events from ICS\/vCal files to a specified calendar<\/li>\n<li>support for URL shortening via goo.gl<\/li>\n<li>easy integration with your favorite mail client (attachment handler)<\/li>\n<li>run as a cron job and execute a command for reminders<\/li>\n<li>work against specific calendars (by calendar name w\/ regex)<\/li>\n<li>flag file support for specifying option defaults<\/li>\n<li>colored output and unicode character support<\/li>\n<li>super fun hacking with shell scripts, cron, screen, tmux, conky, etc<\/li>\n<\/ul>\n<p><b>Install Gcalcli in Ubuntu:<\/b><\/p>\n<p>This python app is available in the default repositories of Ubuntu 14.04, Ubuntu 14.10, and Ubuntu 12.04. So we can easily install it by running below command (or via Software Center):<\/p>\n<pre style=\"border:none;\">sudo apt-get install gcalcli<\/pre>\n<p>For Ubuntu 14.04 LTS, due to <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/parsedatetime\/+bug\/1302963\" target=\"_blank\">this bug<\/a>, we need to download &#038; install the latest <a href=\"https:\/\/launchpad.net\/ubuntu\/+source\/parsedatetime\" target=\"_blank\">parsedatetime 1.2<\/a> to get gcalcli work.<\/p>\n<pre style=\"border:none;\">cd \/tmp\n\nwget https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/python-parsedatetime_1.2-1_all.deb\n\nsudo dpkg -i python-parsedatetime_1.2-1_all.deb<\/pre>\n<p><b>How to Use Gcalcli:<\/b><\/p>\n<p>Before getting started, set up your Google Account via:<\/p>\n<pre style=\"border:none;\">nano ~\/.gcalclirc<\/pre>\n<p>Type in below as its content:<\/p>\n<blockquote><p>[gcalcli]<br \/>\nuser: GMAIL-ACCOUNT<br \/>\npw: PASSWORD<\/p><\/blockquote>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/gcalcli-googleaccount.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/gcalcli-googleaccount.jpg\" alt=\"gcalcli-googleaccount\" width=\"580\" height=\"370\" class=\"aligncenter size-full wp-image-3797\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/gcalcli-googleaccount.jpg 580w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/gcalcli-googleaccount-300x191.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>After saving the changes by <b>Ctrl+X<\/b>, type <b>y<\/b>, and hit <b>Enter<\/b>, use the tool via below commands:<\/p>\n<p>To get your agenda:<\/p>\n<pre style=\"border:none;\">gcalcli agenda<\/pre>\n<p>To get a month agenda in a nice calendar format:<\/p>\n<pre style=\"border:none;\">gcalcli calm<\/pre>\n<p>Quick add an event:<\/p>\n<pre style=\"border:none;\">gcalcli quick 'text here'<\/pre>\n<p>For more, run:<\/p>\n<pre style=\"border:none;\">gcalcli --help<\/pre>\n<p><b>Display Google Calendar as Desktop Widget:<\/b><\/p>\n<p>With this command line tool, you can also display Google Calendar on your desktop through conky. To do so, first install the required packages:<\/p>\n<pre style=\"border:none;\">sudo apt-get install conky ttf-dejavu ttf-dejavu-core ttf-dejavu-extra<\/pre>\n<p>Then download the conky script (thanks to lffl.org):<\/p>\n<pre style=\"border:none;\">cd && wget https:\/\/dl.dropboxusercontent.com\/u\/209784349\/lffl\/.conkyrc.txt && mv .conkyrc.txt .conkyrc<\/pre>\n<p>Finally run <code>conky<\/code> from terminal or <b>Alt+F2<\/b> command box and you&#8217;ll see something like below:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/Google-Calendar-widget.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/Google-Calendar-widget.jpg\" alt=\"Google-Calendar-widget\" width=\"580\" height=\"307\" class=\"aligncenter size-full wp-image-3798\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/Google-Calendar-widget.jpg 580w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/Google-Calendar-widget-300x158.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p style=\"text-align:right;\">via: <a href=\"https:\/\/github.com\/insanum\/gcalcli\" target=\"_blank\">github<\/a>, <a href=\"http:\/\/www.lffl.org\/2014\/08\/gcalcli-accedere-google-calendar-terminale-linux.html\" target=\"_blank\">lffl.org<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Gcalcli is a command line tool for Linux users to manage Google Calendar. It allows you to get your agenda, search for, add, delete, edit events and even import those annoying ICS\/vCal invites from Microsoft Exchange and\/or other sources. Additionally, gcalcli can be used as a reminder service and execute any application you want when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[761],"class_list":["post-3795","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-google-calender"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/3795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=3795"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/3795\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=3795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=3795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=3795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}