From 52d491b5f2117c4aa5b145f2668979d2a5c8be08 Mon Sep 17 00:00:00 2001 From: Jaap van Ekris <82339657+JaapvanEkris@users.noreply.github.com> Date: Mon, 24 Apr 2023 13:20:47 +0200 Subject: [PATCH] Added handling of the HRRecoveryUpdate Added handling of the HRRecoveryUpdate, which will add Recovery HeartRate to the tcx notes --- app/server.js | 5 +++++ 1 file changed, 5 insertions(+) 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) })