PyS60, GPS and SMS

2008-12-31 Thread makobu

# Send an SMS with your current GPS co-ordinates using a
# Nokia SmartPhone and PyS60
#
# Timothy Makobu, 01-01-2009


import positioning
import messaging
import appuifw
import sys


# Get your GPS co-ordinates #
def getCoordinates():
positioning.select_module(positioning.default_module())
positioning.set_requestors([{'type':'service',
'format':'application','data':'position'}])
try:
sys.stdout.write('Retrieving GPS co-ordinates ...\n')
data = positioning.position(course=1, satellites=1)
except:
sys.stdout.write('Could not retrieve GPS co-ordinates\n\n\n')
sys.exit(-1)
else:
sys.stdout.write('GPS co-ordinates retrieved\n')
return (data['position']['latitude'], data['position']
['longitude'])

# Send your GPS co-ordinates as an SMS #
def sendCoordinates(coords, number):
message = u'I\'m at location:\nLatitute  -- %f\nLongitute -- %f
\n' % coords
try:
sys.stdout.write('Sending SMS ...\n')
messaging.sms_send(number, message)
except:
sys.stdout.write('Could not send SMS :(\n\n\n')
sys.exit(-1)
else:
sys.stdout.write('SMS sent :)\n')


if __name__ == '__main__':
presetPhoneNumber = None # Enter phoneNumber here eg
'+25472200'
phoneNumber = presetPhoneNumber or appuifw.query(u'Enter number:
','text')
if not phoneNumber:
sys.stdout.write('No number entered; exiting ...\n\n\n')
sys.exit(-1)
sendCoordinates(getCoordinates(), phoneNumber)
--
http://mail.python.org/mailman/listinfo/python-list


Re: PyS60

2007-09-26 Thread M�ta-MCI (MVP)
Hi!

I am also interested by Python on Symbian-series 60

@+

Michel Claveau

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyS60

2007-09-26 Thread cyberco
I have used PyS60 quite a lot a while ago, but what is it you exactly
wanted to know?
One thing I can tell you is that it's a pity that it only runs on
Series 60 phones and that the security restrictions of third edition
devices severely limited the options for developers.

2B

-- 
http://mail.python.org/mailman/listinfo/python-list


PyS60

2007-09-25 Thread croozeus
Does anybody in the group develop applications for symbian OS using
Python for Series 60?
I am interested in developing such applications..
Also i have the following site for the newbies to PyS60.

Regards,
Pankaj Nathani

Pys60 1.4.0 on Nokia 6680 4.04 2nd Edition FP2,Pys60 1.4.0 on Nokia
7610 2nd Edition

View my P60 at
http://croozeus.googlepages.com/py60

Py60 Resources
http://sourceforge.net/projects/pys60
_

-- 
http://mail.python.org/mailman/listinfo/python-list


nokia pys60 contacts + calendar

2007-02-03 Thread worlman385
anyone could give a hint on adding new entry to nokia phone's contact
list and calendar 

what function in pys60 python modules would make this working 

or any examples on how to make this work 
 
thanks
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: nokia pys60 contacts + calendar

2007-02-03 Thread cyberco
You can most likely find an answer on Nokia's Python forum:
http://discussion.forum.nokia.com/forum/forumdisplay.php?f=102

And if there's no answer there you should post the question there :)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: nokia pys60 contacts + calendar

2007-02-03 Thread Torsten
Hi,

Programming with Python for Series 60 Platform
   http://eugen.leitl.org/Programming_with_Python.pdf

Python for Series 60 Platform - API Reference
   PythonForS60_doc_1_3_17.pdf

should answer your questions
Torsten
-- 
http://mail.python.org/mailman/listinfo/python-list