maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] www2sms - Send SMS via your providers website (https://talk.maemo.org/showthread.php?t=52754)

blubbi 2010-05-15 17:05

[ANNOUNCE] www2sms - Send SMS via your providers website
 
5 Attachment(s)
www2sms lets you send SMS via your providers Website.

Currently two providers are supported:
- O2 Germany (by myself)
- Vodafon Netherlands (by Shane)

The program is entirely written in Pyhton and uses python-mechanize to scrape the websites.

It's written modular, so it's easy to patch in new providers.
Your Address book is fully supported (well, not as nice as I would like it to be, but it is a start)

Now saves SMS to Conversation
(thanks gri for the code!)

Features for o2online (DE):
  • Send SMS anonymous
  • Send SMS with different sender ID
  • Send SMS as Flash SMS
  • Scheduling SMS is work in progress

ToDo:
  • Fix o2online.de scheduling
  • Find nicer Phone book workaround
  • Some cosmetic changes (Nicer Contact selection, etc)
  • Special characters like "äöü" do not show up in the send SMS

The advanced Tab only shows up if the provider features advanced settings.

I would like to promote the package to testing if no sever bugs occur. So PLEASE test.

Version 1.0.2 is in DEVEL right now.

https://garage.maemo.org/projects/www2sms/
http://maemo.org/packages/view/www2sms/


Please vote for the dependencies of www2sms:
python-mechanize
http://maemo.org/packages/view/python-mechanize/
http://maemo.org/packages/package_in....11-1.1maemo4/

python-clientform
http://maemo.org/packages/view/python-clientform/
http://maemo.org/packages/package_in....10-2.1maemo4/

Kind regards
Bjoern

adhrie 2010-05-15 17:16

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
keep up the good work...

unfortunately i'm not using any of the supported provider
so i'll be waiting for more provider support (and i don't know anything about python programming also)

blubbi 2010-05-15 17:23

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by adhrie (Post 659828)
keep up the good work...

unfortunately i'm not using any of the supported provider
so i'll be waiting for more provider support (and i don't know anything about python programming also)

Jeah, well that's the problem...
Adding new providers is only possible if one has access to the target provider and some skills in python or a friend who has.

Well, any provider can be added, not only cellphone providers.
(Any webservice providing SMS)

I just started with o2online.de because I got 50 free SMS/month and was to lazy to fire up the browser each time. Shane contributed the "Vodavone Netherlands" provider.

So I am open for suggestions and patches are welcome as well ;-)


Cheers
Bjoern

HumanPenguin 2010-05-15 17:35

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by adhrie (Post 659828)
keep up the good work...

unfortunately i'm not using any of the supported provider
so i'll be waiting for more provider support (and i don't know anything about python programming also)

I have a fair bit of python experience.

If someone could point me to the sites I need to do this through vodafone UK and other providers Id be happy to work ut how to create modules for it.

I have been looking for a project to get into maemo development.

blubbi 2010-05-15 17:51

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by HumanPenguin (Post 659842)
I have a fair bit of python experience.

If someone could point me to the sites I need to do this through vodafone UK and other providers Id be happy to work ut how to create modules for it.

I have been looking for a project to get into maemo development.

Well, do you have an account for those providers? If yes, all you need to do is the following:
  • Read on python-mechanize
  • Download www2sms and have a look at www2sms_providers.py
  • Add your own provider class to www2sms_providers.py (take the existing as example, o2online is rather complex because of the additions features, so for the beginning have a look at Vodafon NL)
  • Use FireFox Web Developer Plugin to easily get the forms to fill (Or Opera DragonFly)

If you don't have access to those providers, just look out for some public SMS-Service like http://sms.de or any other serious provider you use or found by google: http://www.google.com/search?q=free+sms

Go for one that does not use too much JavaScript, mechanize does not support JavaScript and you have to manually reconstruct what the JavaScript is doing.

Contact me via PM if you want to attend the project or contact me via SKYPE, XMMP. I am glad to help you start.

Thanks for your interest.

Cheers
Bjoern

HumanPenguin 2010-05-15 18:32

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by blubbi (Post 659858)
Well, do you have an account for those providers? If yes, all you need to do is the following:
  • Read on python-mechanize
  • Download www2sms and have a look at www2sms_providers.py
  • Add your own provider class to www2sms_providers.py (take the existing as example, o2online is rather complex because of the additions features, so for the beginning have a look at Vodafon NL)
  • Use FireFox Web Developer Plugin to easily get the forms to fill (Or Opera DragonFly)

If you don't have access to those providers, just look out for some public SMS-Service like http://sms.de or any other serious provider you use or found by google: http://www.google.com/search?q=free+sms

Go for one that does not use too much JavaScript, mechanize does not support JavaScript and you have to manually reconstruct what the JavaScript is doing.

Contact me via PM if you want to attend the project or contact me via SKYPE, XMMP. I am glad to help you start.

Thanks for your interest.

Cheers
Bjoern

I have a contract with vodafone uk.

Ill look around at stuff when I get home. ( At gfs atm)

I am not sure if vodafone UK even provides such a service but will look into it.

blubbi 2010-05-15 18:50

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by HumanPenguin (Post 659895)
I have a contract with vodafone uk.

Ill look around at stuff when I get home. ( At gfs atm)

I am not sure if vodafone UK even provides such a service but will look into it.

If Vodafon UK has such a service, it should be straight forward to modify the existing Vodafon NL class to match Vodafon UK (If the websites are not too different)

Cheers
Bjoern

MaRRo81 2010-05-17 13:22

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Hi,

I've installed the last version of www2sms from extra-devel but when I launch it, it doesn't work...It starts loading but then nothing happens and the window closes...what could it be?

Many thanks

MaRRo81 2010-05-17 13:48

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
If I launch it from shell it says " QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault".

Any ideas?

blubbi 2010-05-17 14:43

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
1 Attachment(s)
Quote:

Originally Posted by MaRRo81 (Post 662424)
If I launch it from shell it says " QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault".

Any ideas?

Mmmmh, that weird. I once got that error when launching www2sms.py as root. But after dropping root privileges and running
"cd /opt/www2sms/"
"python www2sms.py"
it started right away.

Could you download the attached version, extract it an run it from the console?
(There is only a fix included for "Umlaute", I completely forgot to test for that and... using Umlaute, mechanize fails to send the SMS)

Did you install version 1.0.0 via the package manager?

Cheers
Bjoern


All times are GMT. The time now is 01:48.

vBulletin® Version 3.8.8