09-20-2018 09:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-20-2018 09:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

09-20-2018 09:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


09-20-2018 09:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yep, you can persist the data using the filesystem api.
I'd recommend CBOR format. https://dev.fitbit.com/build/guides/file-system/

09-21-2018 07:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-21-2018 07:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

