![]() |
Re: [Announce] Pebble Watch Connector daemon 0.2
Quote:
Code:
$ systemctl --user list-units |
Re: [Announce] Pebble Watch Connector daemon 0.2
Schturman made a script to run Pebbled on your homescreen.
https://openrepos.net/sites/default/...con-icon_0.png https://openrepos.net/content/htheb/pebble-toggle |
Re: [Announce] Pebble Watch Connector daemon 0.2
@smoku
Nice start and it looks more integrated than SkippingStones. I'm currently using SkippingStones and already contributed a Watchface weather support. Is your app opensource as-well? Main thing i don't like with SkippingStones is that there is no deamon. I think a big part is supporting custom WatchApp/Face handlers on the phone side. Not sure if it is possible to support the JS api on the phone side or if there is need to reimplement the handlers ourselfs. |
Re: [Announce] Pebble Watch Connector daemon 0.2
Quote:
You will find the source on my GitHub: https://github.com/smokku/pebble Quote:
Quote:
|
Re: [Announce] Pebble Watch Connector daemon 0.2
Cool, i will take a look at your source and probably do some pull requests too :)
disclaimer: i'm new to pebble and never used pebble with android or iphone, except using a friends android to update my firmware and install some apps As far as i understand the pebble sdk, until pebble sdk 2 you needed a companion app on your phone to communicate with the outside world and the pebble. With sdk2 they added a JS api Which runs inside the offical pebble phone app and allows you to write your "companion" apps in js, with simple settings and outside world communication Maybe at some point we could emulate this JS engine to support some of the watchapps/faces nativ |
Re: [Announce] Pebble Watch Connector daemon 0.2
Quote:
I just installed Pebble app on my netbook running android-x86, to have a look how the original works, as I do not own an Android phone any more. (Yay!) Quote:
Quote:
I have a lot of experience with Qt WebKit bridge and Qt Script engine looks similar. :) |
Re: [Announce] Pebble Watch Connector daemon 0.2
I did a quick look at the "modern" watchface i'm using and which uses the JS api it's look quite easy.
Basically its an JS engine which supports common javascript including "XMLHttpRequest", window.navigator.geolocation.getCurrentPosition and a new Object called "Pebble" The Pebble object supports different methods, like sendAppMessage or openURL, there are also some events fired to be listened. openURL method for example opens the given url in a browser (QWebkit?) and the external website then can GET a special protocol url in the browser window with json data which then in return can be accessed in the JS coded via an eventlistener on the "webviewclosed" event. |
Re: [Announce] Pebble Watch Connector daemon 0.2
Quote:
I'm not OK with embedding full-blown browser in a daemon. ;) |
Re: [Announce] Pebble Watch Connector daemon 0.2
do you have any video how it works ?
|
Re: [Announce] Pebble Watch Connector daemon 0.2
Tried it, but it shows wrong name when I tested to call from another phone.
|
All times are GMT. The time now is 04:56. |
vBulletin® Version 3.8.8