Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

local storage

Hi

I have made a clockface with barometric data showing a graph with 12 bars.

every 30min a pressure reading is pushed into an array, and the last 12 values (6 hour trend)

in the array is used to draw the graph.

 

Any ideas how i can store the last 12 readings in a flat file, in case the clockface restarts and my array

is nullified?

 

br,

 

Chris

Best Answer
0 Votes
2 REPLIES 2

Yep, you can persist the data using the filesystem api.

I'd recommend CBOR format. https://dev.fitbit.com/build/guides/file-system/

Best Answer
0 Votes

Hi Jon

 

Thx for your reply.

 

I bumped into another issue, i thought the clockface app runs in the background

when you switch to another app, it does not 😞 that makes the barometric pressure sensor useless if i also want to use my versa for other things.

 

Chris

Best Answer
0 Votes