Added handling of the HRRecoveryUpdate

Added handling of the HRRecoveryUpdate, which will add Recovery HeartRate to the tcx notes
This commit is contained in:
Jaap van Ekris 2023-04-24 13:20:47 +02:00 committed by GitHub
parent b5e439cd50
commit 52d491b5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -220,6 +220,11 @@ rowingStatistics.on('rowingStopped', (metrics) => {
workoutRecorder.writeRecordings()
})
rowingStatistics.on('HRRecoveryUpdate', (hrMetrics) => {
// This is called at minute intervals after the rowingmachine has stopped, to record the Recovery heartrate in the tcx
workoutRecorder.updateHRRecovery(hrMetrics)
})
workoutUploader.on('authorizeStrava', (data, client) => {
webServer.notifyClient(client, 'authorizeStrava', data)
})