View Single Post
Posts: 58 | Thanked: 223 times | Joined on Apr 2017 @ Germany
#655
Originally Posted by abranson View Post
Should be calling 'org.rockwork.Pebble.LaunchApp' - you left the Pebble out.
I got it !!! I cannot believe it but I got it working now!
This is almost like a dream, I will have data of my own sport tracking app on my pebble watch, crazy...

So this is what I did.
There is the very nice method "send" in appmsgmanager.cpp. I exposed this to a DBus interface in dbusinterface.cpp.
The new DBus interface is called "SendAppData" and takes the uuid of the app and a QVariantMap as data.
Now I can send data to the any app I want.

Then I looked at the log files I got from gadgetbridge and send a DBus call like this:
Code:
gdbus call -e -d org.rockwork -o /org/rockwork/B0_B4_48_62_63_F7 -m org.rockwork.Pebble.SendAppData "4dab81a6-d2fc-458a-992c-7a1f3b96a970" '{ "0": <"11:11">, "1": <"2.2">, "5": <0>, "2": <"026"> }'
And voila:
 

The Following 8 Users Say Thank You to jdrescher For This Useful Post: