The Following 7 Users Say Thank You to rbrewer123 For This Useful Post: | ||
|
2008-10-06
, 02:56
|
Posts: 5 |
Thanked: 0 times |
Joined on Apr 2008
|
#2
|
|
2008-10-15
, 17:15
|
Posts: 5 |
Thanked: 0 times |
Joined on Apr 2008
|
#3
|
def __init__(): pass
|
2009-12-01
, 14:44
|
Posts: 486 |
Thanked: 154 times |
Joined on Sep 2009
@ New York City
|
#4
|
|
2009-12-01
, 17:43
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#5
|
|
2009-12-01
, 21:26
|
Posts: 486 |
Thanked: 154 times |
Joined on Sep 2009
@ New York City
|
#6
|
|
2009-12-01
, 21:43
|
|
Posts: 696 |
Thanked: 1,012 times |
Joined on Mar 2006
@ Asturies, Spain
|
#7
|
The Following User Says Thank You to yerga For This Useful Post: | ||
|
2009-12-02
, 07:50
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#8
|
|
2009-12-02
, 12:18
|
Posts: 24 |
Thanked: 38 times |
Joined on Nov 2009
|
#9
|
|
2009-12-02
, 12:25
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#10
|
http://maemo.org/development/documen....html#Location
I am running an n810 with the latest OS 2008 firmware and was not able to make the python-gpsbt module work as advertised. I decided to wrap the official location API using ctypes instead. The example usage script should "just work" to turn on your GPS and start printing location data once it locks.
This code "works for me", but should be considered alpha since I am the only one who has used it. Eventually I'll try releasing this someplace better. The example is placed in the public domain and the wrapper is licensed under LGPL v3.
The files should be renamed to *.py after downloading.