maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] HeySms - Send and receive sms on your computer (https://talk.maemo.org/showthread.php?t=84705)

titilambert 2012-06-05 17:56

[Announce] HeySms - Send and receive sms on your computer
 
HeySms

SAILFISH PORT HERE

Application submitted to the 2012 Coding Competition

Hi everyone !
I made a small application to send and receive sms on your computer without a specific software.
You just have to use your instant messaging client ... Which have to be compatible with Bonjour protocol.

I made this application because my girlfriend send me a lot of sms when I'm working ...
Now I can answer her without taking my N900 ... :)

Feature list :
  • Send SMS from your computer (using your bonjour client)
  • Receive SMS on your computer (using your bonjour client)
  • Silent your phone when HeySms starts
  • Use Smssend to send SMS. Usefull if you can't send Sms wih standard method. (You need to install smssend package)
  • Connect your phone to your computer using the USB cable
  • Bonjour Bot to control your phone (called 'Controller')
  • Controller will notify you if someone call you (Usefull, if your N900 is in silent mode)
  • Set contact as favorite... This contact will appears in your active contact list at starting ...
  • All your messages/answers are stored in your conversation history... :p

Controller fonctions :
  • help : Show help
  • show : Show current active contact list
  • search : Search a contact in your address book in order to add a contact in your Bonjour contact list
  • add : Add contact to active contact list
  • del : Remove contact from active contact list
  • echo : Just reply your message ...
  • If you have any idea ... I can do it !!!

Mini manual :
  1. Launch your instant messaging client on your computer and activate your Bonjour account.
  2. Launch HeySms on your N900
  3. In HeySms select yourself (your Bonjour name) in the Bonjour contact list.
  4. If you are not in the Bonjour contact list, click on reload button ...
  5. Add contact in your active contact list (Menu -> "Add friend")
  6. You will see your friend in the active contact list
  7. Your friend will appears in your Bonjour client on your computer
  8. Write message to your friend (in fact, it send SMS...)
  9. .... Wait answer ....
  10. Receive SMS ... :)
  11. The message appears on your computer !
  12. Answer ...

Of course, only the selected bonjour contact can send/receive SMS from/to your phone... :D

Also, all your answers will be store in the N900 history. You will not lost your messages ! ;)

Tested :
  • N900 and Pidgin (on Linux)
  • N900 and Empathy (on Linux)
  • N900 and Kopete (on Linux) [ Need more feedbacks ]
  • N900 and Gajim (on Linux) [ Need more feedbacks ]
  • Please talk about you

Limitations
  • If you use Wifi, your N900 and your computer must be on the same network (subnet)
  • N900 only (If I get N950 or N9, I port it !)

Updates
  • 1.6.6-1 : Fix communications with Kopete, Empathy, Pidgin and Gajim
  • 1.6.5-1 : Fix my poor english
  • 1.6.4-1 : Fix call notifier
  • 1.6.3-1 : Fix search contact (Thanks to darodi)
  • 1.6.2-1 : Fix Controller stability
  • 1.6.1-1 : Fix stability
  • 1.6.0-1 : Add controller. You can now control your N900 using Bonjour
  • 1.5.1-1 : Cleaning code
  • 1.5.0-1 : Add option to use USB PC connection
  • 1.4.5-1 : Fix minor bugs

Roadmap
  • Clean bonjour client code (use XMPPPY ???)
  • Improve USB network activation stability
  • Port to N9/N950
  • Silent phone using the Controller
  • Add preference to don't show Yellow Popups
  • Translations
  • .... ???
  • Call forwarding using jingle library ??? :D ( maybe in version 42 )

Usefull links :
Thanks for your feedbacks !



Please, excuse my english ... :)

zimon 2012-06-05 18:08

Re: [Announce] HeySms - Send and receive sms on your computer
 
N900 and a PC has to be somehow in the same local net, I guess, so avahi, mdns, bonjour would work?

titilambert 2012-06-05 18:31

Re: [Announce] HeySms - Send and receive sms on your computer
 
Quote:

Originally Posted by zimon (Post 1218011)
N900 and a PC has to be somehow in the same local net, I guess, so avahi, mdns, bonjour would work?

You right !!! I just edited my message ...

Maybe I should plan something (button ?) to automount the usb0 interface to simplify the connection...

benny1967 2012-06-05 19:15

Re: [Announce] HeySms - Send and receive sms on your computer
 
Need to try this as soon as possible. This would be reason enough for me to switch back to the n900 as my main phone. Or would it be possible to port this to the n9?

zimon 2012-06-05 19:36

Re: [Announce] HeySms - Send and receive sms on your computer
 
Quote:

Originally Posted by titilambert (Post 1218021)
Maybe I should plan something (button ?) to automount the usb0 interface to simplify the connection...

Hmm...maybe, but if someone already has local net connection with some other means (usb, wlan, bluetooth) then it should be able to use that also. Maybe you just tell in the help button, one can use Mobile hotspot to make a local net connection?


Tried it.
I have USB-network connection to the PC (with Mobile Hotspot application). The local net is working. I can for example ssh both ways.

When I start HeySms, it just tells "Loading Bonjour contacts" and then quits.

I tried to run it in xterminal, and it gives this:
Code:

$ heysms
Unsupported date format character at 1 (%-d.%-m.)
Traceback (most recent call last):
  File "/usr/bin/heysms", line 32, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 184, in main
    ui.central_widget.reload_contacts()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 85, in reload_contacts
    self.parent.bonjour_users = list_presence_users()
  File "/usr/lib/python2.5/site-packages/heysms/lib/lib.py", line 201, in list_presence_users
    callBack=browse_callback)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 1409, in DNSServiceBrowse
    None)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 286, in _errcheck
    raise cls(result)
lib.pybonjour.BonjourError: (-65537, 'unknown')


fignew 2012-06-05 19:53

Re: [Announce] HeySms - Send and receive sms on your computer
 
Would love to see something like this for the N9. Nice work :)

davdav 2012-06-05 20:07

Re: [Announce] HeySms - Send and receive sms on your computer
 
A good idea
Can you make it send emails with the SMS content
And you can reply back by sending back an email with a prefix maybe like SMS: -N "phone number" -t "text here "

titilambert 2012-06-05 20:26

Re: [Announce] HeySms - Send and receive sms on your computer
 
Quote:

Originally Posted by benny1967 (Post 1218044)
Need to try this as soon as possible. This would be reason enough for me to switch back to the n900 as my main phone. Or would it be possible to port this to the n9?

I just don't have N9 ...
I will present this application to meamo competition code 2012 to win a N9/N950 and port it ... :)

Thanks

titilambert 2012-06-05 20:32

Re: [Announce] HeySms - Send and receive sms on your computer
 
Quote:

Originally Posted by zimon (Post 1218055)
Hmm...maybe, but if someone already has local net connection with some other means (usb, wlan, bluetooth) then it should be able to use that also. Maybe you just tell in the help button, one can use Mobile hotspot to make a local net connection?


Tried it.
I have USB-network connection to the PC (with Mobile Hotspot application). The local net is working. I can for example ssh both ways.

When I start HeySms, it just tells "Loading Bonjour contacts" and then quits.

I tried to run it in xterminal, and it gives this:
Code:

$ heysms
Unsupported date format character at 1 (%-d.%-m.)
Traceback (most recent call last):
  File "/usr/bin/heysms", line 32, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 184, in main
    ui.central_widget.reload_contacts()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 85, in reload_contacts
    self.parent.bonjour_users = list_presence_users()
  File "/usr/lib/python2.5/site-packages/heysms/lib/lib.py", line 201, in list_presence_users
    callBack=browse_callback)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 1409, in DNSServiceBrowse
    None)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 286, in _errcheck
    raise cls(result)
lib.pybonjour.BonjourError: (-65537, 'unknown')


Oh ! Maybe I forgot a dependency in packaging ...
Do you have avahi-daemon installed ?
What do you have with :
apt-cache show avahi-daemon

zimon 2012-06-05 20:36

Re: [Announce] HeySms - Send and receive sms on your computer
 
Quote:

Originally Posted by titilambert (Post 1218091)
Oh ! Maybe I forgot a dependency in packaging ...
Do you have avahi-daemon installed ?
What do you have with :
apt-cache show avahi-daemon

Code:

$ dpkg -l | grep avahi
ii  libavahi-client3                                    0.6.24-0maemo5                            Avahi client library
ii  libavahi-common-data                                0.6.24-0maemo5                            Avahi common data files
ii  libavahi-common3                                    0.6.24-0maemo5                            Avahi common library
ii  libavahi-compat-libdnssd1                          0.6.24-0maemo5                            Avahi Apple Bonjour compatibility library

Yep, avahi-daemon was not installed.
....

edit:

After installing avahi-daemon:
Code:

$ dpkg -l | grep avahi
ii  avahi-daemon                                        0.6.24-0maemo5                            Avahi mDNS/DNS-SD daemon
ii  libavahi-client3                                    0.6.24-0maemo5                            Avahi client library
ii  libavahi-common-data                                0.6.24-0maemo5                            Avahi common data files
ii  libavahi-common3                                    0.6.24-0maemo5                            Avahi common library
ii  libavahi-compat-libdnssd1                          0.6.24-0maemo5                            Avahi Apple Bonjour compatibility library
ii  libavahi-core5                                      0.6.24-0maemo5                            Avahi's embeddable mDNS/DNS-SD library

But still no luck:
Code:

$ heysms
Unsupported date format character at 1 (%-d.%-m.)
Traceback (most recent call last):
  File "/usr/bin/heysms", line 32, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 184, in main
    ui.central_widget.reload_contacts()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 85, in reload_contacts
    self.parent.bonjour_users = list_presence_users()
  File "/usr/lib/python2.5/site-packages/heysms/lib/lib.py", line 201, in list_presence_users
    callBack=browse_callback)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 1409, in DNSServiceBrowse
    None)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 286, in _errcheck
    raise cls(result)
lib.pybonjour.BonjourError: (-65537, 'unknown')



All times are GMT. The time now is 14:51.

vBulletin® Version 3.8.8