Google Calendar Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
6 .5
Description:

Adds Google Calendar events on your desktop. Supports any amount of different calendars, updates automatically and has many configuration options. Themeable and lightweight.

EASY INSTALL FOR UBUNTU

1. If Screenlets PPA is not already enabled on your system, either from software sources manager or terminal add ppa:screenlets-dev/ppa to the list of software sources (see http://www.screenlets.org/index.php/Download for help).

2. Refresh package list and install googlecalendar-screenlet from your favourite package manager or by clicking automatic installation link provided below.

If you don't use Screenlets PPA you have to manually install python-gdata package 2.0.10 or later (see http://code.google.com/p/gcalscreenlet/wiki/Installation for further instructions).

MORE ABOUT THE SCREENLET

Notice, that you can import basically any local or remote ICS calendar through your Google account. Since calendars are parsed by Google Data API, the representation of data should be highly accurate.

You can help to translate the Screenlet to your language at https://translations.launchpad.net/indiv-screenlets/trunk/+pots/googlecalendar-screenlet/.

You can submit fixes or enhancements for the Screenlet at https://launchpad.net/~indiv-screenlets-dev.

Please feel free to submit any new themes for the screenlet!
Last changelog:

9 years ago

0.4.9 Easy install from PPA etc

* Added gCal to the new official Screenlets PPA
* Added DIY overkill for customizing event list

0.4.8 Enhancement

* Custom time formatting

0.4.7 Themework

* Cleaned up the themes
* Added Ambiance theme by Denis Å andor

0.4.5 Improvements

* Font options fixed in spite of Screenlets framework bugs
* Added configurable labels for tomorrow/day after tomorrow
* Supplied example theme under name "Childish" (use with caution, because it overrides your precious font settings for the screenlet)

0.4.2 Bugfixes

* "Today" string will be updated immediately

0.4.1 Bugfixes

* Updating will survive internet connection failures
* Long lasting events from previous days not displayed
* Some more error feedback for users with problems

0.4.0 First release.

* Errors seem to be fixed.
* Works reasonably well.

3

clockworktri

9 years ago

just one more thing: how do I change the time format from 24 hrs to 12 hrs. I'm not versed in code, but when I screened through the py file I couldn't find the command for it.

My google calendar is in 12 hour format, so I assume the widget format isn't dependent on that?

Also, thank you for your answers to my questions! I appreciate that you are willing to help the people using your lovely widget!!

Report

C

boamaod

9 years ago

Please, check out the latest version. You can specify custom time format. I suppose you would like to use something like: "%I:%M %p". This would render into "11:59 p.m.", I'd hope. However, am/pm string will be taken from your locale's specs, so I cannot predict how it will be... You can fint the full table of format elements at http://docs.python.org/library/datetime.html#datetime.datetime.strptime. Take care!

Report

3

clockworktri

9 years ago

Thanks so much! This widget is PERFECT!

Report

3

clockworktri

9 years ago

I had gcal running fine in 9.10. I installed 10.04 and now when I enter my log in info, it just comes up blank.

my python-gdata is up to date. I followed the instructions on your installation page.

what could have happened?

Report

C

boamaod

9 years ago

Sorry, I just do not know. You didn't provide much information, either. Try to reinstall. Try to start from commandline and see what it says. On my 10.04 it worked fine.

Report

3

clockworktri

9 years ago

It's alive!

I reinstalled it again and this time it works!

I had tried reinstalling it before (and restarting my computer), but it hadn't helped. This time it did though. My only guess is that something went wrong with the first download(s) I was installing from? Whatever, I don't care as long as it's ok now!

Yay!

Report

obtgwong

9 years ago

Cheers for this wonderful screenlet. I also have problem configure the screenlet and I believe I found the root cause of issues.

:: Google account user name.

After spending hours on troubleshooting, I suspect the problem coming from my google account user name. My user name is xxxx.yyyyy@gmail.com

To further verify the problem, I try to use my other google account with regular username

xxxx@gmail.com

Guest what?! The screenlet work wonderfully. Could you please look into the problem? I can provide you more detail if needed.

Thank you.

Report

9

jazzair312

9 years ago

My gmail account has the same format, xxx.yyy@gmail.com. The workaround i found was editing the python script, which you can find in home/username/.screenlets/GCal/GCalscreenlet.py where i edited the line LoginCredentials = ('','') to LoginCredentials = ('username','password') and it works :) however, even if the screenlet displays the appointments, 5-10 minutes after reboot the screenlet displays login credentials error in notifyOSD. That's the only glitch i found so far, the solution is to open screenlet properties and rewrite your password. maybe the author might help us further :)

Report

C

boamaod

9 years ago

Thank you for the feedback. I think there's nothing I can do for using name.lastname@gmail.com style logging. It just is not supported by the API I suppose. Since everything works with the username@gmail.com, I'm not going to dig into it.

The patch for saving the password permanently is still available at Launchpad https://bugs.launchpad.net/screenlets/+bug/569765, look at the previous comments page here for installation instructions. It seems that the patch is still not applied in Ubuntu Screenlets package.

Report

9

jazzair312

9 years ago

Hello! The screenlet works great on my system (running Ubuntu 10.10), the only problem i have is that after a log out/log in or reboot the screenlet doesn't retain the google password. I saw on the previous page that it is a common screenlets problem, and you recommended applying a patch, witch i can't seem to find anymore. Do you know another solution to this bug?

Report

3

clockworktri

9 years ago

I can't get this to work at all. Every time I enter my log in info and save it, the space where the events are supposed to be just turns blank. ???

Report

3

clockworktri

9 years ago

any way to get the tasks to appear as well?

Report

C

boamaod

9 years ago

Shouldn't this be a separate screenlet? How should the tasks be displayed in the calendar? Just the end dates? I haven't planned to do this yet, but everybody is welcome to join the development at http://code.google.com/p/gcalscreenlet/.

Report

3

clockworktri

9 years ago

yeah, sorry, I had to update my python-gdata package. completely ignore my previous premature statement.

also, thanks a lot for this. it was just what I was looking for!

Report

jaspo

10 years ago

thats the thing i was looking for cause google's default calender screenlets looks terrible..

Report

cmays90

10 years ago

I started the calender from command line (as instructed above) to try and diagnose why the calender was not adding my events.

I logged in, and the screenlet actually pulled my events from Google and just doesn't seem to have it displayed.


Quote:
/home/chris/.screenlets/GCal/themes
active theme is: none
/usr/share/screenlets/GCal/themes
Path /usr/share/screenlets/GCal/themes not found.

*** Running on_after_set_atribute for name: LoginCredentials
Valid Programmatic login
Fetching events in calendars from: 2010-08-08T00:00:00-06:00 to 2010-08-15T23:59:59-06:00.
Printing allcalendars: cmays90@gmail.com's Calendar List
0) cmays90@gmail.com
Authors:
cmays90@gmail.com
Published: 2010-08-08T20:53:00.779Z
Updated: 2010-08-08T20:51:24.000Z
timezone: America/Chicago
Colour: #2952A3
Hidden: false
Selected: true
Access Level: owner
Events:
Events on calendar: cmays90@gmail.com
Event feed entry [<gdata.calendar.CalendarEventEntry object at 0x272fb90>, <gdata.calendar.CalendarEventEntry object at 0x272fc10>, <gdata.calendar.CalendarEventEntry object at 0x27324d0>]
0. Test Event 0 a30o19tl5vrb0p7s595n38je14@google.com
2010-08-08T18:00:00.000-05:00 - 2010-08-08T19:00:00.000-05:00
Event added
1. Test Event 1 5b7ddlan7j6pn03j98c4qs23ac@google.com
2010-08-12T18:00:00.000-05:00 - 2010-08-13T00:00:00.000-05:00
Event added
2. Test Event 2 434h85frg04n07o6748bveckdo@google.com
2010-08-13T10:30:00.000-05:00 - 2010-08-13T14:00:00.000-05:00
Event added
1) US Holidays - Summary: US Holidays
Authors:
US Holidays
Published: 2010-08-08T20:53:00.780Z
Updated: 2010-08-08T17:14:48.000Z
timezone: America/Chicago
Colour: #060D5E
Hidden: false
Selected: true
Access Level: read
Events:
Events on calendar: US Holidays


It found all the events I have right now, but does not display them on the screenlet. Is there something I need to configure to make that happen?

Report

C

boamaod

10 years ago

I'm not really sure, but I read from your log that no themes were found. The Screenlet should find at least Default theme. Did you install Screenlet correctly through Screenlet Manager? Make sure that all the themes and directories are installed all right. If there would be something else wrong, I suppose at least some kind of error/warning message would appear. By now I cannot recommend anything else. If other Screenlets work, it should be all right. There is nothing really special GCal Screenlet needs to display graphics.

Report

C

boamaod

10 years ago

Just a remark about the themes.

There are three files for theme background. One of them is for date pane (calendar), another for events pane (calendar2) and one is a big one for both (calendar1). You can figure out looking into the theme directories. Theme called "Childish" supplies separate backgrounds for both panes and "Black" supplies both panes and one big background. These will be switched as panes are enabled/disabled. All other themes change only date background. These themes are from some previous iteration of the screenlet or its code donors, these are just baggage, they are not created for Google Calendar Screenlet.

In theme directory you can also have theme.conf file (look under theme "Childish" in screenlet versions starting from 0.4.5), which can override any screenlet options, also the font options. Now selecting "Childish" theme ruins all the font settings, so in the future all themes should have theme.conf file with some default font settings.

You can define your themes by modifying and replacing these files. SVG is preferred format for images (you can use Inkscape to draw SVG images), but PNG is also supported.

Happy theming!

Report

toralv

10 years ago

Does this Screenlet support Google Apps Acounts?

Report

C

boamaod

10 years ago

What's a Google Apps Account? What connection has it to Google Calendar? What kind of support do you mean?

I can only say that Google Calendar Screenlet supports logging in to and retrieving information from Google Calendar, which uses basic Google Account credentials, as far as I know.

If you mean some other kind of support, please specify.

You may find some information on what supports exactly what in documentation of python-gdata library (http://code.google.com/p/gdata-python-client/), which is the library that the screenlet uses.

Report

toralv

10 years ago

It looks like this library doesn't support ordinary Google Apps Customers. Only Premium and Educational Accounts have access to the Google Apps API.

Maybe you want to implement the option to use a local .ics file? The other Screenlets who try this (eventCal and eigenCal) are quit buggy.

Report

C

boamaod

10 years ago

Cannot you just import your Google Apps Account calendar to a normal Google account by using ICS? I think you can import any ICS calendar to your normal Google Calendar account by Calendar Settings -> Browse interesting calendars -> Add by URL / Import calendar.

There's no point in writing ICS parser just for the screenlet (as screenlets you mention actually do and kind of fail as you say). I think this should be done by using python-vobject or python-dateutil. But why do it if you can do easily without?

Also, some options that are available in Google Data API are not available in ICS, I believe.

If somebody still wants to have direct ICS support, everybody with coding ability is welcome to make the enchancements on http://code.google.com/p/gcalscreenlet/!

Report

C

boamaod

10 years ago

Does it work on somebody else's computer but mine? It would be interesting to know. Maybe it really does not work for majority of systems...

Report

delca85

10 years ago

The screenlet works on my system but it doesn't remember my gmail credentials. Every time I boot my pc, it tells me gmail credentials are wrong.

Report

C

boamaod

10 years ago

This is a well-known bug in Screenlets framework...

From: http://www.screenlets.org/index.php/Twitter#Problems

If your password doesn't preserve through logout/restart/shutdown, then you should probably fix your Screenlets script using the patch from https://bugs.launchpad.net/screenlets/+bug/569765

Download the patch file, and use "sudo patch /usr/share/pyshared/screenlets/options.py < screenlets-options.py.patch" in the directory of the patch file to patch your Screenlets scripts. Administrator password is needed to patch the system. Patch is tested under Ubuntu 9.10 with Screenlets version 0.1.2-7. Seems that patch is not needed for Ubuntu 10.04.

Report

9 years ago

0.4.9 Easy install from PPA etc

* Added gCal to the new official Screenlets PPA
* Added DIY overkill for customizing event list

0.4.8 Enhancement

* Custom time formatting

0.4.7 Themework

* Cleaned up the themes
* Added Ambiance theme by Denis Å andor

0.4.5 Improvements

* Font options fixed in spite of Screenlets framework bugs
* Added configurable labels for tomorrow/day after tomorrow
* Supplied example theme under name "Childish" (use with caution, because it overrides your precious font settings for the screenlet)

0.4.2 Bugfixes

* "Today" string will be updated immediately

0.4.1 Bugfixes

* Updating will survive internet connection failures
* Long lasting events from previous days not displayed
* Some more error feedback for users with problems

0.4.0 First release.

* Errors seem to be fixed.
* Works reasonably well.

12345678910
25
product-maker janet Jun 27 2014 9 excellent
product-maker Sirion00 May 08 2012 3 bad
product-maker xulsolar Dec 29 2010 9 excellent
product-maker nickcloy Nov 29 2010 9 excellent
product-maker protti Oct 24 2010 9 excellent
product-maker jazzair312 Oct 17 2010 9 excellent
product-maker clockworktri Sep 27 2010 3 bad
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
clockworktri
Oct 28 2010
jazzair312
Oct 17 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.4.9
updated Nov 29 2010
added May 27 2010
downloads 24h
0
mediaviews 24h 0
pageviews 24h 8