Active Topics

 



Notices


Reply
Thread Tools
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#11
Originally Posted by Alexxxl View Post
What do You mean about user-session level daemons?
Code:
$ systemctl --user list-units
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#12
Schturman made a script to run Pebbled on your homescreen.


https://openrepos.net/content/htheb/pebble-toggle
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following 2 Users Say Thank You to HtheB For This Useful Post:
Posts: 153 | Thanked: 159 times | Joined on Nov 2009
#13
@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.
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#14
Originally Posted by smurfy View Post
Is your app opensource as-well? Main thing i don't like with SkippingStones is that there is no deamon.
Yeah. This is exactly why I developped own solution.
You will find the source on my GitHub: https://github.com/smokku/pebble

Originally Posted by smurfy View Post
I think a big part is supporting custom WatchApp/Face handlers on the phone side.
I will eventually stea..^W copy that part from SkippingStones

Originally Posted by smurfy View Post
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.
JS api?
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
Posts: 153 | Thanked: 159 times | Joined on Nov 2009
#15
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
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#16
Originally Posted by smurfy View Post
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
I bought my Jolla Phone a month ago and I've been using Pebble with android phone for half a year now.
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!)


Originally Posted by smurfy View Post
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
I didn't develop for Pebble before, so thanks for all the pointers.

Maybe at some point we could emulate this JS engine to support some of the watchapps/faces nativ
Seems like a plan.
I have a lot of experience with Qt WebKit bridge and Qt Script engine looks similar.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
Posts: 153 | Thanked: 159 times | Joined on Nov 2009
#17
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.
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#18
Originally Posted by smurfy View Post
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.
I'm OK with embedding JavascriptCore in a daemon.
I'm not OK with embedding full-blown browser in a daemon.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#19
do you have any video how it works ?
 
towhatend's Avatar
Posts: 230 | Thanked: 185 times | Joined on Jul 2010 @ Sweden
#20
Tried it, but it shows wrong name when I tested to call from another phone.
__________________
Nokia N900 -> N9 -> Jolla
 
Reply

Tags
pebble, pebble time, pebbled


 
Forum Jump


All times are GMT. The time now is 18:36.