INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Any cyclists here? Strava based question around using power data from a ride in video overlays

Any cyclists here? Strava based question around using power data from a ride in video overlays

Any cyclists here? Strava based question around using power data from a ride in video overlays

(OP)
Hi All,

It's been many years since I have been here!

So, when I ride my bike I want to be able to extract power data from the ride and overlay this data on videos I record on my GoPro. Here are the issues:

* The ride data includes power data from my power meter
* When exporting data, it is a GPX file, saple below
* As you can see from the xml in the GPX file, the power data has been stripped
* If I export a TCX file this is richer and includes power data, see below GPX file
* The problem is that I cannot use the TCX file to overlay data onto video in the Garmin VIRB video editing software as it only allows GPX files
* So, what I want is to introduce the power data into the GPX file somehow, maybe through a transformation using a different schema
* As a pointer I found this XSD file named in the TCX file that does include power data in:

https://www8.garmin.com/xmlschemas/ActivityExtensi...

So could the issue be that Garmin needs to get involved to create the new schema that allows a conversion of the <Watts> tag into <ns3:power> in a new version of GPX extension?

Do techie cyclists with Garmin action cams have the same issue as GoPro 5 people?

Thanks for your help!


GPX sample
<?xml version="1.0" encoding="UTF-8"?>
<gpx creator="StravaGPX" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.x... http://www.garmin.com/xmlschemas/TrackPointExtensi... http://www.garmin.com/xmlschemas/TrackPointExtensi..." xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtensi..." xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
<metadata>
<time>2017-06-04T07:12:18Z</time>
</metadata>
<trk>
<name>The trolls have awoken, and they are hungry...</name>
<trkseg>
<trkpt lat="51.6335750" lon="-0.3978080">
<ele>39.2</ele>
<time>2017-06-04T07:12:18Z</time>
<extensions>
<gpxtpx:TrackPointExtension>
<gpxtpx:atemp>20</gpxtpx:atemp>
<gpxtpx:hr>72</gpxtpx:hr>
<gpxtpx:cad>54</gpxtpx:cad>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>

TCX sample
<?xml version="1.0" encoding="UTF-8"?>
<TrainingCenterDatabase
xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDat... http://www.garmin.com/xmlschemas/TrainingCenterDat..."
xmlns:ns5="http://www.garmin.com/xmlschemas/ActivityGoals/v1"
xmlns:ns3="http://www.garmin.com/xmlschemas/ActivityExtension..."
xmlns:ns2="http://www.garmin.com/xmlschemas/UserProfile/v2"
xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDat..."
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://www.garmin.com/xmlschemas/ProfileExtension/...">
<Activities>
<Activity Sport="Biking">
<Id>2017-04-22T11:01:04.000Z</Id>
<Lap StartTime="2017-04-22T11:01:04.000Z">
<TotalTimeSeconds>19879.0</TotalTimeSeconds>
<DistanceMeters>68904.31</DistanceMeters>
<MaximumSpeed>15.864999771118164</MaximumSpeed>
<Calories>1414</Calories>
<AverageHeartRateBpm>
<Value>139</Value>
</AverageHeartRateBpm>
<MaximumHeartRateBpm>
<Value>183</Value>
</MaximumHeartRateBpm>
<Intensity>Active</Intensity>
<Cadence>145</Cadence>
<TriggerMethod>Manual</TriggerMethod>
<Track>
<Trackpoint>
<Time>2017-04-22T11:01:04.000Z</Time>
<Position>
<LatitudeDegrees>50.6385697145015</LatitudeDegrees>
<LongitudeDegrees>-3.470548801124096</LongitudeDegrees>
</Position>
<AltitudeMeters>25.0</AltitudeMeters>
<DistanceMeters>4.690000057220459</DistanceMeters>
<HeartRateBpm>
<Value>113</Value>
</HeartRateBpm>
<Cadence>83</Cadence>
<Extensions>
<ns3:TPX>
<ns3:Speed>4.353000164031982</ns3:Speed>
<ns3:Watts>250</ns3:Watts>
</ns3:TPX>
</Extensions>
</Trackpoint>

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close