2 releases
new 0.1.1 | Mar 9, 2025 |
---|---|
0.1.0 | Mar 7, 2025 |
#2182 in Parser implementations
87 downloads per month
24KB
327 lines
fit-connect-rs
Description
Right now this is a POC of an application that will eventually pull data from various fitness sources, export it or sync it to other fitness tools. Currently, all it does is uses the withings-rs rust crate to pull the last weight and sync it to strava using the strava-rs crate. It can also pull data out of strava for the athlete. It currently diplays the following in JSON.
- Athlete Profile
- Athlete Stats for all activities
Example Use
fit-connect-rs -h
fit syncing tool
Usage: fit-connect-rs [OPTIONS] [COMMAND]
Commands:
withings
strava
help Print this message or the help of the given subcommand(s)
Options:
-l, --log Optional to enable logging
-h, --help Print help
-V, --version Print version
fit-connect-rs strava -h
Usage: fit-connect-rs strava [OPTIONS]
Options:
-r, --register <Only needs ran the first time to register this to your account>
-a, --get-athlete
-s, --get-stats
-h, --help Print help
Note in order to use this you will need to setup the Withings development kit if you plan on using the Withings module. withings Prior to using this you must create a strava application using your Strava Account strava app You will be prompted to allow the application access strava oauth Then some ENV vars will need to be set which are created when you setup a new application in the link above: export STRAVA_CLIENT_ID=72920 export STRAVA_CLIENT_SECRET=xxxx export STRAVA_CONFIG_FILE=/home/xxx/.strava-rs/config.json
Dependencies
~12–29MB
~384K SLoC