Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Getting Facebook, Identica and Twitter in conky

  1. #1
    Join Date
    Feb 2007
    Beans
    Hidden!

    Lightbulb Getting Facebook, Identica and Twitter in conky

    I have recently released version 0.1 of Cwibber.
    Cwibber is an easy to use command line interface to Gwibber, which makes it easy to get (currently) Identica, Twitter and Facebook messages in your Conky.

    First of all, add my ppa to your /etc/sources.list:

    Code:
    deb http://ppa.launchpad.net/mcielen/ppa/ubuntu [version] main 
    deb-src http://ppa.launchpad.net/mcielen/ppa/ubuntu [version] main
    Ofcourse subsitute [version] with intrepid, jaunty or karmic. Then add the PGP key:

    Code:
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0DA7F92B
    Since Cwibber depends on Gwibber >= 2.0, add the Gwibber ppa:

    Code:
    deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu [version] main 
    deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu [version] main
    Again subsitute [version] with intrepid, jaunty or karmic. Add the PGP key:

    Code:
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72D340A3
    And, as usual:

    Code:
    sudo apt-get update
    Now you're ready to install Cwibber:

    Code:
    sudo apt-get install cwibber
    Since Cwibber depends on Gwibber, it'll be installed too.

    To use Cwibber 0.1, you'll have to run Gwibber to create the accounts you want to use, and run Gwibber once to start the Gwibber Daemon (this will be changed in Cwibber v0.2). Now call Cwibber from your .conkyrc:

    ${execi 60 cwibber}

    important: before you can use cwibber you first have to authorize Gwibber through Facebook!

    TODO for Cwibber 0.2:

    - check whether Gwibber daemon is running, if not start it. For this I depend on the Gwibber developers, since refresh intervals will have to be stored in gconf. Developers promised this will be changed soon. (see https://bugs.edge.launchpad.net/gwibber/+bug/417903)

    - allow management of accounts through cwibber instead of through Gwibber

    TODO for later versions:

    - I'm hoping to convince Gwibber developers to split GUI and Daemon. If this won't happen, I might pack the gwibber daemon with Cwibber. (see https://bugs.edge.launchpad.net/gwibber/+bug/421285)

    Call for developers and testers

    Test this app, and open an LP bug for any problem you find or features you want to see in next versions.

    Since I'm far from a developer myself, I need help for this project. Interested in developing? Contact me through this forum or mail.
    Last edited by blizzkid; September 2nd, 2009 at 05:16 PM.

  2. #2
    Join Date
    Sep 2007
    Location
    In a box under the stairs
    Beans
    16
    Distro
    Ubuntu Development Release

    Re: Getting Facebook, Identica and Twitter in conky

    have just installed cwibber, but can`t seem to get it to work with Facebook enabled, when i tried running it from terminal i got

    ade@ade-laptop:~$ cwibber
    FACEBOOK
    Traceback (most recent call last):
    File "/usr/bin/cwibber", line 70, in <module>
    print "%s: %s %s" % (message["sender"], message["text"], remove_html_tags(message["extended_text"]))
    KeyError: 'extended_text'
    ade@ade-laptop:~$
    However When I changed the
    ct_fb = 2 # Facebook
    to
    ct_fb = 0 # Facebook
    it works fine albeit with no Facebook messages

    Any ideas on resolving this will be greatly appreciated as I`d like to get Facebook messages in conky (already have twitter & identica in conky setup)

  3. #3
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: Getting Facebook, Identica and Twitter in conky

    Can we get a screenshot of this in action, per favore?

  4. #4
    Join Date
    Feb 2007
    Beans
    Hidden!

    Re: Getting Facebook, Identica and Twitter in conky

    Quote Originally Posted by endemoniada View Post
    have just installed cwibber, but can`t seem to get it to work with Facebook enabled, when i tried running it from terminal i got



    However When I changed the to it works fine albeit with no Facebook messages

    Any ideas on resolving this will be greatly appreciated as I`d like to get Facebook messages in conky (already have twitter & identica in conky setup)
    Have you allowed gwibber through Facebook? I'll add it as a step in the howto.

  5. #5
    Join Date
    Sep 2007
    Location
    In a box under the stairs
    Beans
    16
    Distro
    Ubuntu Development Release

    Re: Getting Facebook, Identica and Twitter in conky

    I already had Gwibber 2 running for a couple of days before i installed cwibber, so facebook & other protocols were already setup correctly. I have also tried removing cwibber, Gwibber & all my associated protocol settings & then reinstalled using apt-get install cwibber & run gwibber, added & authorized protocols (twitter,identica & facebook), but still no joy, unless I disable facebook access in /usr/bin/cwibber as mentioned in my previous post. Out of interest I am running Crunchbang 9.04.01, but being as a copy of this thread is also on the crunchbang forums, then I assume that it should work in Crunchbang too.
    Last edited by endemoniada; September 3rd, 2009 at 12:00 AM.

  6. #6
    Join Date
    Feb 2007
    Beans
    Hidden!

    Re: Getting Facebook, Identica and Twitter in conky

    Quote Originally Posted by endemoniada View Post
    I already had Gwibber 2 running for a couple of days before i installed cwibber, so facebook & other protocols were already setup correctly. I have also tried removing cwibber, Gwibber & all my associated protocol settings & then reinstalled using apt-get install cwibber & run gwibber, added & authorized protocols (twitter,identica & facebook), but still no joy, unless I disable facebook access in /usr/bin/cwibber as mentioned in my previous post. Out of interest I am running Crunchbang 9.04.01, but being as a copy of this thread is also on the crunchbang forums, then it should work in Crunchbang too.
    Could you do me a favor and open a bug in Launchpad? (https://bugs.edge.launchpad.net/~cwibber/)

    Also, try running gwibber-daemon from terminal and then run cwibber from another terminal (remember to refresh (ctrl+r) once in gwibber first). You should now see some output from the daemon. Paste that in the bug too.

  7. #7
    Join Date
    Sep 2007
    Location
    In a box under the stairs
    Beans
    16
    Distro
    Ubuntu Development Release

    Re: Getting Facebook, Identica and Twitter in conky

    I`ll open a bug in launchpad when I`ve figured out how to do so & I`m less tired, thought you might like to know the results of running gwibber-daemon & cwibber from seperate terminals

    Gwibber from Terminal results in
    ade@ade-laptop:~$ gwibber
    WARNING:root:desktopcouch is not available. . falling back to gconf


    nothing else appears, even when i refresh

    cwibber from terminal still brings up
    ade@ade-laptop:~$ cwibber
    FACEBOOK
    Traceback (most recent call last):
    File "/usr/bin/cwibber", line 70, in <module>
    print "%s: %s %s" % (message["sender"], message["text"], remove_html_tags(message["extended_text"]))
    KeyError: 'extended_text'
    ade@ade-laptop:~$
    as previously reported

  8. #8
    Join Date
    Feb 2007
    Beans
    Hidden!

    Re: Getting Facebook, Identica and Twitter in conky

    Quote Originally Posted by endemoniada View Post
    I`ll open a bug in launchpad when I`ve figured out how to do so & I`m less tired, thought you might like to know the results of running gwibber-daemon & cwibber from seperate terminals

    Gwibber from Terminal results in
    nothing else appears, even when i refresh

    cwibber from terminal still brings up as previously reported
    For now change:

    Code:
    print "%s: %s %s" % (message["sender"], message["text"], remove_html_tags(message["extended_text"]))
        if fb_cmt > 0:
          for comment in message["comments"]:
            print "  %s: %s" % (comment["sender"], comment["text"])
    to:

    Code:
    print "%s: %s" % (message["sender"], message["text"])
    (remove the three lines in the if-block).
    Something seems to have changed since I wrote the script.

  9. #9
    Join Date
    Feb 2007
    Beans
    Hidden!

    Re: Getting Facebook, Identica and Twitter in conky

    Facebook api has changed. Expect an updated version soon.

  10. #10
    Join Date
    Sep 2007
    Location
    In a box under the stairs
    Beans
    16
    Distro
    Ubuntu Development Release

    Re: Getting Facebook, Identica and Twitter in conky

    Quote Originally Posted by blizzkid View Post
    For now change:

    Code:
    print "%s: %s %s" % (message["sender"], message["text"], remove_html_tags(message["extended_text"]))
        if fb_cmt > 0:
          for comment in message["comments"]:
            print "  %s: %s" % (comment["sender"], comment["text"])
    to:

    Code:
    print "%s: %s" % (message["sender"], message["text"])
    (remove the three lines in the if-block).
    Something seems to have changed since I wrote the script.
    Excellent, that has solved the problem, everything works now, Thank you very much

    My next query is, in conky some of the longer facebook messages are too long to fit on the screen, is it possible to get them to append to the next line instead? or is that a conky related issue?, obviously Twitter & Identi.ca messages are fine because of the limited amount of characters allowed

Page 1 of 2 12 LastLast

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
  •