Ask / Submit
0

python dbus geoclue

asked 2014-08-31 18:30:38 +0300

cy8aer gravatar image

Is there a working code snippet for python to get the actual location via geoclue and dbus?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
2

answered 2014-09-01 16:08:57 +0300

Jey Cee gravatar image

updated 2014-09-01 16:11:59 +0300

I found a thread with a code snippet, but can't get them running. Look at the last post on this site: http://mobilio.biz/origin/jww28

That is the only site i found a snippet with dbus, on all other sites they use qdbus. But i can't find a qdbus Version for Sailfish.

edit flag offensive delete publish link more

Comments

1

hm, found this: https://readthedocs.org/projects/python-geoclue/ - https://github.com/dplanella/python-geoclue this code uses dbus. I will try Jey's and this stuff out. Thank you

cy8aer ( 2014-09-01 23:41:53 +0300 )edit
1

qdbus is at /usr/lib/qt5/bin/qdbus, I don't remember if I installed extra packages for that. If not there install qt5-qttools-qdbus.

filipb92 ( 2014-09-02 13:35:05 +0300 )edit

This will output accuracy, position, timestamp, altitude:

/usr/lib/qt5/bin/qdbus --literal org.freedesktop.Geoclue.Providers.Here /org/freedesktop/Geoclue/Providers/Here org.freedesktop.Geoclue.Position.GetPosition
Rolfa ( 2016-05-25 10:51:03 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-08-31 18:30:38 +0300

Seen: 383 times

Last updated: Sep 01 '14