BIN
example/testdata/Activity.fit
vendored
Normal file
BIN
example/testdata/Activity.fit
vendored
Normal file
Binary file not shown.
BIN
example/testdata/MonitoringFile.fit
vendored
Normal file
BIN
example/testdata/MonitoringFile.fit
vendored
Normal file
Binary file not shown.
42
example/testdata/README.md
vendored
Normal file
42
example/testdata/README.md
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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.
|
||||
BIN
example/testdata/RealWorld_Cycling.fit
vendored
Normal file
BIN
example/testdata/RealWorld_Cycling.fit
vendored
Normal file
Binary file not shown.
BIN
example/testdata/Settings.fit
vendored
Normal file
BIN
example/testdata/Settings.fit
vendored
Normal file
Binary file not shown.
BIN
example/testdata/WorkoutIndividualSteps.fit
vendored
Normal file
BIN
example/testdata/WorkoutIndividualSteps.fit
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user