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

Storing raw data

I am interested in storing the raw data from my Fitbit versa and storing it into a file/database that I can then access. For example, if I wear the device for 24 hours straight, I'd like to be able to open a file somehow that has the raw accelerometer/raw sensor data stored with timestamps.

Best Answer
0 Votes
3 REPLIES 3

Collecting the data is easy. Storing and transferring is harder.

 

What you need to is run the data collection in batches to save processing power for starters. I would look into what sampling rate you need. 24 hours is a long time for raw data especially sampling at 100hz.

Thats 1600 bytes per second on just the gyro or about 138mb per day. so thats about 280mb for just two sensors (which I dont know if you can do that large since the phone can't store data and I think holds it in ram?). They transfer the data via BLE which for 5mb takes me about 10 minutes. You can see how slow it is assuming no errors. Once you have the data collected on the fitbit watch you need think about transferring it. If you are using iphone you need to create a server on your computer with https certification that can handle PUT requests or http if you are on the same network. If you are using android you can host a server on your phone and use regular http. Unfortunately there is no way to simply access the data in a readable form without creating a server to transfer to first.

Best Answer
Thanks for the reply! I am working on an Android phone. I'd like to make it
as easy as possible to store the data. Even if I had 12 hours of data at a
time, that would be enough to work with at this time. Do you have any
recommendations as to where to store the data with an Android?
Best Answer
0 Votes

I am running a node.js server that I wrote. There is an android app (search for node.js in google play) that allows you to run javascript on android. Once you have the REST api functions working, you can easily save the data you get to the same directory as your node.js file which you are running. Then you connect to your computer and transfer the file.

Best Answer
0 Votes