![]() |
location via DBUS ?
Is there any way to get at location data through dbus ?
The package location-daemon claims a Gypsy dbus API: "Description: Location daemon Daemon for controlling internal location harware. Uses Gypsy-compatible DBus API." Tried to access known gypsy objects and doesn't appear to support any introspection so can't figure it out. Liblocation works fine alone in python. But the combination of PyQT, liblocation, and gobject causes a segfault once the event loop is started so I need to find an alternate method. -Jonan |
Re: location via DBUS ?
Why not look at Gypsy itself?
See, unlike Nokia's closed source liblocation, Gypsy was not written by Nokia and is not closed source. http://repository.maemo.org/pool/fre.../gypsy-daemon/ Grab a tarball. The interfaces and examples directory will reveal all. |
Re: location via DBUS ?
Gypsy does not support the N900 internal GPS so its not an option.
Figured out howto access location-daemon's Gypsy interface thanks to dbus-monitor. Main things to know are: Dbus service name: com.nokia.Location Dbus path: /com/nokia/location/las GPS device name: las the rest is standard Gypsy API. Modified the gypsy python example to work with location-daemon, just enter las as the first arguement. Still some unknown issue with the position fields bitmask but appears to be working. Code:
#! /usr/bin/python |
All times are GMT. The time now is 07:20. |
vBulletin® Version 3.8.8