pebble / pebblekit

Pebble's app development toolkit for the Pebble smartwatch, Android and iOS
199 stars 13 forks source link

javascript datalogging #57

Open konsumer opened 10 years ago

konsumer commented 10 years ago

I am working on a watchface that records accelerometer data. It would be super-cool if I could use just javascript (no native app) to datalog, and sync to a remote server. I am playing with PouchDB (#55) which has other issues, but might be ideal. If the DataLogging API is more efficient & fault tolerant, than I would much prefer it to AppMessages.

I might recommend code that looks like this, on the javascript side:

Pebble.addEventListener("datalog", function(e) {
    // do something with e.data, which is an array of new ints
});

Since the official Pebble app is not open-source, I am unsure of how I can contribute this functionality, but I would love using it!

sarfata commented 10 years ago

Thanks for this suggestion. We heard this a few times and will probably end up implementing that in the future. No timeframe yet though.

konsumer commented 10 years ago

Sweet. no hurry, just logging my interest.