dvmarinoff / Flux

Indoor Cycling App for Structured Training
https://flux-web.vercel.app
GNU Affero General Public License v3.0
506 stars 86 forks source link

Dual recording #96

Open dvmarinoff opened 2 years ago

dvmarinoff commented 2 years ago

Record the data of two connected sources of power.

Options:

  1. In a single .fit file with a custom developer field for the second power source
  2. In two .fit files one for each source
  3. Why stop at 2 sensors, maybe someone would like to record at ones a whole set of power meters + a trainer. That could be up to 5 different sources of power.
TClin76 commented 2 years ago

Does .fit file natively support multiple power source records?

dvmarinoff commented 2 years ago

In practice, not really, in theory, kinda.

Each record in the .fit file needs a definition record that describes what fields are in the record and in what order. The .fit SDK comes with a vast set of predefined fields and record definitions, but also allows for custom developer defined fields and records. Multiple power fields can be added to one record but most apps (like Strava), will understand only those that are in the predefined set and ignore the custom ones. So that's the trade off.

TClin76 commented 2 years ago

Understand. Thanks for the information.

mjunkmyjunk commented 2 years ago
  1. In a single .fit file with a custom developer field for the second power source

This is a good idea. But it will depend on the WEbSite if they're able to actually parse and display them. RunAnalyze? intervals.icu? Garmin Connect?

Interesting nevertheless