Thread: [tuxdroid-user] Tux Droid and Pidgin!!
Status: Beta
Brought to you by:
ks156
From: CARPENTIER T. <car...@fr...> - 2007-05-21 21:19:59
Attachments:
TuxPidgin.py
|
hi all After long time to read pidgin API, i can update my python script for Gaim in python script for Pidgin. *Description :* when a contact is connected, Tux Droid opens the mouth, and says alias contact to you TODO LIST ========= - make some actions when a conversation started - Internationalization Regards, Thomas CARPENTIER |
From: <ma...@ma...> - 2007-05-21 21:30:58
|
Very nice! I was also looking at Tux and DBus recently.. I need to get back to that. Thanks for the reminder! //m Quoting CARPENTIER Thomas <car...@fr...>: > hi all > > After long time to read pidgin API, i can update my python script for > Gaim in python script for Pidgin. > > *Description :* > when a contact is connected, Tux Droid opens the mouth, and says alias > contact to you > > TODO LIST > ========= > - make some actions when a conversation started > - Internationalization Regards, > > Thomas CARPENTIER |
From: <ror...@gm...> - 2007-05-22 04:42:14
|
ma...@ma... writes: > Very nice! > I was also looking at Tux and DBus recently.. I need to get back to > that. Thanks for the reminder! > > //m Speaking of which, if you intend to add DBus support to Tux, this post on Planet Gnome is an interesting read (and the example happens to be about Gaim's use of DBus): "Best D-Bus Practices" http://swik.net/GNOME/Planet+GNOME/Havoc+Pennington:+Best+D-Bus+Practices/7rss Damien |
From: Julien R. <jul...@gm...> - 2007-05-25 23:17:33
Attachments:
tuxpidgin.py
|
Hi, I post on the forum a new version, now Tuxdroid speaks with TTS voices that say the contact on pidgin. I can't really test because I haven't got tuxdroid, so I need somebody test and say if it run. Thanks Julien 2007/5/22, ror...@gm... <ror...@gm...>: > ma...@ma... writes: > > > Very nice! > > I was also looking at Tux and DBus recently.. I need to get back to > > that. Thanks for the reminder! > > > > //m > > Speaking of which, if you intend to add DBus support to Tux, this post > on Planet Gnome is an interesting read (and the example happens to be > about Gaim's use of DBus): > > "Best D-Bus Practices" > http://swik.net/GNOME/Planet+GNOME/Havoc+Pennington:+Best+D-Bus+Practices/7rss > > Damien > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > tux-droid-user mailing list > tux...@li... > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > |
From: <ror...@gm...> - 2007-05-26 09:52:58
|
"Julien Ruchaud" <jul...@gm...> writes: > Hi, > I post on the forum a new version, now Tuxdroid speaks with TTS voices > that say the contact on pidgin. I can't really test because I haven't > got tuxdroid, so I need somebody test and say if it run. Hello, Just tried it and I have a few comments: 1. There is a bunch of ^M at the end of the lines in the module's doc string and in __author__, __app__name, etc. Please don't use these in the Unix/Linux world. (See dos2unix.) There is trailing whitespace. It's ugly and may lead to conflicts or unnecessary diffs when merging/committing in svn. Your editor probably has an option to remove these automatically. 2. I think you should use underscores in your function names: received_im_msg() and buddy_signed_on() are much more readable than receivedimmsg() and buddysignedon(). 3. When pidgin is not running, your script dumps an exception; it should catch it and print a nice, user-friendly error message instead. 4. When I started pidgin and then your script, the latter printed on stdout that "Blah is online" (which was right) but Tux didn't *say* it. Both tuxdaemon and tuxttsdaemon where running. I'll keep your script running and see what happens when my contacts come and go. Damien |
From: <car...@fr...> - 2007-05-29 09:47:25
|
hi David! I think i have developer rights. I put scripts this evening. Thomas Selon David Bourgeois <da...@ja...>: > On Sat, 26 May 2007 17:44:20 +0200, Julien Ruchaud > <jul...@gm...> wrote: > > > Good work ! > > > > This script is enough well, it is possible to put this on svn ? it > > will be more easy to work. > > > > Julien > > Good idea. Thomas, do you have the developer rights yet? Otherwise contact > me. > You can add your project under /software. > > Thanks, > David > > |
From: CARPENTIER T. <car...@fr...> - 2007-05-29 17:56:59
|
Hi all! Tux_pidgin.py is on SVN!! Update your folders!!! Thomas car...@fr... a écrit : > hi David! > > I think i have developer rights. I put scripts this evening. > > Thomas > > Selon David Bourgeois <da...@ja...>: > > >> On Sat, 26 May 2007 17:44:20 +0200, Julien Ruchaud >> <jul...@gm...> wrote: >> >> >>> Good work ! >>> >>> This script is enough well, it is possible to put this on svn ? it >>> will be more easy to work. >>> >>> Julien >>> >> Good idea. Thomas, do you have the developer rights yet? Otherwise contact >> me. >> You can add your project under /software. >> >> Thanks, >> David >> >> >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > tux-droid-user mailing list > tux...@li... > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > > > |
From: CARPENTIER T. <car...@fr...> - 2007-05-23 22:55:04
|
Hi All!! I develop a new feature into my script, but before deliver it i need somebody who can help me to (really good in design ;-) ) creates emoticones of TuxDroid which symbolize each actions TuxDroid can do.( picture need be in png). Thanks a lot Thomas |
From: Florent T. <ft...@gm...> - 2007-05-24 08:08:33
|
> I develop a new feature into my script, but before deliver it i need > somebody who can help me to (really good in design ;-) ) creates > emoticones of TuxDroid which symbolize each actions TuxDroid can do Well, first, what types of actions do you have in mind? :) Florent |
From: <car...@fr...> - 2007-05-24 08:31:56
|
Hi, i think emoticones for - Tux Smiles ( Tux open open mouth and read waw "ahahah") - Tux spins left and/or right ( like http://smileys.sur-la-toile.com/repository/Pingouins/pingouin1.gif) - Tux wings left and or/right ( like http://smileys.sur-la-toile.com/repository/Pingouins/pingouin-20060614.gif) - Tux open/close eyes - Tux leds blinks Thomas Selon Florent THIERY <ft...@gm...>: > > I develop a new feature into my script, but before deliver it i need > > somebody who can help me to (really good in design ;-) ) creates > > emoticones of TuxDroid which symbolize each actions TuxDroid can do > > Well, first, what types of actions do you have in mind? :) > > Florent > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > tux-droid-user mailing list > tux...@li... > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > |
From: CARPENTIER T. <car...@fr...> - 2007-05-26 10:16:32
Attachments:
tuxpidgin0.2.py
|
Hi! 2: i modified it 3 : at line 96, i added 'try except" functions. 4 : at line 81 => text need be encoded in 'utf-8' text=text.encode('utf-8') Fixed in attached file. I am working about received message, i found a parser for html to text. I will post it when it will done Thomas ror...@gm... a écrit : > "Julien Ruchaud" <jul...@gm...> writes: > > >> Hi, >> I post on the forum a new version, now Tuxdroid speaks with TTS voices >> that say the contact on pidgin. I can't really test because I haven't >> got tuxdroid, so I need somebody test and say if it run. >> > > Hello, > > Just tried it and I have a few comments: > > 1. There is a bunch of ^M at the end of the lines in the module's doc > string and in __author__, __app__name, etc. Please don't use these > in the Unix/Linux world. (See dos2unix.) > > There is trailing whitespace. It's ugly and may lead to conflicts > or unnecessary diffs when merging/committing in svn. Your editor > probably has an option to remove these automatically. > > 2. I think you should use underscores in your function names: > received_im_msg() and buddy_signed_on() are much more readable than > receivedimmsg() and buddysignedon(). > > 3. When pidgin is not running, your script dumps an exception; it > should catch it and print a nice, user-friendly error message > instead. > > 4. When I started pidgin and then your script, the latter printed on > stdout that "Blah is online" (which was right) but Tux didn't *say* > it. Both tuxdaemon and tuxttsdaemon where running > > I'll keep your script running and see what happens when my contacts > come and go. > > Damien > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > tux-droid-user mailing list > tux...@li... > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > > > |
From: neimad <ror...@gm...> - 2007-05-26 12:41:33
|
CARPENTIER Thomas <car...@fr...> writes: [...] > at line 81 =3D> text need be encoded in 'utf-8' > text=3Dtext.encode('utf-8') > Fixed in attached file. It works now :-) except that Tux says both the alias of the contact and its status (occupied, away, etc): "Alice is online" "Bob Occup=C3=A9 is online" This is weird, and I think Tux should only say the name. Unfortunately, from what I see in your code libpurple returns the status as part of the contact's alias ! This is pretty stupid, and I hope there's a way to get the alias (or name) *only* ? Damien |
From: Julien R. <jul...@gm...> - 2007-05-26 11:33:31
|
Hi, Thank for all tester ! 1: That's strange I work in debian ! Sorry I doesn't believe that script is on svn. 2, 3, 4: Thanks 4': Is it preferable to exit with return code different to 0 and specify in error maybe that dbus support is not supported by Pidgin ? Julien 2007/5/26, CARPENTIER Thomas <car...@fr...>: > Hi! > > 2: > i modified it > > 3 : at line 96, i added 'try except" functions. > > 4 : > at line 81 =3D> text need be encoded in 'utf-8' > text=3Dtext.encode('utf-8') > Fixed in attached file. > I am working about received message, i found a parser for html to text. > I will post it when it will done > > Thomas > > > ror...@gm... a =E9crit : > > "Julien Ruchaud" <jul...@gm...> writes: > > > > > >> Hi, > >> I post on the forum a new version, now Tuxdroid speaks with TTS voices > >> that say the contact on pidgin. I can't really test because I haven't > >> got tuxdroid, so I need somebody test and say if it run. > >> > > > > Hello, > > > > Just tried it and I have a few comments: > > > > 1. There is a bunch of ^M at the end of the lines in the module's doc > > string and in __author__, __app__name, etc. Please don't use these > > in the Unix/Linux world. (See dos2unix.) > > > > There is trailing whitespace. It's ugly and may lead to conflicts > > or unnecessary diffs when merging/committing in svn. Your editor > > probably has an option to remove these automatically. > > > > 2. I think you should use underscores in your function names: > > received_im_msg() and buddy_signed_on() are much more readable than > > receivedimmsg() and buddysignedon(). > > > > 3. When pidgin is not running, your script dumps an exception; it > > should catch it and print a nice, user-friendly error message > > instead. > > > > 4. When I started pidgin and then your script, the latter printed on > > stdout that "Blah is online" (which was right) but Tux didn't *say* > > it. Both tuxdaemon and tuxttsdaemon where running > > > > > I'll keep your script running and see what happens when my contacts > > come and go. > > > > Damien > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > tux-droid-user mailing list > > tux...@li... > > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > tux-droid-user mailing list > tux...@li... > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > > > |
From: neimad <ror...@gm...> - 2007-05-26 12:35:57
|
"Julien Ruchaud" <jul...@gm...> writes: > 4': Is it preferable to exit with return code different to 0 and > specify in error maybe that dbus support is not supported by Pidgin ? Yes, exiting with a value other than zero would be better in this case (no dbus support or not pidgin running, which would be the same thing from the script's pov, i guess). However, if the script is intended to be run as a daemon, it would be better to periodically check whether pidgin is running and notify the user (with notify-send, for instance) when pidgin is started/stopped. Damien |
From: neimad <ror...@gm...> - 2007-05-26 14:39:57
Attachments:
tuxpidgin-voice-selection.patch
|
CARPENTIER Thomas <car...@fr...> writes: I added simplistic language and gender selection from the commandline. Patch attached. Damien |
From: Julien R. <jul...@gm...> - 2007-05-26 15:44:21
|
Good work ! This script is enough well, it is possible to put this on svn ? it will be more easy to work. Julien 2007/5/26, neimad <ror...@gm...>: > I added simplistic language and gender selection from the commandline. > Patch attached. > > Damien > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > tux-droid-user mailing list > tux...@li... > https://lists.sourceforge.net/lists/listinfo/tux-droid-user > > > |
From: David B. <da...@ja...> - 2007-05-29 09:30:14
|
On Sat, 26 May 2007 17:44:20 +0200, Julien Ruchaud <jul...@gm...> wrote: > Good work ! > > This script is enough well, it is possible to put this on svn ? it > will be more easy to work. > > Julien Good idea. Thomas, do you have the developer rights yet? Otherwise contact me. You can add your project under /software. Thanks, David |