Google Calendar

by slgobinath
UUID: googleCalendar@javahelps.com
Score: 8
Last edited: 2 weeks ago
Last commit: 1c81621733ef8cfaf10c65caf413c6bc55dca139

A desklet that displays your agenda based on Google Calendar

Google Calendar Desklet

Google Calendar Desklet displays your agenda based on your Google Calendar in Cinnamon desktop.

You can configure the every aspect of the desklet using the configure dialog in terms of selecting calendars and configuring the look and feel. However, the agenda is displayed using text so there can be any minor issues with alignments.

For the moment, the desklet has not been tested with different displays or aspect ratios so there can be issues with scaling.

Requirements

  • gcalcli

Installation

  1. Install gcalcli using the following command:

    sudo apt install gcalcli
  2. Launch gcalcli with a parameter listfrom terminal and configure the user account

    gcalcli list

    Once you have execute the above command, gcalcli will open a web page and ask you to provide the permission to access your Google Calendar.

  3. Add the Google Calendar desklet and enjoy!!!

Features

  • Select events from multiple calendars of the same Google account
  • Custom date range
  • Customize update frequency
  • Manually update the agenda by clicking on the desklet
  • Customize the look and feel

The Cinnamon Desklet does not render the markup styles properly. Visting GitHub will show the commands more clearly using different fonts.

Log In To Comment!

28 Comments

zeropointo
zeropointo-1 week ago
I found that I could not set the Interval in the configuration without it reverting back to 7 days. The solution was forcing the desired value (e.g. 30 days) in the source code by commenting out lines 184 and 186 and editing line 185. Here's a screen capture of the change: https://imgur.com/a/0983Q
ZeroPointO
ZeroPointO-1 week ago
It appears that I can't change ANY values in the configuration dialog. I also noticed the value that I previously changed flipping back and forth between 7 (default) and 30 (configured) rapidly in the dialog. I loaded up the weather desklet for comparison and had no issue changing configuration values there.
Gobinath
Gobinath-6 days ago
Hi,
Can you check the permission of this directory:
```
.local/share/cinnamon/desklets/googleCalendar@javahelps.com
```
You must have read/write permission to this directory and all of its sub directories.
DiegoBari
DiegoBari-1 week ago
I used the desklet and it worked wonders. I find it very useful. Now shows me the message "No events found".
On the other hand, gcalcli works well in the terminal.
I have tried what the hypergargalesthesia user says but nothing works.
Checking the file /.local/share/cinnamon/desklets/googleCalendar@javahelps.com/output.txt I see that it is empty.
Any idea how to make the desklet work?
Thank you
Gobinath
Gobinath-6 days ago
Hi,
Can you check the permission of this directory:

.local/share/cinnamon/desklets/googleCalendar@javahelps.com

You must have read/write permission to this directory and all of its sub directories.
ヴェンガゾグリムズビ(hypergargalesthesia)
Hello, it's a nice desklet; however, it shows no event. I tried the gcalcli --refresh --nocache agenda --detail_length --nostarted --tsv already. But stil...
Plus, the things it shows are birthdays, holidays, and events. How about reminders?
Gobinath
Gobinath-2 weeks ago
Hi,
Sometimes if gcalcli cannot connect to the internet, the desklet may says 'No events found...'. This happens mostly at the startup if your computer takes time to establish the connection. In such cases, just click on the desklet to reload the agenda.
If it is still showing 'No events found', there can be problems in parsing the gcalcli output. In such case, please share the content of `~/.local/share/cinnamon/desklets/googleCalendar@javahelps.com/output.txt` with me in GitHub.
Reminders are not supported by this desklet. The whole purpose of this desklet is just showing your agenda on the wall.
Frank
Frank-1 month ago
So, to use your really super idea for a desklet, all we have to do is install this program package, gcalci and then launch it in a Terminal window to configure the user account.

One TINY problem: YOU FAILED TO EXPLAIN HOW TO LAUNCH THE BLOODY PROGRAM!!

I spent over AN HOUR of my valuable time figuring out how to do something THAT SHOULD HAVE BEEN EXPLAINED IN THE DOCUMENTATION!!

Awwww....do you feel bad now? All upset because I chewed on you? GOOD! Maybe next time you'll remember to include ALL of the relevant information in your documentation.
Gobinath
Gobinath-1 month ago
I developed this project for my personal use and shared here in case if anyone else finds it useful. By doing so, I have no benefits except spending my own time to write code answering questions. So I have nothing to feel bad :)
Some markup styles are not rendering properly here so now I have shared the link to the GitHub readme as well. Anyhow if you find more ways to improve the document, please go ahead and contribute to the opensource community by updating the document :)
Dávid Franko
Dávid Franko-1 month ago
Well, I have a pretty big problem here. I have installed "gcalcli" then runned Google Calendar desklet, but its empty. I approved connection on google. JBut jst little trasparent empty square appears. I configured it, added calendar name, but it does not work for me :/ . I really like it, but 2 hours passed and I can not get it running.
Dávid Franko
Dávid Franko-1 month ago
https://prnt.sc/gl8rss Something like this
Gobinath
Gobinath-1 month ago
Hi,
Could you please check whether you get any outputs for the following command:
gcalcli --refresh --nocache agenda --detail_length --nostarted --tsv

If the above command prints anything, clear all calendar names in settings and refresh the desklet (Just click on it).
Also, check the content of the following file:
~/.local/share/cinnamon/desklets/googleCalendar@javahelps.com/output.txt
Dávid Franko
Dávid Franko-1 month ago
The content of "~/.local/share/cinnamon/desklets/googleCalendar@javahelps.com/output.tx" is https://prnt.sc/glmx8s. And "gcalcli --refresh --nocache agenda --detail_length --nostarted --tsv" showed https://prnt.sc/glmyej.
Gobinath
Gobinath-1 month ago
Hi,
Why do you use sudo for gcalcli? It should work without sudo. The output.txt is the output when the desklet executes gcalcli. According to that, gcalcli has some issues running without root privilege.
I think since you are executing the gcalcli as root, the authentication details are stored in the root home. Try to execute the same command I provided without sudo and then refresh the desklet.
Dávid Franko
Dávid Franko-1 month ago
Well, when I dont use sudo, it says "Premission denied" as following: https://prnt.sc/gloegc
Dávid Franko
Dávid Franko-1 month ago
Okay I solved it. I have just changed the permissions of ".gcalcli_oauth" that I can read and write as normal user too. And its now working. Anyway thanks for help ^-^. Love that app
Gobinath
Gobinath-1 month ago
It's my pleasure to help you :-)
I hope now you can delete those screenshots which you have shared due to privacy reasons.
Dávid Franko
Dávid Franko-1 month ago
Well, that might be a problem. Could you delete whole section?
Gobinath
Gobinath-1 month ago
Sorry, I also comment here just as a user. No such privileges.
Kacper Nowak
Kacper Nowak-1 month ago
Is available some translations, ex. polish?
Gobinath
Gobinath-1 month ago
Hi,
Translation support to Google Calendar Desklet is added by NikoKrause. He also has added German translation. Users are welcomed to translate to other languages.
Gobinath
Gobinath-1 month ago
Not yet.
I will consider this in upcoming releases.
Erwin Baeyens
Erwin Baeyens-1 month ago
Nice and practical desklet. On fedora getting needed the gcalcli to work was a bit of a chanllenge. Tip you need to install it using sudo pip gcalcli, and not via the rpm that can be found via pkgs.org as it is severely out of date; version 1.4.5 instead of 3.4.1 that is current.
After I figured that out it was just a matter of running "gcalcli list" and approving access to the calendar.

One small point of critique; the transparency slider should really work the other way around, so that 0 is fully opaque and 100 is fully transparent.
Gobinath
Gobinath-1 month ago
Thanks for pointing out the transparency slider issue. I have fixed it and the changes are merged to the official repo.
Please update the desklet.
Tom Ulrich
Tom Ulrich-2 months ago
Absolutely useful and functional desklet! I just love it in the morning right before I usually check the mails and news to have my appointments at a glance. Just great! Hope many of you hit the "give the developer a coffee" button at paypal ;-)
Michael Freeman
Michael Freeman-2 months ago
Launching "gcalcli" from the terminal gives me "Error: no command".

Running "man gcalcli", I cannot see any information about how to configure a user account, although man pages are always horribly difficult to slog through and understand the syntax of. Perhaps I missed it.

In any case, this isn't working. I need more setup instructions.
Gobinath
Gobinath-1 month ago
Thank you for your solution. I have updated the README file.

https://github.com/linuxmint/cinnamon-spices-desklets/tree/master/googleCalendar@javahelps.com
caebo
caebo-2 months ago
You need a command after "gcalcli". So for example type "gcalcli list" to see your calendars. This should open a new window in your browser to authenticate yourself.
I had to delete the desklet and create it anew after that.