maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Announce] Rockpool - Pebble daemon for Sailfish (https://talk.maemo.org/showthread.php?t=96490)

Bundyo 2017-10-15 21:18

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
Yep, I was also trying to pair the LE device at first. The other works though. :)

P@t 2017-10-16 05:45

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
thanks indeed I was trying to pair the LE device... and had to wait for a while!

jdrescher 2017-11-08 12:56

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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?

abranson 2017-11-08 13:06

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
Quote:

Originally Posted by jdrescher (Post 1538302)
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.

jdrescher 2017-11-08 13:11

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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


abranson 2017-11-08 13:15

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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).

jdrescher 2017-11-08 13:24

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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.

abranson 2017-11-08 13:58

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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!

jdrescher 2017-11-08 14:31

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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.

taixzo 2017-11-08 14:45

Re: [Announce] Rockpool - Pebble daemon for Sailfish
 
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?


All times are GMT. The time now is 20:48.

vBulletin® Version 3.8.8