diff --git a/app/server.js b/app/server.js index 099658f..7ca8ca6 100644 --- a/app/server.js +++ b/app/server.js @@ -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) })