View Single Post
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: