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

Thread: Conky Pidgin Python Script

Hybrid View

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

    Conky Pidgin Python Script

    ArchLinux : Package support is present in the AUR. All my packages can be seen here: http://aur.archlinux.org/packages.php?SeB=m&K=kaivalagi

    Ubuntu/Debian : All the script packages have now been copied into the Conky Companions PPA. Any package updates will be provided by the team through this new ppa. The ppa can be found here: https://launchpad.net/~conky-companions/+archive/ppa. To use this ppa first delete the old ppa files using this:
    Code:
    sudo rm /etc/apt/sources.list.d/m-buck* && sudo rm /etc/apt/sources.list.d/conkyhardcore*
    Then follow the modified first post instructions for the scripts


    Intro

    This is a simple script to display buddy info from Pidgin. The script talks to Pidgin using dbus and allows templates...

    There is a README with the install, I suggest you give it atleast a quick once over! It can be found in the installation folder, normally following the path of /usr/share/conky<scriptname>/

    Basic Install

    Method 1: Using apt

    1) Add the repository to your OS install:
    Code:
    sudo add-apt-repository ppa:conky-companions/ppa
    * Note if you are running 9.10 or below then refer to the PPA link at the end of this post for help on installing from the ppa, good guidance can be found on the launchpad site

    2) Now that is done simply run the following to update your repo cache and install the script:

    Code:
    sudo apt-get update && sudo apt-get install conkypidgin
    Method 2: Using deb file

    Run the .deb file available at the Conky Companions PPA site here: https://launchpad.net/~conky-compani.../ppa/+packages

    Warning, this will not ensure you are kept up-to-date. Only method 1 will do that

    Method 3: Using tar.gz file

    Extract all the contents of the tar.gz file to an appropriate folder, and edit the conkyPidgin script to point to the correct location where conkyPidgin.py is. The tar.gz file is available at the Conky Companions PPA site here: https://launchpad.net/~conky-compani.../ppa/+packages

    Unless you are using a non-Debian based OS I don't suggest this. Users of Debian/Ubuntu flavour OS's should ideally use method 1.

    Again will will not receive updates using this method. ONLY method 1 can do this for you

    All further details on setup are orientated around the deb package based install, so may differ from what you choose your setup to be, if done using the tarball.


    Usage Help

    To use the script in conky in it's simplist form, you'll need an exec statement like this:

    Code:
    ${execi 60 conkyPidgin}
    To use a template for custom output, I suggest you read the README attached, and take a look at the example conkyrc and template files that are installed to "/usr/share/conkypidgin/example".

    You can get the current help options at any time by running:

    Code:
    conkyPidgin -h
    or

    Code:
    conkyPidgin --help
    Code:
    Usage: conkyPidgin [options]
    Options:
      -h, --help            show this help message and exit
      -t FILE, --template=FILE
                            Template file determining the format for each buddy's
                            data or account info. Use the following placeholders
                            for default buddy output: [name], [alias], [group],
                            [status], [status_message]. If outputting an account
                            listing use these placeholders: [name], [protocol],
                            [status]
      -L, --accountlisting  Show account listing with status rather than buddies
      -o, --onlineonly      Only show online buddies. If outputting account
                            listings this option limits it to enabled only.
      -a, --availableonly   Only show available buddies. If outputting account
                            listings this option limits it to enabled only.
      -f, --offlineonly     Only show offline buddies. If outputting account
                            listings this option limits it to disabled only.
      -i LIST, --ignorelist=LIST
                            A comma delimited list of groups to ignore. Partial
                            text matches on group will be ignored if found
      -I LIST, --includelist=LIST
                            A comma delimited list of groups to include. Partial
                            text matches on group will be included if found. The
                            ignorelist, if used, takes precedence. if this list is
                            omitted all groups will be included unless ignored.
      -C TEXT, --chattingtext=TEXT
                            [default: Chatting] Text to use for chatting status
                            output
      -A TEXT, --availabletext=TEXT
                            [default: Available] Text to use for available status
                            output
      -U TEXT, --unavailabletext=TEXT
                            [default: Unavailable] Text to use for unavailable
                            status output
      -N TEXT, --invisibletext=TEXT
                            [default: Invisible] Text to use for invisible status
                            output
      -W TEXT, --awaytext=TEXT
                            [default: Away] Text to use for away status output
      -M TEXT, --mobiletext=TEXT
                            [default: Mobile] Text to use for mobile status output
      -F TEXT, --offlinetext=TEXT
                            [default: Offline] Text to use for offline status
                            output
      -l NUMBER, --limit=NUMBER
                            [default: 0] Set a limit to the number of buddies
                            displayed, by default no limitation is made
      -s, --sortbylogactivity
                            If used the list is sorted by most recent activity
                            first, this is useful when limiting the list size with
                            the limit option
      -v, --verbose         Request verbose output, not a good idea when running
                            through conky!
      -V, --version         Displays the version of the script.
      --errorlogfile=FILE   If a filepath is set, the script appends errors to the
                            filepath.
      --infologfile=FILE    If a filepath is set, the script appends info to the
                            filepath.
    Development History

    Development history going forwards can be seen here https://code.launchpad.net/~conky-companions/+junk/conkypidgin
    All packages available from me can be found here: https://launchpad.net/~conky-companions/+archive/ppa
    Attached Images Attached Images
    Last edited by kaivalagi; December 14th, 2010 at 11:25 PM.

  2. #2
    Join Date
    May 2008
    Beans
    23
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Conky Pidgin Python Script

    I looked at your repos and saw no pidgin version for hardy...are you going to write one? Cause that would be awesome

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

    Re: Conky Pidgin Python Script

    Quote Originally Posted by abrussak View Post
    I looked at your repos and saw no pidgin version for hardy...are you going to write one? Cause that would be awesome
    Nope, all intrepid from now on in...

    If you follow the instructions it will work in hardy though

    I just labelled every up as intrepid because there may be code I develop that won't work in hardy anymore....for now though all my scripts are fine in hardy. They are python based so should be fine for some time (until hardy is well out of date, i.e. python 2.5 is obsolete)
    Last edited by kaivalagi; November 4th, 2008 at 02:19 AM.

  4. #4
    Join Date
    May 2008
    Beans
    23
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Conky Pidgin Python Script

    If a buddy has an away message, I see the HTML code.
    Attached Images Attached Images
    Last edited by abrussak; November 4th, 2008 at 02:44 AM.

  5. #5
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Pidgin Python Script

    conky is just so useful
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

  6. #6
    Join Date
    Aug 2008
    Location
    germany
    Beans
    857

    Re: Conky Pidgin Python Script

    Oh nice, that's what I supposed to do the next few days^^

    Now that saves me a lot of time, thx buddy

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

    Re: Conky Pidgin Python Script

    Quote Originally Posted by abrussak View Post
    If a buddy has an away message, I see the HTML code.
    I'll take a look, just need to strip all html away I think...

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

    Re: Conky Pidgin Python Script

    UPDATE

    Fixed in 2.02, html should no longer be present in any status message text

    The first post has been updated and the new version (2.02) is available via apt too

    Chimo
    Last edited by kaivalagi; November 4th, 2008 at 10:07 AM.

  9. #9
    Join Date
    Jun 2007
    Location
    North London; England
    Beans
    697

    Re: Conky Pidgin Python Script

    Quote Originally Posted by kaivalagi View Post
    New Intrepid based package only

    Intro

    This is a simple script to display buddy info from Pidgin. The script talks to Pidgin using dbus and allows templates...

    There is a README with the install and attached here, I suggest you give it atleast a quick once over!

    Basic Install

    Method 1: Using apt

    Edit your sources.list file by running this:

    Code:
    gksudo gedit /etc/apt/sources.list
    And add the following line on the end of the file, then save.

    Code:
    deb http://ppa.launchpad.net/m-buck/ubuntu intrepid main
    Now that is done simply run the following to install (answering yes to the verification question)

    Code:
    sudo apt-get update && sudo apt-get install conkypidgin
    Method 2: Using deb file

    Download and run the attached .deb file

    Warning, this will not ensure you are kept up-to-date. Only method 1 will do that

    Method 3: Using tar.gz file

    Extract all the contents of the attached tar.gz file to an appropriate folder, and edit the conkyDeluge script to point to the correct location where conkyDeluge.py is.

    Unless you are using a non-Debian based OS I don't suggest this. Users of Debian/Ubuntu flavour OS's should ideally use method 1.

    Again will will not receive updates using this method. ONLY method 1 can do this for you

    All further details on setup are orientated around the deb package based install, so may differ from what you choose your setup to be, if done using the tarball.


    Usage Help

    To use the script in conky in it's simplist form, you'll need an exec statement like this:

    Code:
    ${execi 60 conkyPidgin}
    To use a template for custom output, I suggest you read the README attached, and take a look at the example conkyrc and template files that are installed to "/usr/share/conkypidgin/example".

    You can get the current help options at any time by running:

    Code:
    conkyPidgin -h
    or

    Code:
    conkyPidgin --help
    Code:
    Usage: conkyPidgin [options]
    Options:
      -h, --help            show this help message and exit
      -t FILE, --template=FILE
                            Template file determining the format for each buddy's
                            data. Use the following placeholders: [name], [alias],
                            [group], [status], [status_message].
      -o, --onlineonly      Only show online buddies
      -a, --availableonly   Only show available buddies
      -i LIST, --ignorelist=LIST
                            A comma delimited list of groups to ignore. Partial
                            text matches on group will be ignored if found
      -I LIST, --includelist=LIST
                            A comma delimited list of groups to include. Partial
                            text matches on group will be included if found. The
                            ignorelist, if used, takes precedence. if this list is
                            omitted all groups will be included unless ignored.
      -C TEXT, --chattingtext=TEXT
                            [default: Chatting] Text to use for chatting status
                            output
      -A TEXT, --availabletext=TEXT
                            [default: Available] Text to use for available status
                            output
      -U TEXT, --unavailabletext=TEXT
                            [default: Unavailable] Text to use for unavailable
                            status output
      -N TEXT, --invisibletext=TEXT
                            [default: Invisible] Text to use for invisible status
                            output
      -W TEXT, --awaytext=TEXT
                            [default: Away] Text to use for away status output
      -M TEXT, --mobiletext=TEXT
                            [default: Mobile] Text to use for mobile status output
      -F TEXT, --offlinetext=TEXT
                            [default: Offline] Text to use for offline status
                            output
      -v, --verbose         Request verbose output, not a good idea when running
                            through conky!
      -V, --version         Displays the version of the script.
      --errorlogfile=FILE   If a filepath is set, the script appends errors to the
                            filepath.
      --infologfile=FILE    If a filepath is set, the script appends info to the
                            filepath.
    Development History

    Development history going forwards can be seen here https://code.launchpad.net/~m-buck/+junk/conkypidgin

    And details on the packages available from me can be found here https://launchpad.net/~m-buck/+archive

    I have also created a new website, for now it is relatively sparse, but it does details my conky scripts to a certain degree. You can find it here: http://www.kaivalagi.com
    thanks for all your usefull work, i use the forecast script constantly.


    would love to use this , but i dont use pidgin. have you considered doing one for emesene?
    Last edited by markp1989; January 5th, 2009 at 01:01 AM.
    Desktop:i7 875k|4gb OCZ platinum ddr3 2000|Evga P55 LE mobo|OCZ RevoDrive 50gb|ATI 5850 Black Edition|Silverstone FT02|corsair tx650
    Portable: 13" Macbook Pro 2.8ghz i7 16gb RAM | Asus EEE TF101 | Samsung Galaxy S2

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

    Re: Conky Pidgin Python Script

    Quote Originally Posted by markp1989 View Post
    thanks for all your usefull work, i use the forecast script constantly.


    would love to use this , but i dont use pidgin. have you considered doing one for emesene?
    I had a quick look at the source code for emesene and there doesn't seem to be a way to interrogate the app from outside of itself via dbus, it only seems to support plugins.

    To be honest, I dont like the idea of implementing a script for a messenger app which only handles one protocol anyway.

    Maybe when Empathy makes it's proper appearance it will attract the likes of yourself. I'll no doubt create a script to that at that time too, cause I'll be using it by then as well. http://live.gnome.org/Empathy

Page 1 of 2 12 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
  •