Page 2 of 47 FirstFirst 123412 ... LastLast
Results 11 to 20 of 467

Thread: Conky Google Calendar Python Script

  1. #11
    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 PurposeOfReason View Post
    Quite nice. Do you think it will be possible to align things left and right?
    I'll have to think on that one!

    The alignment ideally should be done in conky, so splitting up the details as separate pieces of data will be needed.

    To do that I'll need to fetch all the event data upfront, cache it locally, and then have some way of picking each bit using script options in separate execi calls...

    It would mean rewriting the current functionality altogether...I think

  2. #12
    Join Date
    Jun 2007
    Beans
    97

    Re: Conky Google Calendar Python Script

    Hi Mate,

    Love all the changes and additions to the weather script and this one is good too!

    Now the BIG challenge................

    Google Reader in Conky!!!!!!!!!!!!!!

    Regards,

    Martyn

  3. #13
    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 martynp View Post
    Hi Mate,

    Love all the changes and additions to the weather script and this one is good too!

    Now the BIG challenge................

    Google Reader in Conky!!!!!!!!!!!!!!

    Regards,

    Martyn
    I've been pondering over a decent rss reader, the one that comes with conky is really slow, for each feeds article it hits the web, rather than bringing back say 10 of the articles from a feed and showing those....

    The gdata api doesn't currently support google reader, but I could create my own equivalent for any rss url's....?
    Last edited by kaivalagi; July 6th, 2008 at 02:19 PM.

  4. #14
    Join Date
    Jun 2007
    Beans
    97

    Re: Conky Google Calendar Python Script

    How about finding a way to show the number of unread items in Google Reader.

    This app does it standalone in the taskbar.

    http://grnotify.sourceforge.net/

    but it would be great to see the info (unread item count alone would be enough) in Conky?

    Regards,

    Martyn

  5. #15
    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 martynp View Post
    How about finding a way to show the number of unread items in Google Reader.

    This app does it standalone in the taskbar.

    http://grnotify.sourceforge.net/

    but it would be great to see the info (unread item count alone would be enough) in Conky?

    Regards,

    Martyn
    If someone could spare a month doing it, it may be possible using the grnotify python code as a basis to talk to the xml based google reader api...the example code isn't really what we want for conky. The trouble I see is that grnotify brings back html content and displays it like a browser would, we can't do that in Conky! We need plain text, so we'd have to strip all the content out...far too much bother! really!

    I guess a simple count function could be done relatively quickly...maybe adapted from the conkyemail script I created?

    It really is a shame that there isn't a gdata api for it, it's some much more powerful that way.

  6. #16
    Join Date
    Jun 2007
    Beans
    97

    Re: Conky Google Calendar Python Script

    Hi,

    Just showing the amount of unread items would be cool.

    Have been using the grNotify app but it has some issues so I have given up on it.

    Any way of doing a simple script to show unread item count like with email?

    Pretty pleaaaaaaaase!

    Martyn

  7. #17
    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 martynp View Post
    Hi,

    Just showing the amount of unread items would be cool.

    Have been using the grNotify app but it has some issues so I have given up on it.

    Any way of doing a simple script to show unread item count like with email?

    Pretty pleaaaaaaaase!

    Martyn
    Okay, okay, okay

    I have something nearly there...bloody google require cookie authentication for this which was a bit%h to sort out nicely, but got it working....

    Right now I can bring back the xml which contains the unread items e.g.:

    Code:
    <object>
        <number name="max">1000</number>
        <list name="unreadcounts">
            <object>
                <string name="id">feed/http://www.usp.ac.fj/news/rss.php</string>
                <number name="count">9</number>
                <number name="newestItemTimestampUsec">1215032380461011</number>
            </object>
            <object>
                <string name="id">feed/http://www.fijitimes.com/rss.aspx?section=local</string>
                <number name="count">1000</number>
                <number name="newestItemTimestampUsec">1215582131344330</number>
            </object>
            ...
        </list>
    </object>
    You can tell I haven't used google reader in a while...

    From this I can give a general count on how many feeds have unread items and display each feed and it's unread count. Which way do you want it?

    They need beer tokens on the net redeemable at any good off-licence

    EDIT

    I've attached the script, general help below:

    Code:
    Usage: conkyGoogleReader.py [options]
    
    Options:
      -h, --help            show this help message and exit
      -u USERNAME, --username=USERNAME
                            username to login with
      -p PASSWORD, --password=PASSWORD
                            Password to login with
      -v, --verbose         request verbose output, not a good idea when running
                            through conky!
    So in conky you would use something like this (haven't tried it in conky, just in eclipse (dev ide)):

    Code:
    {execi 1800 python conkyGoogleReader.py --username=someone@gmail.com --password=something}
    Give your email and password for your google account and it should come back with something like "5 Unread Feeds"

    [COLOR="Blue"]Edit2: updated script in latest post!/COLOR]
    Last edited by kaivalagi; July 11th, 2008 at 12:16 AM.

  8. #18
    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

    ***dreams fitfully of a desktop that supports html and clickable links in conky
    ................................................ht ml
    ....................................click
    ...................................html
    ***

    wakes up and realizes it was all a dream and smashes head against keyboards

    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

  9. #19
    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
    ***dreams fitfully of a desktop that supports html and clickable links in conky
    ................................................ht ml
    ....................................click
    ...................................html
    ***

    wakes up and realizes it was all a dream and smashes head against keyboards

    No dreams for me

    I have nightmares about formatting plain text in conky, and it never lining up well enough!

    Forever the optimist

  10. #20
    Join Date
    Jun 2007
    Beans
    97

    Re: Conky Google Calendar Python Script

    Morning,

    Thanks so much for working on this!!! It is truly appreciated.

    I have tried the script and it is basically returning the pure XML as shown in your code and not formatting it in any way. I think I have all correct.

    Also, from a personal note, I would be happy with just the total number of unread feeds in my google account as I have around 600 different ones in total. That would take a LOT of screen space with your current formatting!

    Sorry for the lack of screenshot but just off to the dentist. I will be at home the rest of the day and tomorrow though.

    Thanks mate.

    *** I'll post a screenie and what output I am getting in about an hour or so ***
    Last edited by martynp; July 10th, 2008 at 09:16 AM.

Page 2 of 47 FirstFirst 123412 ... 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
  •