progweb / gpx2video

Creating video with telemetry overlay from GPX data
GNU General Public License v3.0
186 stars 10 forks source link

[FEATURE] Add power widget #36

Closed fpokryvk closed 4 weeks ago

fpokryvk commented 3 months ago

I have recently bought powermeter for my bike, it would be nice to display power data in video. Example of GPX point produced by strava:

   <trkpt lat="XX.XXXXXXX" lon="YY.YYYYYYY">
    <ele>444.0</ele>
    <time>2024-07-28T16:04:49Z</time>
    <extensions>
     <power>138</power>
     <gpxtpx:TrackPointExtension>
      <gpxtpx:atemp>27</gpxtpx:atemp>
      <gpxtpx:hr>102</gpxtpx:hr>
      <gpxtpx:cad>49</gpxtpx:cad>
     </gpxtpx:TrackPointExtension>
    </extensions>
   </trkpt>

Thanks!

fpokryvk commented 3 months ago

I have noticed, it also breaks reading of cadence and temperature... it probably expects power to be in gpxtpx format, not sure why strava (or maybe garmin?) produces this...

progweb commented 4 weeks ago

Power widget is now added.

It shouldn't break other extensions as temperature, cadence and heartrate.