-
I am still waiting for my watch to be delivered and I am already looking at the docs to understand the programming model!
As far as I understand it, the "apps" one can develop, are pieces of JS code that run when the user taps on their icon. Now, suppose I want to have some background data collection even when the user is outside of my app, how can I allow that? For example, say I would like to log each single step event on a file.
1) are events, like the step event, handled even if the app has been killed?
2) what about timers? will they be kept running?
3) how can I auto-start my app?
4) would customising the boot app work for my case?thanks and congratulations for the great product and idea, I'm a big fan.
-
Hi, I am also looking at hacking the DS-D6, well, actually the Lenovo HX03W. I am a bit disappointed that the accelerometer does not include step counting out of the box!
As for the algorithm I can point at this research we made some time ago exactly with the idea of having an open and validated step counting algorithm. The only problem is that the implementation is either in python or Java, not in C.
If anyone has some time, you could port it to C, the algorithm is quite simple and does not require any strange dependency.
Thanks for the answer!
So, as far as I understand it, the options for this case would be:
a) customise the boot app
b) build a widget
c) customise a clock app
I didn't realise the widget thing! So I understand that, once installed, a widget is auto-restarted, runs all the time, and will react to events and timers even if the watch is idle.
The pedometer widget is actually the perfect starting point for my case.