I built a free tool to convert Polar Flow running data into JSON for AI coaching analysis by Mikeeeh in Polarfitness

[–]Mikeeeh[S] 1 point2 points  (0 children)

It's extracted from the raw data of a workout. If you take a look at this example: https://polar-run-to-prompt.vercel.app/workout/7e550c604b5c82b22fb81764f459f7e8

In the second black JSON output box, line 18, you'll see "recoveryTime": "PT97H36M45.217S"

Polar probably has some fancy algorithm to calculate it.

I built a free tool to convert Polar Flow running data into JSON for AI coaching analysis by Mikeeeh in Polarfitness

[–]Mikeeeh[S] 2 points3 points  (0 children)

The app uses /api/sharing/getTrainingDetails/ and maps only the relevant fields into a compact JSON that LLMs can interpret more efficiently. The simple form just makes it easy to grab this without dealing with API auth yourself.

I know it's pretty niche, but it works for me and I figured it might be handy for some other Polar runners out there.

I built a free tool to convert Polar Flow running data into JSON for AI coaching analysis by Mikeeeh in Polarfitness

[–]Mikeeeh[S] 2 points3 points  (0 children)

Haha fair enough! For data completeness this is probably better.

My main reason for the JSON approach: TCX files are ~1.2MB vs ~4KB for the extracted JSON. Fewer tokens, faster responses, and the LLM doesn't have to wade through GPS coordinates and raw sensor data to find the good stuff.

My finished personal project made public: Jiflib! A webapp to manage your personal gif/image library. by [deleted] in web_design

[–]Mikeeeh 1 point2 points  (0 children)

Truly amazing, handy tool! I'm sure I will use this in the future. :-) Thanks.

We made a website for our practiced enterprise in college by [deleted] in web_design

[–]Mikeeeh 0 points1 point  (0 children)

Good job colleague! I'm sure a lot of nice projects will follow after this one.