weight2fit is a multi-platform application for generating Flexible and Interoperable Data Transfer (FIT) files. The input data for the program are values from a scale (weight, body fat percentage, bone mass etc.). After creation FIT file may be uploaded to sport Garmin Connect portal.
Enter weight values in corresponding input fields and press button for creating output FIT file.
To start the program execution from the command line
java -jar weight2fit-<platform>-<version>.jar -w (--weight) value [OPTIONAL_PARAMETERS]
Here are parameters
-t (--timestamp) yyyy-MM-dd : Timestamp of measurement
-w (--weight) value : Weight of the body in kg
-bf (--bodyFat) value : Fat of the body in %
-bw (--bodyWater) value : Water of the body in %
-vf (--visceralFat) index : Visceral fat
-mm (--muscleMass) value : Muscle mass of the body in kg
-pr (--physiqueRating) index : Physique rating
-bm (--boneMass) value : Bone mass of the body in kg
-dci (--dailyCalorieIntake) value : Daily calorie intake in kcal/day
-ma (--metabolicAge) value : Metabolic age in years
-o (--out) FILE : Output FIT file name
-h (--help) : Shows help info (default: true)
If timestamp
param is missing then current date value will be used. If out
param is missed timestamp
value
will be used as a name of output file.
The detailed params description on Tanita site here and here and on Garmin Connect.
Regardless of your operating system, you must have the following things installed on it and included in your path:
- JRE 1.6 or greater
- Maven 3.x or greater
Open a system shell and check out the sources into some directory. Then cd
into that directory and type:
mvn clean package
The resulting platform-specific built artifact will be located under the target
directory.
Code is under the Apache Licence v2.