Results 1 to 3 of 3

Thread: RSS/Feed on Conky

  1. #1
    Join Date
    Nov 2007
    Beans
    2

    Question RSS/Feed on Conky

    Hi. I just want to know if there is a way to configure conky so it can show the total of feeds unread on Google Reader. Thanks.

  2. #2
    Join Date
    Jul 2009
    Beans
    441
    Distro
    Lubuntu

    Re: RSS/Feed on Conky

    Google may have an api for it (if it does, it probably won't work with conky directly); search for it in google code or google reader's documentations. Also, please let us (me) know if you find anything because I think that would be pretty awesome.

    Cheers.

  3. #3
    Join Date
    Jul 2007
    Location
    USA
    Beans
    227
    Distro
    Ubuntu Studio 11.04 Natty Narwhal

    Re: RSS/Feed on Conky

    Even though this thread is a few months old, I thought I would share a solution I found. It is a shell script that is executed from conky. You will need a new file for the shell script and an execi line in conky. Of course, change "user" to your Google username and "pwd" to your Google password.

    Here is the shell script:
    Code:
    #!/bin/sh
    SID=$(wget --output-document=- --post-data 'Email=user@googlemail.com&Passwd=pwd' -q https://www.google.com/accounts/ClientLogin | grep -w SID);
    unreadcountxml=$(wget --no-cookies --header "Cookie: $SID" --output-document=- -q http://www.google.com/reader/api/0/unread-count)
    unreadcount=$(echo $unreadcountxml | awk 'BEGIN {RS="<object>";FS="count\">";sum=0} ; /reading-list/ {print $2}' | cut -d'<' -f1);
    echo "$unreadcount"
    I then execute it in conky with:
    Code:
    ${execi 60 ~/scripts/greader}
    Change the location to your script and "60" to however many seconds you want between each check.

    I found the script here: http://superuser.com/questions/68159...he-bash-prompt

    The only tweak I made was to trim the echo line to just the unread count.
    Linux Mint 9 Isadora | Linux User #450508 | Ubuntu User #16172
    SilverScreenPhile | folding@home team #45104 | World Community Grid

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
  •