Initial commit

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn
2026-02-08 07:28:32 +00:00
commit 2945d90d24
25 changed files with 3177 additions and 0 deletions

42
example/testdata/README.md vendored Normal file
View 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.