No Description

bodicsek 2a7f8cac30 Adding default install dir as the current bash script module dir 2 years ago
.gitignore 38afc80c18 First version 2 years ago
FitCSVTool.jar 38afc80c18 First version 2 years ago
README.org 2a7f8cac30 Adding default install dir as the current bash script module dir 2 years ago
fit-pipeline-upload.js 38afc80c18 First version 2 years ago
fit-pipeline.sh 2a7f8cac30 Adding default install dir as the current bash script module dir 2 years ago
package-lock.json 38afc80c18 First version 2 years ago
package.json 38afc80c18 First version 2 years ago

README.org

Pipeline for FIT file post processing

Prerequisites

  • bash
  • java
  • awk
  • node

Usage

  $ GARMIN_PWD="my_garmin_pwd" ./fit-pipeline.sh CE5470D544BEC294_20231022_164826_c.fit

Pipeline steps

  1. Convert FIT file to CSV using FitCSVTool.jar (a tool from Garmin's FIT SDK)
  2. Update default power data (trainer data) with secondary power data (bike data) in the CSV file using awk
  3. Convert the modified CSV file to FIT file
  4. Upload the modified FIT file to Garmin Connect

Environment variables

  • FIT_PIPELINE_DIR - install directory of the pipeline scripts; defaults to the main bash script's module directory
  • FIT_PIPELINE_TMP_DIR - directory of temporary files; defaults to "$FIT_PIPELINE_DIR/tmp"
  • FIT_PIPELINE_RESULT_DIR - directory of the modified FIT files; defaults to "$FIT_PIPELINE_DIR/result"
  • GARMIN_USER - Garmin Connect username
  • GARMIN_PWD - Garmin Connect password