Page 12 of 47 FirstFirst ... 2101112131422 ... LastLast
Results 111 to 120 of 467

Thread: Conky Google Calendar Python Script

  1. #111
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by Abaddon View Post
    I use Two colours - grey and white in my Conky script, but the template doesn't seem to be playing the game:

    My .conkyrc line
    Code:
    ${execi 1800 conkyGoogleCalendar -u secret -p squirrel -F "%H%M" -n -t ~/conkyGoogleCalendar.template}
    The results are attached.

    Help!
    Code:
    ${execpi 1800 conkyGoogleCalendar -u secret -p squirrel -F "%H%M" -n -t ~/conkyGoogleCalendar.template}
    Try that - execpi in your line.

    Chimo!
    Bruce

  2. #112
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by Crashmaxx View Post
    I keep getting this error when I try to run it.
    Code:
    ERROR: getAllEvents:Unexpected error:{'status': 400, 'body': 'Invalid UserId en.usa', 'reason': 'Bad Request'}
    Any idea what's wrong?
    Show us your conky code line calling the calendar.

    Bruce

  3. #113
    Join Date
    Apr 2006
    Location
    York College, PA
    Beans
    116
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by Bruce M. View Post
    Show us your conky code line calling the calendar.

    Bruce
    Code:
    ${color F8DF58}${font StyleBats:size=18}U ${font}${execi 1800 conkyGoogleCalendar -u crashmaxx -p ****** -r "Andrew Stowell;Kappa Delta Rho;York College;US Holidays" -l 10}
    Watch Top Gear? Like the Stig? Visit TamedRacingDriver.com!

  4. #114
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by Crashmaxx View Post
    Code:
    ${color F8DF58}${font StyleBats:size=18}U ${font}${execi 1800 conkyGoogleCalendar -u crashmaxx -p ****** -r "Andrew Stowell;Kappa Delta Rho;York College;US Holidays" -l 10}
    OK, don't quote me here but I think it might be the spaces in the names of the calendars:
    Code:
    "Andrew_Stowell;Kappa_Delta_Rho;York_College;US_Holidays"
    I may be totally out to lunch here, I'm new with the calendar script but that looks like a potential place for an error.

    Maybe someone else will know more.
    Sorry I couldn't be more help.
    Bruce

  5. #115
    Join Date
    Apr 2006
    Location
    York College, PA
    Beans
    116
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by Bruce M. View Post
    OK, don't quote me here but I think it might be the spaces in the names of the calendars:
    Code:
    "Andrew_Stowell;Kappa_Delta_Rho;York_College;US_Holidays"
    I may be totally out to lunch here, I'm new with the calendar script but that looks like a potential place for an error.

    Maybe someone else will know more.
    Sorry I couldn't be more help.
    Bruce
    I got it figured out. I had US Holidays in there, but that is not my calendar, its Google's. That's why it wouldn't work, too bad it didn't give an error that made sense.
    Watch Top Gear? Like the Stig? Visit TamedRacingDriver.com!

  6. #116
    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 Crashmaxx View Post
    I got it figured out. I had US Holidays in there, but that is not my calendar, its Google's. That's why it wouldn't work, too bad it didn't give an error that made sense.
    The error is what google's gdata api spits out...

    I'll try and recreate the problem myself, it might be the content can be returned...with a tweak or two

    Might look at it this weekend...

    Chimo

    Edit: I have tried numerous public calendars and they are all fine, can you tell me exactly which public calendar you are using?
    Last edited by kaivalagi; October 25th, 2008 at 10:23 AM.

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

    Re: Conky Google Calendar Python Script

    UPDATE

    I've updated the script to require a deliberate new line at the end of a custom template file for blank line separators between event output. This is so that output can have no blank lines if required, therefore reducing the desktop area required.

    Templates may require updating to get a blank space again!

    The first post has been updated, and the apt package is available

    Chimo

  8. #118
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by kaivalagi View Post
    UPDATE
    Great news, with all my conkys my desktop space is becoming prime property.

    Thatnks kaivalagi, as usual, you do good stuff.

    Chimo!
    Bruce

  9. #119
    Join Date
    Nov 2008
    Beans
    6

    Re: Conky Google Calendar Python Script

    I am getting this error:

    ERROR: getFutureEvents:Unexpected error:{'status': 400, 'body': 'Invalid UserId p', 'reason': 'Bad Request'}


    with this line in my conkyrc:

    ${color F8DF58}${font}${execi 600 conkyGoogleCalendar --username=myusername --password=mypassword --daysahead=28 --limit=10}

    what am i doing wrong?

  10. #120
    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 shnomin View Post
    I am getting this error:

    ERROR: getFutureEvents:Unexpected error:{'status': 400, 'body': 'Invalid UserId p', 'reason': 'Bad Request'}


    with this line in my conkyrc:

    ${color F8DF58}${font}${execi 600 conkyGoogleCalendar --username=myusername --password=mypassword --daysahead=28 --limit=10}

    what am i doing wrong?
    Nothing looks wrong.

    I think this is the same problem with public calendars as crashmaxx has described above, to fix the issue he removed it from the list of required calendars.

    In your case you don't have a list defined, and could setup a list using the -r option, making sure the offending calendar isn't included. The help for this is:

    Code:
      -r TEXT, --requestCalendarNames=TEXT
                            Define a list of calendars to request event data for,
                            calendar names should be separated by semi-colons ";".
                            For example --requestCalendarNames="cal1;cal2;other
                            cal" If not set all calendar data will be returned.
    I suggest adding calendar names, to the option, one by one until the problem occurs, then you'll know what's causing it.

    When you find out please let me know, so I can hopefully reproduce the problem and be able to fix it...

    Hope that helps

Page 12 of 47 FirstFirst ... 2101112131422 ... 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
  •