UPDATE
Updated the script in the first post, see below or first post for details.
- Output "No Events..." if non found, rather than nothing at all.
- Fix for all day events where time is shown. Catered for 12:00:00 AM (%r formatted time) so it is no longer displayed.
Cheers
UPDATE (AGAIN)
Updated date time formatting, datetime now formatted using Day + locale.D_FMT + locale.T_FMT_AMPM, date only uses Day + locale.D_FMT. In my locale this results in the format "Wed 15/02/2007 13:00:00 pm", for US users the day number and month will be switched
This results in a much more consistent approach to date time formatting which, no matter what the formatting options, the event data should show correctly and consistently for your regional settings.
New script uploaded to the first post.
Cheers
Edit: Just added Day to the formatting too, first post script updated...
Last edited by kaivalagi; July 21st, 2008 at 05:18 PM.
hippyrandall.com | This is the first age that's paid much attention to the future, which is alittle ironic since we may not have one. -- Arthur Clarke
Hi All,
This is a great conky script...but I'm having one problem.
I can't get more than 1 event to show no matter what I do. I've tried making the end date the end of the year, making the daysahead = 5...etc..
Even when I have more than one event on the same day it's only showing one.
Any help would be appreciated. Thanks!
Could you post the execi line from your conkyrc (minus your login details )
Are all your events reoccurring ones?
Do you add the events straight into google calendar or are they sync'ed from a client app?
Do you have a --limit option set?
This is going to be tricky to debug cause I can't test against your calendar...would it be possible to recreate the events (minus the details) on a calendar you can give me full access to?
Here is the line from my conky script:
${execi 10800 python ~/.conky/Calendar/conkyGoogleCalendar.py --username=XXX@gmail.com --password=XXX --daysahead=5 --limit=10}
Most of my things are recurring, but I did put in a test single event for today and it only showed the recurring event happening at 2 PM (the new event was set for 5 PM)
I enter events directly into google calendar (google plugin for thunderbird has issues from the repos so I just go direct)
limit is set to 10
Thanks for the help
Everything seems okay
To eliminate conky out of the equation can you run the script in the terminal, e.g.
Do you still only get one event back?Code:python ~/.conky/Calendar/conkyGoogleCalendar.py --username=XXX@gmail.com --password=XXX --daysahead=5 --limit=10
If you see everything you expect in the terminal, you may need to add the following before the TEXT section in your conkyrc:
Keep increasing the value until you see everything you want to.Code:text_buffer_size 512
Long shot but this has been the cause of many an issue in conky in the past.....
solved it was the buffer. Thanks!
Bookmarks