Notices


Reply
Thread Tools
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#81
hi guys, i love that app! i want to setup with vodafone it, can u tell me how can i do thios? thank u soo much!!! lovely app!!!
 
Posts: 55 | Thanked: 9 times | Joined on May 2010
#82
Hello,
I love the concept of this app. Also, can someone with python skill add a US provider please? I been using sendsmsnow.com for some time now and it works pretty well. If someone could help me add that, it would be great or any free US provider for that matter
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#83
Originally Posted by santiago View Post
hi guys, i love that app! i want to setup with vodafone it, can u tell me how can i do thios? thank u soo much!!! lovely app!!!
Well, have a look in my signature, I've added a Wiki to the Garage project. It's short, but with some python coding skills it is quite obvious what you have to do.

Everyone feel free to extend the Wiki.

Cheers
Bjoern
 
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#84
Originally Posted by blubbi View Post
Well, have a look in my signature, I've added a Wiki to the Garage project. It's short, but with some python coding skills it is quite obvious what you have to do.

Everyone feel free to extend the Wiki.

Cheers
Bjoern
i just want to edit your script... i made 80% of work but it says only german numbers ;(
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#85
Originally Posted by santiago View Post
i just want to edit your script... i made 80% of work but it says only german numbers ;(
Some more details please.
Who says only German numbers?
There isn't even the word German in the code.

If you mean "Only Dutch mobile phone numbers allowed"
You have to edit the regular expressions to match those allowed by your host and take care of the format of the numbers.

Here's some information about regexp:
http://docs.python.org/library/re.html

This is the Code I am talking about.
Code:
	def num_regexp(self, num):
	    	# Get rid of everything except 
		num = re.sub(r'[^(0-9)|\+]', '', num)
		# handle a couple of number formats (only mobile numbers allowed)
		if re.search(r'^\+316\d{8}$', num):	# ITU format, +31 is the Netherlands
			num = number[3:]
			return True, num, 'Valid Number'
		elif re.search(r'^06\d{8}$', num):	# local dialing format
			num = number[1:]
			return True, num, 'Valid Number'
		else:
			return False, num, 'Only Dutch mobile phone numbers allowed'
Cheers
Bjoern
 

The Following User Says Thank You to blubbi For This Useful Post:
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#86
Originally Posted by blubbi View Post
Some more details please.
Who says only German numbers?
There isn't even the word German in the code.

If you mean "Only Dutch mobile phone numbers allowed"
You have to edit the regular expressions to match those allowed by your host and take care of the format of the numbers.

Here's some information about regexp:
http://docs.python.org/library/re.html

This is the Code I am talking about.
Code:
	def num_regexp(self, num):
	    	# Get rid of everything except 
		num = re.sub(r'[^(0-9)|\+]', '', num)
		# handle a couple of number formats (only mobile numbers allowed)
		if re.search(r'^\+316\d{8}$', num):	# ITU format, +31 is the Netherlands
			num = number[3:]
			return True, num, 'Valid Number'
		elif re.search(r'^06\d{8}$', num):	# local dialing format
			num = number[1:]
			return True, num, 'Valid Number'
		else:
			return False, num, 'Only Dutch mobile phone numbers allowed'
Cheers
Bjoern
in details... i have to change the local dialing... vodafone numbers start like +39 (area code) 3 .... what i have to edit? sorry but i'm totally noob bout py thank and more thank for your great work u made a gorgeus app!
 
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#87
Originally Posted by santiago View Post
in details... i have to change the local dialing... vodafone numbers start like +39 (area code) 3 .... what i have to edit? sorry but i'm totally noob bout py thank and more thank for your great work u made a gorgeus app!
is it right like this???
def num_regexp(self, num):
# Get rid of everything except
num = re.sub(r'[^(0-9)|\+]', '', num)
# handle a couple of number formats (only mobile numbers allowed)
if re.search(r'^\+393\d{8}$', num): # ITU format, +39 is the Italy
num = number[3:]
return True, num, 'Valid Number'
elif re.search(r'^03\d{8}$', num): # local dialing format
num = number[1:]
return True, num, 'Valid Number'
else:
return False, num, 'Only Italian numbers are allowed'
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#88
Originally Posted by santiago View Post
is it right like this???
I'll answere your qestion when I am back... I am three days off.

Cheers
Bjoern
 

The Following User Says Thank You to blubbi For This Useful Post:
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#89
Originally Posted by blubbi View Post
I'll answere your qestion when I am back... I am three days off.

Cheers
Bjoern
by the way thanks and rethanks again for your work! have a great time!
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#90
Would it be possible to display the number of free SMS left (for example 50SMS with o2) / month and to login to the service in the background while writing so that you only have to send it when finished and not connect, login etc.?
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:58.