Page 3 of 20 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 195

Thread: Conky Pidgin Python Script

  1. #21
    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 cl0ckwork View Post
    i guess i gotta cut back on my social life

    took out part of the options and increases the text buffer to 4096.
    much better

    Edit: it wont let me ignore more than 2 groups?

    Re-Edit:just used the includelist option for now
    there is a limit to the length of text used in all the options, try using -i instead of --ignorelist, that might help.

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

    Re: Conky Pidgin Python Script

    is there anyway to include the mobile buddies as an offline group?
    that may be the reason why it shows so many buddies.
    i never talk to them on their phone anyways.
    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

  3. #23
    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 cl0ckwork View Post
    is there anyway to include the mobile buddies as an offline group?
    that may be the reason why it shows so many buddies.
    i never talk to them on their phone anyways.
    Mobile Buddies - please enlighten me...

    If they are one group just use --ignorelist?

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

    Re: Conky Pidgin Python Script

    Quote Originally Posted by kaivalagi View Post
    Mobile Buddies - please enlighten me...

    If they are one group just use --ignorelist?
    they are still separated into the different buddies group, but instead of going away or signing off the go "mobile" and all messages sent to them are forwarded to their mobile phone.

    it might be just a specific AIM thing, but i believe thats why so many of my buddies are showing up as online
    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

  5. #25
    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 cl0ckwork View Post
    they are still separated into the different buddies group, but instead of going away or signing off the go "mobile" and all messages sent to them are forwarded to their mobile phone.

    it might be just a specific AIM thing, but i believe thats why so many of my buddies are showing up as online
    Nope, sorry, I had a look at the api and there is nothing exposed to tell me whether an online buddy is available via mobile...so I can't account for it

    Does pidgin tell you thin somehow? Is it in the status message? If it is then I can possibly determine it from the text......maybe

    Can you provide a screen of of an example output with the script?

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

    Re: Conky Pidgin Python Script

    sorry, no help with the script it doesnt show andything.
    pidgin just shows a picture of a phone when a buddy goes mobile, although pidgin does list them as available.

    would it be possible to make buddies that are away have a different status symbol?
    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

  7. #27
    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 cl0ckwork View Post
    sorry, no help with the script it doesnt show andything.
    pidgin just shows a picture of a phone when a buddy goes mobile, although pidgin does list them as available.

    would it be possible to make buddies that are away have a different status symbol?
    I tracked down the status data, away/mobile etc is all there...

    I have something rudimentary working now, once I have fixed it up, would you mind testing it....I have no buddies with a mobile status ever (no AIM)

    Chimo

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

    Re: Conky Pidgin Python Script

    no problem, just let me know what to do
    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

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

    Re: Conky Pidgin Python Script

    TEST SCRIPT, ONLY USE IF YOU KNOW WHAT YOU@RE DOING

    The test script to handle all the extra statuses is attached.

    To test, extract the file and place it somewhere, then run the script in conky as follows:

    Code:
    ${execpi 60 python /path/to/py/file/conkyPidgin.py ... options ...}
    You could run it in the terminal to get verbose info out, which can help a lot:

    Code:
    python /path/to/py/file/conkyPidgin.py -v ... options ...
    The options available are listed below. I added the text options for all the shown statuses and also added an --availableonly option, to only show people that are available to chat...I think that might be what you're after

    Have a tinker with all the options and let me know how you get on, I don't know whether the 'mobile' status will be handled properly, so testing that is important. If you have any more suggestions, then speak up

    If all is okay I'll update the example conkyrc for the installer then package everything up and roll it out

    Code:
    Usage: conkyPidgin.py [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.
    Attached Files Attached Files
    Last edited by kaivalagi; November 12th, 2008 at 09:00 PM.

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

    Re: Conky Pidgin Python Script

    when running it through the terminal, i get no errors but it doesnt display buddies as mobile.
    -availableonly option works, shows only those online and not away
    buddies show up as away when they are away

    all status text options work accordingly (with the exception to being mobile)
    i dont have too many friends on MSN or Yahoo etc. so i could not tell if the invisible option was working

    when running the script in conky, starting through the command line gives me this error
    Code:
    Traceback (most recent call last):
      File "/home/clockwork/conkyPidgin.py", line 280, in writeOutput
        print output.encode("utf-8")
    IOError: [Errno 32] Broken pipe
    ERROR: Unknown error when calling writeOutput:[Errno 32] Broken pipe
    it seems to be running fine on my desktop other than that.

    oh. and i realized i need a longer desktop.... my conky is running off the bottom with my list of buddies!!

    but using the available only option did cut back on the list quite a bit

    thank you
    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

Page 3 of 20 FirstFirst 1234513 ... 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
  •