Page 45 of 47 FirstFirst ... 354344454647 LastLast
Results 441 to 450 of 467

Thread: Conky Google Calendar Python Script

  1. #441
    Join Date
    Sep 2009
    Beans
    4

    Re: Conky Google Calendar Python Script

    Hey all-

    Just wondering if there was a way to remove duplicate entries? That is if two events have the same title, day and time, only one should show?

  2. #442
    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 jackofall0 View Post
    Hey all-

    Just wondering if there was a way to remove duplicate entries? That is if two events have the same title, day and time, only one should show?
    You have 2 from just one calendar or is it where you have multiple calendars?

  3. #443
    Join Date
    Sep 2009
    Beans
    4

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by kaivalagi View Post
    You have 2 from just one calendar or is it where you have multiple calendars?
    No, multiple calendars.

  4. #444
    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 jackofall0 View Post
    No, multiple calendars.
    I can make sure the list is unique quite quickly if it is based on all info e.g. title, start time, end time, location, description and who

    Would that work for you? Or would it need to be just title, start time and end time?

    I've attached an updated script to handle the first suggestion
    Attached Files Attached Files

  5. #445
    Join Date
    Sep 2009
    Beans
    4

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by kaivalagi View Post
    I can make sure the list is unique quite quickly if it is based on all info e.g. title, start time, end time, location, description and who

    Would that work for you? Or would it need to be just title, start time and end time?

    I've attached an updated script to handle the first suggestion
    The attached script works, but sometimes an event has "Who:A,B" on one calendar and "Who:B,A" on the other. These events are not unique and the order of attendees doesn't really matter.

    I think the best way is just title, start, and end time.

    Thanks for the fast response!

  6. #446
    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 jackofall0 View Post
    The attached script works, but sometimes an event has "Who:A,B" on one calendar and "Who:B,A" on the other. These events are not unique and the order of attendees doesn't really matter.

    I think the best way is just title, start, and end time.

    Thanks for the fast response!
    I've had a little play and I agree that the "who" gets in the way, I setup 2 equivalent events with matching everything but the who made them unique

    I've done as you requested, removed duplicates based on title, starttime and endtime, but only if the --distinctevents / -D options is used

    See attached, let me know if that works for you
    Attached Files Attached Files

  7. #447
    Join Date
    Sep 2009
    Beans
    4

    Re: Conky Google Calendar Python Script

    Quote Originally Posted by kaivalagi View Post
    I've had a little play and I agree that the "who" gets in the way, I setup 2 equivalent events with matching everything but the who made them unique

    I've done as you requested, removed duplicates based on title, starttime and endtime, but only if the --distinctevents / -D options is used

    See attached, let me know if that works for you
    Perfect. Many thanks!

  8. #448
    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 jackofall0 View Post
    Perfect. Many thanks!
    No worries, it will be in the next release of the script....


    @ALL
    So far the next version has got:

    • Updated to replace any $ symbol with $$ for event data so conky doesn't parse text as variables
    • Update to display Today and Tomorrow on those days rather than the date
    • Added --distinctevents / -D option which removes duplicate events with matching title, starttime and endtime


    Any more ideas?

  9. #449
    Join Date
    Jan 2010
    Beans
    93
    Distro
    Ubuntu

    Re: Conky Google Calendar Python Script

    great threads

  10. #450
    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 geazzy View Post
    great threads
    Glad you like

Page 45 of 47 FirstFirst ... 354344454647 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
  •