As requested by bleketux, I made some modifications to pidgin_status.py script.
Main news is that now it is possible to change Pidgin status message periodically. Script will go to background (it is a real daemon now :P), change the status, and wait for the set time interval until it changes the message again, and then all over again, wait-change-wait-change.
To change status message every 5 minutes with a random line from file /home/miljan/quotes/dusko_radovic.txt:
pidgin_status.py -d -t 5 -f /home/miljan/quote/dusko_radovic.txt
And in Pidgin you would get something like this every five minutes:
To show the song you are listening to as status message:
pidgin_status.py -s “Mukeka di Rato – Kustapassaaessedrmobral”
And in Pidgin it would look like:
You can see all possible options by running script with -h argument for help.
bleketux, I hope you are still around to enjoy this. ;)
Download: https://github.com/miljank/pidgin-status
I used you original pidgin_status.py here in mplayer to show the currently playing song.
http://paitoanderson.com/post4.php
Hi, I love your script but I get this error all the time, after a few minutes of starting it.
File “pidgin_status_v2.py”, line 297, in
set_status (purple)
File “pidgin_status_v2.py”, line 272, in set_status
msg = get_quote (opt.file)
File “pidgin_status_v2.py”, line 244, in get_quote
return quote
UnboundLocalError: local variable ‘quote’ referenced before assignment
Can you fix it? Or can you tell me how do I fix it? It’s very much appreciated. Thank you.
Hi rEnr3n,
Is there any chance that you can upload somewhere the quote file you are using with the script? I’m afraid it will be very hard to guess what’s going on without it.
Ok here is the file http://uploading.com/files/d56ba562/pidgin.txt/
Here is the command I type in terminal:
python pidgin_status_v2.py -d -t 10 -f /home/ren/Documents/Python/pidgin.txt
Thank you for your time.
Hi rEnr3n,
Please download new version of the script from https://www.miljan.org/download/pidgin_status_v2.5.py
It should fix the problem you are experiencing plus some different bugs I found.
Let me know how it goes.
Enjoy,
Miljan
After six hours of running the script, I haven’t seen any errors. It is working fine now, thanks. I’ll update you if I encounter future errors. :)