Notices


Reply
Thread Tools
Posts: 153 | Thanked: 159 times | Joined on Nov 2009
#161
I did not notice the music controls problem, but i noticed that there is an "accept call" button now if someone is calling you.

I will try to add support for this aswell.
 

The Following User Says Thank You to smurfy For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#162
Just FYI - I just broke the screen of my Jolla Phone. :-(
So, new releases "delays" may be expected...
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following 3 Users Say Thank You to smoku For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#163
I've been working on "PebbleKit JS" support (using QJSEngine). My code is currently on on a branch here: https://github.com/javispedro/pebble/tree/js-testing. I'm still doing large(ish) changes. At some point I hope to clean it up and create pull requests to Smoku.

The above is nowhere user ready, so don't use it unless you're planning to help. You need to drop the unzipped .pbw in a subdirectory of ~/.local/share/pebbled/apps. To show the config interface, run 'qdbus org.pebbled /org/pebbled test' once both the daemon and the UI are up and the watch is running the app you want to configure. Yes, the daemon currently callbacks into the UI but this is subject to change. This is just an experiment. It probably leaks memory like crazy.

So far I've got Twebble to run. Among other things this means I can make its web login interface to show up, and to read my timeline from my watch. However I've implemented only the minimal API required to get Twebble to run, so probably nothing else works. Up next are geolocation and other stuff.

EDIT (12-03): Weather already works too and the UI for configuration is now working (you can configure the currently running app, but cannot install new ones).

EDIT (12-06): Evernote and Yelp now work, including geolocation.

EDIT (12-08): See new post below with updated information.

Last edited by javispedro; 2014-12-08 at 00:19.
 

The Following 11 Users Say Thank You to javispedro For This Useful Post:
Posts: 189 | Thanked: 143 times | Joined on Nov 2009
#164
Nice to see someone is working on this.
 
Posts: 55 | Thanked: 34 times | Joined on Jun 2014
#165
Originally Posted by MaemoUser View Post
Nice to see someone is working on this.
Yeah, just bought Pebble too. Weather and Twitter would be nice to have.
 
Posts: 189 | Thanked: 143 times | Joined on Nov 2009
#166
I would love if the XBMC Remote works with this .
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#167
Originally Posted by MaemoUser View Post
I would love if the XBMC Remote works with this .
Just tried and it seems to work. Unsurprising as it's quite a simple JS program!

Some additional updates because the instructions I posted above are now totally useless. There's now a UI to configure applications, but still no UI to install / uninstall them.

Firstly, you need to unzip the contents of the .pbw files you want to use in a subdirectory in $HOME/.local/share/pebble/apps/ . So that the final structure looks like this:
Code:
$ find .local/share/pebble/apps/
.local/share/pebble/apps/
.local/share/pebble/apps/Slides
.local/share/pebble/apps/Slides/appinfo.json
.local/share/pebble/apps/Slides/app_resources.pbpack
.local/share/pebble/apps/Slides/manifest.json
.local/share/pebble/apps/Slides/pebble-app.bin
.local/share/pebble/apps/Slides/pebble-js-app.js
.local/share/pebble/apps/Twebble
.local/share/pebble/apps/Twebble/appinfo.json
.local/share/pebble/apps/Twebble/pebble-app.bin
.local/share/pebble/apps/Twebble/pebble-js-app.js
.local/share/pebble/apps/Twebble/app_resources.pbpack
.local/share/pebble/apps/Twebble/manifest.json
The daemon should automatically pick up any changes without requiring a restart. Once this is done, if you open the corresponding application on the watch, the daemon will automatically start executing the Javascript parts. Please note that this will allow watch applications to obtain your current location and access the Internet; take appropiate care.


In order to configure a JS application, you firstly need to install it in both the watch and .local/share/pebble/apps, following the instructions above. Then, open the application in the watch. In the Pebble Jolla app, click on the "Pebble XXXX" button at the top (where XXXX is your connected Pebble's id). This should take you to a page where you can ping the watch, set the time, or "Configure the current app". Once you hit this button you will be redirected to a webpage depending on whatever application you're currently using. E.g. the Twitter login page for Twebble. Just complete the process and you will be taken back to the Pebble app. Configuration is done!


There's also support to upload/unload applications to/from the Pebble, but no UI for it yet. You still need to unpack the .pbw in ~/.local/share/pebble/apps to "install" it on the phone; this only allows you to upload the application to the watch.
Code:
qdbus org.pebbled /org/pebbled/Watch org.pebbled.Watch.AppSlots
Gets information about the current applications on the watch. There are 8 slots available on the Pebble, so you should get 8 "application UUIDs", or an empty string to indicate an available slot.


Code:
qdbus org.pebbled /org/pebbled/Watch org.pebbled.Watch.UploadApp 57e42595-c333-44fc-afa0-df4539c1f934 0
This will upload the application with UUID 57e42595-c333-44fc-afa0-df4539c1f934 to slot 0 on the watch.


Code:
qdbus org.pebbled /org/pebbled/Watch org.pebbled.Watch.UnloadApp 0
This will unload (remove) whatever application is on slot 0.


You can obtain an application UUID from its .pbw file, by looking inside the appinfo.json text file.

Last edited by javispedro; 2014-12-08 at 00:22.
 

The Following 5 Users Say Thank You to javispedro For This Useful Post:
Posts: 193 | Thanked: 348 times | Joined on Dec 2009
#168
This is very exciting progress!
 
Posts: 189 | Thanked: 143 times | Joined on Nov 2009
#169
Nice awesome work . And thank you for checking XBMC remote.

@javispedro is it possible to provide an rpm of the latest version? So I can try some things and help you?

I tried to built js-testing which was successful but the options do not show in the UI.

Now it's working . Qt Creator was borked .

Ok, I see in your branch the hotfixes for segfaults are missing. That's why the daemon does not work for me .

Last edited by HtheB; 2014-12-08 at 13:44.
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#170
Originally Posted by MaemoUser View Post
Ok, I see in your branch the hotfixes for segfaults are missing. That's why the daemon does not work for me .
Hm... Which hotfixes?
 
Reply

Tags
pebble, pebble time, pebbled


 
Forum Jump


All times are GMT. The time now is 07:59.