Hello all,
could anyone please tel me how to control the GPS receiver integrated in the Nokia N82? I just want to read the position info and display it. Thanks!
Robin24
Hello all,
could anyone please tel me how to control the GPS receiver integrated in the Nokia N82? I just want to read the position info and display it. Thanks!
Robin24
Hi robin24 and welcome to the Python Discussion Board.
A simple example of what you want would be like this:
Note that you have to have a Script Shell signed with the Location capability.Code:import positioning print positioning.position()
Hi Robin24 and welcome to the Python Discussion Boards!
This post could be helpful to you.
Best Regards,
Croozeus
Pankaj Nathani
www.croozeus.com
Hi all,
first, thanks for the nice welcome Croozeus! :-)
Well, I tried the positioning.modules() command, however I get a permission denied error :-( So where can I get a shell with GPS capabilities? Thanks!
Robin24
In order to sign the Script Shell, do the following:
1)Download "PythonScriptShell_1_4_3_3rdEd_unsigned_testrange.sis" from here
2)Go to http://www.symbiansigned.com, select the "Open Signed Online" method
3)Enter your email address, the phone's IMEI (*#06# in standby) and the application you wish to submit.
4)Select all the capabilities from the list there (even if you don't need them all, it never hurts to have them)
5)Enter the security code and agree with the "Legal agreement" and submit
6)You will receive a confirmation email and then a download link
Hi,
thanks for the info. Unfortunately, there's no way I can do the signing process since I'm blind (using Talks as the screen reader on my phone). Well, would you mind doing the signing process for me? I'd really apreciate it. My Mail address is webmaster[at]robin-kipp.de, the IMEI number of my phone is 358082012741753 Thanks a lot!
Robin24
OK, I've sent the signed Script Shell to you via email.
Thanks!!! That's really nice, now it works! Great! Thanks again!
Robin24
Hi again,
just wondering, why doesn't the following code work when I run it as a script under Python Shell -> run script but works when I type it in the interactive shell?
Code:
import positioning
mod = positioning.default_module()
print "GPS default module:"
print mod
print "More info about default module:"
print positioning.module_info(mod)
I get the "GPS default module" message and the ID, but then it stops. I don't even get the "info" message. What's wrong here? Thanks!
Robin