pcolby / bipolar

Free your data from Polar FlowSync
GNU General Public License v3.0
115 stars 16 forks source link

Support for activity data? #45

Closed msunela closed 6 years ago

msunela commented 9 years ago

Would it be possible to add support for parsing activity data?

pcolby commented 9 years ago

Should be possible. What would we do once parsed? Upload to some site like fitbit? analyse for our own creative purposes? ... just curious :smile:

hanakysela commented 8 years ago

Hi, I would also appreciate if it was possible to get the activity data out of Flow-in my case just to play with it. It is now possible to download a .tcx, csv and gpx from workout right from Flow, though activities stay trapped there. As well as any reasonable data from swimming (stroke style, stroke cadence).

pcolby commented 8 years ago

If you like, I should be able to create a version of the FlowSync Hook that saves the raw activity data to disk pretty easily. Then you should be able to use Google's protoc command to view the numbers... I wouldn't know what to do with them, but if it lets you play, then that's a good thing :smile: Especially if it means you do some up with some useful ways to use the data :smile:

Interested? And if so, OSX or Windows or both? (I'd do both anyway, just more a question of which to focus on first).

hanakysela commented 8 years ago

Hi, it's windows, I hope I will not be the only one interested in the activity data though. Lets see how the protoc works for me - that will be something new. On the other hand, the activity data find their way to Google Fit from the Flow so this may be another possibility to get it for later offline use. But that wouldn't have anything to do with the Bipolar project.

pcolby commented 8 years ago

I've just (theoretically) added support for recording activities data to the hook under a separate (hook-activities) branch. Builds to come soon (hopefully via CI servers, but might need some massaging).

Will update once the CI servers have had a go (which will take a while, since I'm on free open-source plans for Travis CI and AppVeyor).

Note, the data is raw... IIRC, its plain 8-bit protofuf samples - interpret them as you will (probably via the protoc command).

Cheers.

pcolby commented 8 years ago

Just FYI, the Windows version of updated hook is now available at https://ci.appveyor.com/project/pcolby/bipolar/build/hook-248/artifacts

alessandrofacchini commented 8 years ago

Hi Peter

i tested the synchronization process with the latest dll and finally we have the file under the expected folder: C:\Users\AlessandroFacchini\AppData\Local\Polar\PolarFlowSync\export\v2-users-17848353-activities.

When i run bipolar to read the data (v. 0.5.0) it says "Found no new training sessions to process" like it was only looking for training sessions.

Do I need a bipolar updated version to read activities data?

Thanks in advance

Alessandro Facchini

pcolby commented 8 years ago

Hi @alessandrofacchini,

i tested the synchronization process with the latest dll and finally we have the file under the expected folder

Great :smile:

When i run bipolar to read the data (v. 0.5.0) it says "Found no new training sessions to process" like it was only looking for training sessions.

That's exactly right. As I said further up:

If you like, I should be able to create a version of the FlowSync Hook that saves the raw activity data to disk pretty easily. Then you should be able to use Google's protoc command to view the numbers... I wouldn't know what to do with them, but if it lets you play, then that's a good thing :smile: Especially if it means you do some up with some useful ways to use the data :smile:

So the current Bipolar app does not look for the exported activities data, because if it did, it still wouldn't know what to do with it. We can't turn it into GPX / HRM / TCX files (can we?).

Feel free to play with the data files using Google's protoc command. If you can figure out what the data represents, and know of / come up with some useful format to convert it to, let us know :smile:

Cheers,

Paul.

remifreiwald commented 6 years ago

A little bit late, but just for the sake of completeness: Polar offers a new API called "Polar Open AccessLink" (https://www.polar.com/accesslink)

This API allows to retrieve training, activity and physical data from Polar Flow users.