time4tea / gopro-dashboard-overlay

Programs to process GoPro MP4 & Generic GPX/FIT files and create video dashboards & maps
GNU General Public License v3.0
327 stars 48 forks source link

Unit conversion #153

Closed SlippyJimmy closed 8 months ago

SlippyJimmy commented 8 months ago

I want to generate a running video overlay.but the cadence units is RPM,how to convert to SPM(steps per mins)?the speed units is mph or kph,how to convert to PACE(**mins per km)?

time4tea commented 8 months ago

Hiya,

If the cadence values are correct, and its just the labelling that is wrong, you could perhaps use your own layout file?

The built-in layouts can be used as a base, to create any other layout you like.. for example, using the file: https://github.com/time4tea/gopro-dashboard-overlay/blob/main/gopro_overlay/layouts/default-1920x1080.xml

You could edit https://github.com/time4tea/gopro-dashboard-overlay/blob/main/gopro_overlay/layouts/default-1920x1080.xml#L47

to say something else?

There is some documentation on thexml layout format at: https://github.com/time4tea/gopro-dashboard-overlay/tree/main/docs/xml

For unit conversions of pace.. this is something that hasn't come up previously. I'll look to add it.

SlippyJimmy commented 8 months ago

First of all, thank you for your answer. Adding pace unit conversion is exciting for runners. See the picture below for the settings of SPM(steps per mins). I rechecked my fit file, and the value of cadence is PRM(Revolutions per mins) (as we all know,RPM is half of SPM). What should I do to double the value display?

image
time4tea commented 8 months ago

This is released in v0.107.0 - should be on PyPI shortly. Note that pace may be off by 1 spm, this will be fixed in the next release.

time4tea commented 8 months ago

You'll need to change the unit of the cadence metric to "spm"

<component type="metric" x="-140" y="36" metric="cadence" units="spm" dp="0" size="64" align="right" />