![]() |
Re: Tinkering with DBus on Jolla
BTW, ConnMan dbus API descriptions can be found at http://git.kernel.org/cgit/network/c...n.git/tree/doc
The manager-api.txt and technology-api.txt are the most useful ones to check. |
Re: Tinkering with DBus on Jolla
Quote:
I did do some progresss though. Quote:
Code:
dbus-send --system --type=method_call --print-reply --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:"Powered" variant:boolean:true |
Re: Tinkering with DBus on Jolla
Any idea how to set an alarm via DBus?
|
Re: Tinkering with DBus on Jolla
Anyone now how to get GPS-coordinates through dbus? Or some other simple way that can be used from a shell script?
|
Re: Tinkering with DBus on Jolla
Quote:
Apparently the thing to use is "org.freedesktop.Geoclue.Master" but how to exactly do that escapes my understanding. I did some experimenting with qdbus but the format of the dbus commands are too difficult for me to understand... It's got a org.freedesktop.Geoclue.Master.Create() method, and invoking that will give you a new thingy, something like "/org/freedesktop/Geoclue/Master/client0" for example, where the last number will probably increase based on how many thingies you have create():d... |
Re: Tinkering with DBus on Jolla
Yes, I found the Geoclue interface, but didn't mess around with create. So that's one step fruther, thanks.
If I don't find anything else. I'll guess I'll have to write a small utility in c++. But it's fun to see how much that can be acomplished in pure(*) shell. * What ever pure means. dbus-send, mcetool etc. aren't shell commands. But they would be available in a shell ready nemo/sailfish install. |
Re: Tinkering with DBus on Jolla
Quote:
I'd like to make a simple positionlogger utility, that just logs coordinates every second, to help me plot my running exercises. I still have to take my N9 with me when I am running since there's nothing like that for Sailfish :( |
Re: Tinkering with DBus on Jolla
There is Rena: https://github.com/Simoma/rena. I did not try it with running, but it save tracks in GPX format.
|
Re: Tinkering with DBus on Jolla
Quote:
|
Re: Tinkering with DBus on Jolla
Quote:
|
| All times are GMT. The time now is 12:40. |
vBulletin® Version 3.8.8