43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
# Test Data
|
|
|
|
This directory contains example FIT files for testing and demonstration purposes.
|
|
|
|
## Files
|
|
|
|
- **Activity.fit** (92 KB) - Full activity file from Garmin SDK with 3,601 data records
|
|
- **Settings.fit** (82 bytes) - Simple settings file
|
|
- **MonitoringFile.fit** (2.1 KB) - Daily monitoring data example
|
|
- **WorkoutIndividualSteps.fit** (175 bytes) - Workout definition file
|
|
- **RealWorld_Cycling.fit** (171 KB) - Real-world cycling activity from Wahoo ELEMNT device
|
|
|
|
## Usage
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"git.blackfinn.de/go/fit-parser/fitparser"
|
|
)
|
|
|
|
func main() {
|
|
data, _ := os.ReadFile("testdata/Activity.fit")
|
|
decoder, _ := fitparser.NewDecoder(data)
|
|
messages, err := decoder.Decode()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
// Process messages...
|
|
}
|
|
```
|
|
|
|
## Source
|
|
|
|
- SDK examples: From official Garmin FIT SDK (https://developer.garmin.com/fit/)
|
|
- Real-world example: Wahoo ELEMNT cycling device
|
|
|
|
## License
|
|
|
|
These files are provided for testing and educational purposes. The FIT protocol and SDK are property of Garmin International, Inc.
|