pcolby / bipolar

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

Temperature in HRM files (swimming) #85

Open remifreiwald opened 6 years ago

remifreiwald commented 6 years ago

Hey, it's me again! Hope you had a good start into the new year! :)

My colleague asked about temperature in HRM files. We looked into it and it seems that the HRM format shows temperature only for laps: https://www.polar.com/files/Polar_HRM_file%20format.pdf (pages 8 and 9)

I opened the data with swimming laps from issue #75 and the corresponding value showed 0.

Could you have a look at it and tell us, if it's feasible to implement temperature for laps?

The test data (both exercises) from issue #75 should contain temperature values around 31 degrees Celsius.

pcolby commented 6 years ago

Hmm... interesting.

The first problem is that the [IntTimes] section is for per-lap statistics, so, for example, one temperature for an entire lap (which seems a bit pointless to me, but anyway...), and the data from #75 has no laps.

But even then, looking at some of the older test data, it seems that even for sessions with laps, the temperature is still 0... not sure if that's a problem with the data or the code yet.

Will dig further.

Thanks :)

remifreiwald commented 6 years ago

I agree, that an average temperature for a lap is in many cases (different sports) kind of pointless. But during Pool Swimming the temperature stays mostly the same and many pools have a regulated temperature. During my swimming sessions it only varied 0.1 degrees Celsius.

Ticket #75 must contain two sessions. One without laps and one including 3 laps. You requested laps, back then. :)