Gingerbreadman
Active Member
It is frustrating when you are using HRM data to monitor your fitness (e.g. Strava fitness and freshness) and you end up with a ride with no HRM data, either because you forgot to wear your HR band or the battery went. Here is a way you can insert an average HR across the ride:
I managed to add “spoof” HR data to a Strava file by adding the average HR from one of my other (similar rides) and inserting into the raw file. Its not that difficult. Of course the result is a flat line average HR right thru the ride – but that is probably good enough for estimating the stress load from that ride and a lot better than having nothing!
Here’s how I did it in Strava - I expect this is possible on other platforms.
1) Export the .tcx file. This is just a text file. Open it with a text editor such as notepad or wordpad.
2) Modify the summary data. From line 19, you can insert your average and max HR values between the <calories> and <intensity> tags like this:
<AverageHeartRateBpm>
<Value>156</Value>
</AverageHeartRateBpm>
<MaximumHeartRateBpm>
<Value>156</Value>
</MaximumHeartRateBpm>
I used 156 because this was the average of a similar (easy) ride.
3) Modify the HRM values in the text file.
In order to replace the many many individual measurements that are logged in the file you can do a find and replace using the </DistanceMeters> tag to ensure the HR data goes in the right place. You will probably need to cut and paste the whole file into Word and then back into your text editor to do this, unless your text editor has a “find and replace” function.
Replace
</DistanceMeters>
with
</DistanceMeters><HeartRateBpm><Value>156</Value> </HeartRateBpm>
4) Save the file as a .txt file and rename it .tcx. You may need to untick the “Hide extensions for known file types” box in folder options so that Windows will allow you to do this.” If you don’t know how to do that, Google it.
5) Delete the original ride from your Strava log. (otherwise Strava will reject the upload as a duplicate file).
6) Manually upload your new file.
Thats it!
I managed to add “spoof” HR data to a Strava file by adding the average HR from one of my other (similar rides) and inserting into the raw file. Its not that difficult. Of course the result is a flat line average HR right thru the ride – but that is probably good enough for estimating the stress load from that ride and a lot better than having nothing!
Here’s how I did it in Strava - I expect this is possible on other platforms.
1) Export the .tcx file. This is just a text file. Open it with a text editor such as notepad or wordpad.
2) Modify the summary data. From line 19, you can insert your average and max HR values between the <calories> and <intensity> tags like this:
<AverageHeartRateBpm>
<Value>156</Value>
</AverageHeartRateBpm>
<MaximumHeartRateBpm>
<Value>156</Value>
</MaximumHeartRateBpm>
I used 156 because this was the average of a similar (easy) ride.
3) Modify the HRM values in the text file.
In order to replace the many many individual measurements that are logged in the file you can do a find and replace using the </DistanceMeters> tag to ensure the HR data goes in the right place. You will probably need to cut and paste the whole file into Word and then back into your text editor to do this, unless your text editor has a “find and replace” function.
Replace
</DistanceMeters>
with
</DistanceMeters><HeartRateBpm><Value>156</Value> </HeartRateBpm>
4) Save the file as a .txt file and rename it .tcx. You may need to untick the “Hide extensions for known file types” box in folder options so that Windows will allow you to do this.” If you don’t know how to do that, Google it.
5) Delete the original ride from your Strava log. (otherwise Strava will reject the upload as a duplicate file).
6) Manually upload your new file.
Thats it!