https://github.com/sesh/getfit
Generate Garmin-compatible FIT Workout files from a simple JSON workout structure
https://github.com/sesh/getfit
Last synced: 10 months ago
JSON representation
Generate Garmin-compatible FIT Workout files from a simple JSON workout structure
- Host: GitHub
- URL: https://github.com/sesh/getfit
- Owner: sesh
- Created: 2022-01-04T09:12:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-27T00:52:17.000Z (over 3 years ago)
- Last Synced: 2025-08-31T06:38:38.000Z (10 months ago)
- Language: Python
- Size: 149 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generate Garmin-compatible FIT Workout files from a simple JSON workout structure.
Example JSON for the `/api/getfitfromjson` endpoint:
```json
{
"name": "GetFIT Test",
"steps": [
{
"intensity": "warmup",
"duration": 480,
"targetSpeedLow": null,
"targetSpeedHigh": null
},
{
"intensity": "interval",
"duration": 120,
"targetSpeedLow": 4.0,
"targetSpeedHigh": 4.67
},
{
"intensity": "recovery",
"duration": 180,
"targetSpeedLow": null,
"targetSpeedHigh": null
},
{
"intensity": "interval",
"duration": 120,
"targetSpeedLow": 4.0,
"targetSpeedHigh": 4.67
},
{
"intensity": "recovery",
"duration": 150,
"targetSpeedLow": null,
"targetSpeedHigh": null
},
{
"intensity": "interval",
"duration": 75,
"targetSpeedLow": 4.0,
"targetSpeedHigh": 4.67
},
{
"intensity": "recovery",
"duration": 135,
"targetSpeedLow": null,
"targetSpeedHigh": null
},
{
"intensity": "interval",
"duration": 90,
"targetSpeedLow": 4.0,
"targetSpeedHigh": 4.67
},
{
"intensity": "recovery",
"duration": 210,
"targetSpeedLow": null,
"targetSpeedHigh": null
},
{
"intensity": "cooldown",
"duration": 240,
"targetSpeedLow": null,
"targetSpeedHigh": null
}
]
}
```
## Run Locally
```
func start
```
## Publish
```
func azure functionapp publish GetFitFile
```