Notices


Reply
Thread Tools
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#641
Yep, I was also trying to pair the LE device at first. The other works though.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 2 Users Say Thank You to Bundyo For This Useful Post:
Posts: 343 | Thanked: 819 times | Joined on Jan 2010 @ Paris, France
#642
thanks indeed I was trying to pair the LE device... and had to wait for a while!
 

The Following User Says Thank You to P@t For This Useful Post:
Posts: 58 | Thanked: 223 times | Joined on Apr 2017 @ Germany
#643
Hi abranson,

I have a little question. I am using the dbus interface of Rockpool to do things on the pebble.
Many commands are working fine, e.g.
Code:
dbus-send --session --print-reply --dest=org.rockwork /org/rockwork/B0_B4_48_62_63_F7 org.rockwork.Pebble.InstalledAppIds
method return time=1510145579.237350 sender=:1.1106 -> destination=:1.1309 serial=330 reply_serial=2
   array [
      string "{07e0d9cb-8957-4bf7-9d42-35bf47caadfe}"
      string "{18e443ce-38fd-47c8-84d5-6d0c775fbe55}"
      string "{1f03293d-47af-4f28-b960-f2b02a6dd757}"
      string "{b2cae818-10f8-46df-ad2b-98ad2254a3c1}"
      string "{67a32d95-ef69-46d4-a0b9-854cc62f97f9}"
      string "{8f3c8686-31a1-4f5f-91f5-01600c9bdc59}"
      string "{0c3ca0ae-9067-4764-af92-bdcad1fb6084}"
      string "{7112d624-6555-4279-89ae-c086e9369428}"
      string "{0b73b76a-cd65-4dc2-9585-aaa213320858}"
      string "{14bd9cd3-14dc-4b81-bd58-2f1fb9b57978}"
      string "{6bec706e-8ac9-440e-af2e-259f73784886}"
   ]
Problem is that I can't get an app started. This should start the music app:
Code:
dbus-send --session --print-reply --dest=org.rockwork /org/rockwork/B0_B4_48_62_63_F7 org.rockwork.LaunchApp string:"1f03293d-47af-4f28-b960-f2b02a6dd757"
Error org.freedesktop.DBus.Error.UnknownInterface: No such interface 'org.rockwork' at object path '/org/rockwork/B0_B4_48_62_63_F7'
Is there something wrong with the command?
 

The Following 2 Users Say Thank You to jdrescher For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#644
Originally Posted by jdrescher View Post
Problem is that I can't get an app started. This should start the music app:
Code:
dbus-send --session --print-reply --dest=org.rockwork /org/rockwork/B0_B4_48_62_63_F7 org.rockwork.LaunchApp string:"1f03293d-47af-4f28-b960-f2b02a6dd757"
Error org.freedesktop.DBus.Error.UnknownInterface: No such interface 'org.rockwork' at object path '/org/rockwork/B0_B4_48_62_63_F7'
Is there something wrong with the command?
Should be calling 'org.rockwork.Pebble.LaunchApp' - you left the Pebble out.
 

The Following 5 Users Say Thank You to abranson For This Useful Post:
Posts: 58 | Thanked: 223 times | Joined on Apr 2017 @ Germany
#645
Many thanks, that was driving me mad. Now I get a positive response but the app is not startet. Is the UUID string in the correct format?

Code:
dbus-send --session --print-reply --dest=org.rockwork /org/rockwork/B0_B4_48_62_63_F7 org.rockwork.Pebble.LaunchApp string:"1f03293d-47af-4f28-b960-f2b02a6dd757"
method return time=1510146575.366152 sender=:1.1106 -> destination=:1.1331 serial=354 reply_serial=2
 
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#646
Sorry to drive you further towards madness, but that command launches the media app for me (with my watch address instead of yours of course).
 

The Following 3 Users Say Thank You to abranson For This Useful Post:
Posts: 58 | Thanked: 223 times | Joined on Apr 2017 @ Germany
#647
Somehow the watch disconnected in Rockpool. I restarted the service and now it works. Strange that some commands where working.

So cool: I can now start the sport and golf system apps. Now I have to find a way to send data to this apps.

Last edited by jdrescher; 2017-11-08 at 13:31.
 

The Following 2 Users Say Thank You to jdrescher For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#648
That's going to need a new method adding to Rockpool. I had a chat with ruff about it, and it seemed to be a good idea to expose the same methods as the Pebble app Javascript API to DBus so that native apps can use them. Sorry I haven't got any further with it yet, I know it's been ages.

Edit: His idea was to create a /org/rockpool/api/apps/<uuid>/ path for each app that can be interacted with. I think it was a good one!
 

The Following User Says Thank You to abranson For This Useful Post:
Posts: 58 | Thanked: 223 times | Joined on Apr 2017 @ Germany
#649
That sounds interesting.
I have looked a little bit into your code because I need a DBus call for closing an app.
I feel like I am able to do that, especially because in the appmsgmanager the closeApp method is already there.
So I will add that to the DBus interface and make a pull request then. I hope this is OK for you.
 

The Following 2 Users Say Thank You to jdrescher For This Useful Post:
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#650
Hello,

I have Sailfish X now and am trying to get my Pebble working. I'm trying to use a watch face with weather, but when I open the settings for the watch face, I cannot make the keyboard come up to type in the location field. (Works fine on the Jolla, Nexus 5 and OPX though.) Any ideas what might be causing this?
 

The Following 4 Users Say Thank You to taixzo For This Useful Post:
Reply

Tags
pebble, smartwatch

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:09.