Notices


Reply
Thread Tools
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#251
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
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 
Posts: 31 | Thanked: 9 times | Joined on Jan 2015
#252
Originally Posted by smoku View Post
I checked the daemon log:

[D] JSKitXMLHttpRequest::JSKitXMLHttpRequest:243 - constructed
[D] JSKitXMLHttpRequest:pen: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.
 
Posts: 479 | Thanked: 1,284 times | Joined on Jan 2012 @ Enschede, The Netherlands
#253
Originally Posted by j4mppa View Post
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?
 
Posts: 31 | Thanked: 9 times | Joined on Jan 2015
#254
Originally Posted by HtheB View Post
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.
 

The Following 2 Users Say Thank You to j4mppa For This Useful Post:
Posts: 479 | Thanked: 1,284 times | Joined on Jan 2012 @ Enschede, The Netherlands
#255
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.
 

The Following User Says Thank You to Fuzzillogic For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#256
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.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following 4 Users Say Thank You to smoku For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Jan 2015
#257
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's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#258
Originally Posted by Howc View Post
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.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N

Last edited by smoku; 2015-01-15 at 00:08.
 

The Following User Says Thank You to smoku For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#259
Originally Posted by smoku View Post
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

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
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.

Last edited by HtheB; 2015-01-15 at 09:59.
 
Posts: 479 | Thanked: 1,284 times | Joined on Jan 2012 @ Enschede, The Netherlands
#260
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.
 
Reply

Tags
pebble, pebble time, pebbled

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:55.