Page 5 of 47 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 467

Thread: Conky Google Calendar Python Script

  1. #41
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by eriqjaffe View Post
    The udpated script does the trick (for me, at least) without having to modify anytyhing, thanks!

    All of the events were added directly to the Google Calendar as recurring all-day events via Google's web interface. I haven't tried using other methods (I know events can be added via gcalcli, for example), so I don't know how they will wind up displaying.

    And, sure enough, my date & time formats are different:

    Code:
    datetimeformat:%a %d %b %Y %r %Z
    dateformat:%m/%d/%Y
    Thanks again, hope that information comes in handy.
    Nice one, glad it worked.

    I'll take a look at the date format stuff soon, to make sure no other formats will be affected...

  2. #42
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    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

  3. #43
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    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.

  4. #44
    Join Date
    Feb 2008
    Location
    N of Bruce W of Kaivalagi
    Beans
    185
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by kaivalagi View Post
    UPDATE (AGAIN)
    In my locale this results in the format "15/02/2007 13:00:00 pm"
    Someone needs to sync their time/date with a time server!


    Sorry but I couldn't resist

    Hippy Randall
    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

  5. #45
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by HippyRandall View Post
    Someone needs to sync their time/date with a time server!


    Sorry but I couldn't resist

    Hippy Randall
    I am living in the past like so many windoze users

  6. #46
    Join Date
    Sep 2007
    Beans
    49

    Re: Conky Google Calendar Python Script

    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!

  7. #47
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by jmadero View Post
    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?

  8. #48
    Join Date
    Sep 2007
    Beans
    49

    Re: Conky Google Calendar Python Script

    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

  9. #49
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by jmadero View Post
    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.

    Code:
    python ~/.conky/Calendar/conkyGoogleCalendar.py --username=XXX@gmail.com --password=XXX --daysahead=5 --limit=10
    Do you still only get one event back?

    If you see everything you expect in the terminal, you may need to add the following before the TEXT section in your conkyrc:

    Code:
    text_buffer_size 512
    Keep increasing the value until you see everything you want to.

    Long shot but this has been the cause of many an issue in conky in the past.....

  10. #50
    Join Date
    Sep 2007
    Beans
    49

    Re: Conky Google Calendar Python Script

    solved it was the buffer. Thanks!

Page 5 of 47 FirstFirst ... 3456715 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •