maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Announce] Pebble Watch Connector daemon (https://talk.maemo.org/showthread.php?t=93399)

Fuzzillogic 2015-01-11 22:24

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Excuse me for my ignorance. Just tried to install a simple SDKv1 (as I'm still on old firmware :() watch face using PWC, this one to be exact. It seems as if PWC does indeed pick up the file type, and the file at least is copied to ~/.local/share/pebble/apps, but when I try to install it, there's no app to be selected under "Install app"; the list is empty..

What am I missing?

[edit] Hmm, grabbing a SDKv2 app does show up in the list, but trying to install it yields an endless spinner on the selected slot. I'll try to update the firmware tomorrow at work, Android-galore over there anyway.

HtheB 2015-01-11 23:34

Re: [Announce] Pebble Watch Connector daemon 0.14
 
I've managed to get the official Pebble Store partially to work on my Jolla. It can download the apps from the store now.
Will there be a support for auto detecting downloaded apps? Maybe a simple 'check' in the folder of /data/data/com.getpebble.android/app_jskit_installed_apps/ ?

Would be great to just use the official client to download apps, so that our sailfish pebble client can pick this up :)

j4mppa 2015-01-12 17:11

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Would it be possible to add some kind of compilation of apps that people have managed to get working with newest js. branch here. Maybe just a simple list and pbw. files possibly.
And some day even companion apps etc...

Would be nice to see what apps people are using

smoku 2015-01-12 18:23

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by Fuzzillogic (Post 1456277)
Excuse me for my ignorance. Just tried to install a simple SDKv1 (as I'm still on old firmware :() watch face using PWC, this one to be exact. It seems as if PWC does indeed pick up the file type, and the file at least is copied to ~/.local/share/pebble/apps, but when I try to install it, there's no app to be selected under "Install app"; the list is empty..

Soo... I noticed yesterday, that not all apps I copied to pebble show up on the list, but did not have time to look into it yet. So you've probably just nailed it - theese could be SDKv1 apps. Looks like a bug - we did all the testing with SDKv2 apps, as the focus was on getting JS companion apps working.

smoku 2015-01-12 18:25

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by HtheB (Post 1456281)
Will there be a support for auto detecting downloaded apps? Maybe a simple 'check' in the folder of /data/data/com.getpebble.android/app_jskit_installed_apps/ ?

Would be great to just use the official client to download apps, so that our sailfish pebble client can pick this up :)

That's a very good idea and very easy to do.
Please submit a feature-request on GitHub, so I won't forget. ;-)

smoku 2015-01-12 18:40

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by HtheB (Post 1456281)
I've managed to get the official Pebble Store partially to work on my Jolla. It can download the apps from the store now.

How exactly did you install it? Google Play Store does not allow it as it says my Jolla is not supported.

Fuzzillogic 2015-01-12 20:50

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by smoku (Post 1456338)
Soo... I noticed yesterday, that not all apps I copied to pebble show up on the list, but did not have time to look into it yet. So you've probably just nailed it - theese could be SDKv1 apps. Looks like a bug - we did all the testing with SDKv2 apps, as the focus was on getting JS companion apps working.

Well... I updated the Pebble to v2.8.1 today using an Android device, and waddayouknow, the apps I tried to install earlier were already present and functional on the watch. Weird, because they didn't show up yesterday. PWC also lists them correctly.

So there might still be a bug, but having up-to-date firmware seems to help too :)

HtheB 2015-01-12 21:01

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by smoku (Post 1456339)
That's a very good idea and very easy to do.
Please submit a feature-request on GitHub, so I won't forget. ;-)

why not hitting the "Thanks!" button? :p

Quote:

Originally Posted by smoku (Post 1456341)
How exactly did you install it? Google Play Store does not allow it as it says my Jolla is not supported.

I installed the app on a real Android device, then connected my Pebble with the phone. After that, I copied /data/data/com.getpebble.android to Jolla phone (same dir).
But be sure to exclude /data/data/com/getpebble.android/database
Otherwise it wouldn't let me pass the "connecting" part.

After that, I could just use the app without needing to connect pebble watch. I can browse and download any watchface/watchapp.

smoku 2015-01-12 21:45

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by HtheB (Post 1456351)
After that, I could just use the app without needing to connect pebble watch. I can browse and download any watchface/watchapp.

Try this build please: https://copy.com/f9ygCvwldX3V2cRx

smoku 2015-01-12 21:58

Re: [Announce] Pebble Watch Connector daemon 0.13
 
Quote:

Originally Posted by j4mppa (Post 1455579)
This is the Weather app I was using Weather

I checked the daemon log:

[D] JSKitXMLHttpRequest::JSKitXMLHttpRequest:243 - constructed
[D] JSKitXMLHttpRequest::open:266 - opened to URL "http://api.flickr.com/services/rest/?method=flickr.places.findByLatLon&api_key=f1a5294 6c4d821f45252831aa6f93646&lat=122.3524&lon=122.892 1&accuracy=11&format=json&nojsoncallback=1"
[D] JSKitXMLHttpRequest::send:320 - sending "GET" to QUrl( "http://api.flickr.com/services/rest/?method=flickr.places.findByLatLon&api_key=f1a5294 6c4d821f45252831aa6f93646&lat=11.3524&lon=11.8921& accuracy=11&format=json&nojsoncallback=1" ) with ""
[D] JSKitXMLHttpRequest::handleReplyError:489 - reply error 202
[D] JSKitXMLHttpRequest::handleReplyError:496 - going to call onerror handler: "function() { [code] }"
[D] JSKitConsole::log:177 - "Error: Failed to connect!"
[D] JSKitXMLHttpRequest::handleReplyFinished:463 - reply finished, reply text: "{"stat":"fail","code":95,"message":"SSL is required"}"
[D] JSKitXMLHttpRequest::handleReplyFinished:472 - going to call onload handler: "function() { [code] }"
[D] JSKitConsole::log:177 - "Error"

So it looks like flickr started requiring httpS for its API and the app needs updating.
When I did the request over https in my browser I got the locality info correctly.

HtheB 2015-01-12 23:01

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Where does the official Pebble store the pbw files when I download a watchapp?

It must be caching it somewhere since you can always load it on your pebble when there is no internet connection.

Would be great if we can add this location too

j4mppa 2015-01-13 09:31

Re: [Announce] Pebble Watch Connector daemon 0.13
 
Quote:

Originally Posted by smoku (Post 1456356)
I checked the daemon log:

[D] JSKitXMLHttpRequest::JSKitXMLHttpRequest:243 - constructed
[D] JSKitXMLHttpRequest::open:266 - opened to URL "http://api.flickr.com/services/rest/?method=flickr.places.findByLatLon&api_key=f1a5294 6c4d821f45252831aa6f93646&lat=122.3524&lon=122.892 1&accuracy=11&format=json&nojsoncallback=1"
[D] JSKitXMLHttpRequest::send:320 - sending "GET" to QUrl( "http://api.flickr.com/services/rest/?method=flickr.places.findByLatLon&api_key=f1a5294 6c4d821f45252831aa6f93646&lat=11.3524&lon=11.8921& accuracy=11&format=json&nojsoncallback=1" ) with ""
[D] JSKitXMLHttpRequest::handleReplyError:489 - reply error 202
[D] JSKitXMLHttpRequest::handleReplyError:496 - going to call onerror handler: "function() { [code] }"
[D] JSKitConsole::log:177 - "Error: Failed to connect!"
[D] JSKitXMLHttpRequest::handleReplyFinished:463 - reply finished, reply text: "{"stat":"fail","code":95,"message":"SSL is required"}"
[D] JSKitXMLHttpRequest::handleReplyFinished:472 - going to call onload handler: "function() { [code] }"
[D] JSKitConsole::log:177 - "Error"

So it looks like flickr started requiring httpS for its API and the app needs updating.
When I did the request over https in my browser I got the locality info correctly.

I see,thanks for troubleshooting:)

I also have android pebble app installed from google play on my jolla. I had to use apk downloader to get it since play store doesn't approve jolla. However when I run the app I get error message straight away saying bluetooth error so I cannot connect the watch. App itself works. In TJC there is couple posts about bt problems with android apps.

Fuzzillogic 2015-01-13 10:15

Re: [Announce] Pebble Watch Connector daemon 0.13
 
Quote:

Originally Posted by j4mppa (Post 1456386)
I also have android pebble app installed from google play on my jolla. I had to use apk downloader to get it since play store doesn't approve jolla. However when I run the app I get error message straight away saying bluetooth error so I cannot connect the watch. App itself works. In TJC there is couple posts about bt problems with android apps.

See HtheB's post. Now that we know it's possible, would it be possible to patch/hack the Android's client database and convince it there already is a paired (but disconnected, obviously) Pebble available?

j4mppa 2015-01-14 09:48

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Quote:

Originally Posted by HtheB (Post 1456281)
I've managed to get the official Pebble Store partially to work on my Jolla. It can download the apps from the store now.
Will there be a support for auto detecting downloaded apps? Maybe a simple 'check' in the folder of /data/data/com.getpebble.android/app_jskit_installed_apps/ ?

Would be great to just use the official client to download apps, so that our sailfish pebble client can pick this up :)

Yesterday I was also able to get the official pebble store running on my jolla. Its just a workaround and only partially working but you will see your app bank etc and download new apps. Connection still not working of course and I have no idea where the android apps stores the pbw files just like HtheB earlier said. By using this way you do not need actual Android device.

1. first I installed official android app from google play store and logged in with my credentials. Then you will get stuck with trying to find connected pebble. close the app

2. install for example Glance app from google play store.

3. install glance.pbw to your pebble with native sailfish app.

4. run android glance app. this will give you all kinds of errors first, but it offers you to update the app. press that one and this will take you straight to official android pebble app. Now you are able to scroll and install/search new apps/faces etc. But as said before no upload working to pebble due to bt restrictions.


I dunno if this helps anything or not. But just wanted to inform about this.

Fuzzillogic 2015-01-14 20:16

Re: [Announce] Pebble Watch Connector daemon 0.14
 
Thanks j4mppa. You don't need to install the glance-app on the pebble. They can't communicate anyway. Just "update" the watch app from the Android Glance client, this will indeed trigger the official Pebble app to open. Leaves me wondering if this is triggered by an Intent. If so, it might be triggered from within PWC. (Can you trigger intents from native to Alien Dalvik?)

Using the official Android app, you can browse the app store and put files in your locker. It seems as if the files itself are not downloaded. BUT... The app uses a SQLite database, stored in /data/data/com.getpebble.android/databases/pebble.db. That database contains a table "locker_data". That table has a column "pbw_file". And that column contains the download location for the app :) Or, directly from the command line:

Code:

[root@Jolla nemo]# sqlite3 /data/data/com.getpebble.android/databases/pebble.db -cmd 'SELECT title, pbw_file FROM locker_data'
Compass|https://www.filepicker.io/api/file/Ijc5xXTORgiM4faUZOU6

It would be quite trivial to access the database from a native app, were it not that user Nemo has no access to this location... The command above must be run as root. I don't know if and how privileged apps can have access.

smoku 2015-01-14 22:27

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Just released 0.15 with preliminary support for Pebble Appstore.
Send all Kudos to smurfy, as he did all the digging and coding necessary to make it fly. :)

Howc 2015-01-14 23:40

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Hi

Im trying to load Pebbled on to my Jolla but Ive not had any previous experience of building and deploying apps. Is there any chance you could provide an set of instructions of what i need to do with the files on Github? Do I need to take all the files and build then in the sdk or is the rpm ready to deply? How do I deploy the rpm on the Jolla?

I have tried to install the SDK on Win7 but that resulted in lots of errors and a failed install so I have yet to actually try to build anything I think I will try a linux install tomorrow, perhaps it will all make sense when I get to build something?

My Pebble is upto date and running on Android but it would be good to have it on the Jolla too.

Thanks for your help and efforts with this app.

smoku 2015-01-14 23:58

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by Howc (Post 1456639)
Im trying to load Pebbled on to my Jolla but Ive not had any previous experience of building and deploying apps.

If you just want to run the app, go to https://openrepos.net/content/basil/...use-sailfishos on the phone and install Warehouse client (tap the rpm).

Then in Warehouse client search for pebble, enable repo and install.
It will pull all the dependencies and you can use Warehouse to upgrade pebble application later.

HtheB 2015-01-15 09:32

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by smoku (Post 1456631)
Just released 0.15 with preliminary support for Pebble Appstore.
Send all Kudos to smurfy, as he did all the digging and coding necessary to make it fly. :)

AWESOME!
Now it only needs a search function :p

Edit: Does Pebbled has support for internet connection?
I downloaded a news app ("Tweakers.net", it should be in the second page of the most recent 'Daily' apps by the time I write this post)
I couldn't configure it. It also gives me a connection error

Fuzzillogic 2015-01-15 11:40

Re: [Announce] Pebble Watch Connector daemon 0.15
 
I've noticed that a broken bluetooth connection (e.g. device out of range) doesn't get reestablished when the mobile is in sleep-mode. Perhaps it is the same issue as with WLAN-connections. When waking the phone, e.g. double tap the screen or even hovering your hand over the device (I've LPS enabled) the Pebble immediately reconnects. I'm not sure it's because of this, but I've missed two calls so far.

Also, it seems as if the devices don't reconnect when flight mode on Jolla is disabled. I had to manually enable the connection again in PWC.

smoku 2015-01-15 15:18

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Please report the issues via GitHub. I have a memory timespan of a goldfish and reports here could be "lost".

billranton 2015-01-15 20:59

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Got a pebble for Christmas, and I'm really appreciating this work. Now the appstore is functional, the only thing I need my Android tablet for is firmware upgrade.

Thanks!

Howc 2015-01-15 21:27

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by smoku (Post 1456642)
If you just want to run the app, go to https://openrepos.net/content/basil/...use-sailfishos on the phone and install Warehouse client (tap the rpm).

Thankyou so much Smoku. The software installed and updated successfully, I have yet to actually connect my pebble but I will try that later when I get a chance. Thanks for your help and for your time in developing the app.

j4mppa 2015-01-15 22:25

Re: [Announce] Pebble Watch Connector daemon 0.15
 
pebble music controls now seems to work with newest version of cutespotify. just tested. .96 version...

cartron 2015-01-15 22:31

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by j4mppa (Post 1456808)
pebble music controls now seems to work with newest version of cutespotify. just tested. .96 version...

where did you get this version of Cutespotify?
Mine does not work with Pebble's music controls (running Cutespotify 1.5.1-3)

HtheB 2015-01-15 23:35

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by cartron (Post 1456809)
where did you get this version of Cutespotify?
Mine does not work with Pebble's music controls (running Cutespotify 1.5.1-3)

http://talk.maemo.org/showthread.php...04#post1456804

cartron 2015-01-16 19:30

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by HtheB (Post 1456817)

Awesomeness! Just downloaded and installed this version of Cutespotify, works like a charm with Pebble =)

dirkvl 2015-01-16 20:22

Re: [Announce] Pebble Watch Connector daemon 0.15
 
good work! bit stuck here though...

https://dl.dropbox.com/s/h9h5d4rmqbjic25/pebble.jpg

Fuzzillogic 2015-01-16 21:16

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by dirkvl (Post 1456954)
good work! bit stuck here though...

https://dl.dropbox.com/s/h9h5d4rmqbjic25/pebble.jpg

I had similar result. But after I updated the watch' firmware from v1.14 to the (current) v2.8.1, things improved significantly. So, check your firmware :) I used an Android device for updating.

dirkvl 2015-01-16 21:34

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by Fuzzillogic (Post 1456963)
I had similar result. But after I updated the watch' firmware from v1.14 to the (current) v2.8.1, things improved significantly. So, check your firmware :)

A thanks, yes running 1.14...

Quote:

Originally Posted by Fuzzillogic (Post 1456963)
I used an Android device for updating.

official pebble android app does not install on jolla
https://dl.dropbox.com/s/bgzomeo96wz76th/Nooooo.jpg

HtheB 2015-01-16 22:00

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by dirkvl (Post 1456965)
official pebble android app does not install on jolla
https://dl.dropbox.com/s/bgzomeo96wz76th/Nooooo.jpg

it does, but you can't do a lot with it... :)

dirkvl 2015-01-16 22:08

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by HtheB (Post 1456968)
it does, but you can't do a lot with it... :)

google play store gives not android version not compatible, shady apk download works but indeed not usable..

Fuzzillogic 2015-01-16 22:20

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Would it be possible to extent the PebbleKit JS implementation with some Sailfish-oriented features? I saw this, which to my Qt-n00b-eye looks like a way to give Pebble apps access to e.g. d-bus, or PIM-databases.

Dreaming further, QQmlEngine inherits the QJSEngine. So... QML and QtQuick/Silica instead of plain JS? :)

smoku 2015-01-16 22:39

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by Fuzzillogic (Post 1456973)
Would it be possible to extent the PebbleKit JS implementation with some Sailfish-oriented features?

http://talk.maemo.org/showpost.php?p...&postcount=222

GewoonRick 2015-01-17 16:04

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Hey

First I would like to say that it is really great that you have created a solution to get the Pebble work on Jolla.
I'm thinking about buying a Pebble Watch, but I would like to know some things.

Does the fitness functionality of the Pebble work with my Jolla?
Does the music player control work?
Does notifications from Android apps work? (because in the notification menu on my Jolla, I get also notifications from the Android WhatsApp)

Thanks!

GewoonRick

dirkvl 2015-01-17 18:53

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by Fuzzillogic (Post 1456963)
I had similar result. But after I updated the watch' firmware from v1.14 to the (current) v2.8.1, things improved significantly. So, check your firmware :) I used an Android device for updating.

yes! upgraded to 2.8.1 with my moms fruityphone.

can now download and install watchfaces from the store, but not install watchapps (no issue/priority for me), but installing custom pwb's does not work for me. anyone had succes with that?

smoku 2015-01-17 22:00

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by dirkvl (Post 1457058)
but installing custom pwb's does not work for me. anyone had succes with that?

It would be really helpful if you could give links to the apps that not work, so we have something more to debug than sumtin' no work. ;-)

dirkvl 2015-01-17 22:29

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by smoku (Post 1457065)
It would be really helpful if you could give links to the apps that not work, so we have something more to debug than sumtin' no work. ;-)

ah yes, sorry..

this one

HtheB 2015-01-17 22:58

Re: [Announce] Pebble Watch Connector daemon 0.15
 
I couldn't install "Morpheus" (can be found at the most favorited apps)
I'm sure everyone knows that app :p

billranton 2015-01-17 23:05

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by GewoonRick (Post 1457045)
Does the music player control work?

Jolla music player yes. I also have Daedalus installed, but that doesn't work.

Quote:

Originally Posted by GewoonRick (Post 1457045)
Does notifications from Android apps work? (because in the notification menu on my Jolla, I get also notifications from the Android WhatsApp)

All notifications are passed through, including Android ones.


All times are GMT. The time now is 16:02.

vBulletin® Version 3.8.8