Skip to content

A C# library with expressive models to interact with the content of .FIT-files.

Notifications You must be signed in to change notification settings

VemundFredriksen/ExpressiveFit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quality Gate Status Coverage

ExpressiveFit

A C# library with expressive models to interact with the content of .FIT-files.

Installation

Simply clone this repository and reference the project ExpressiveFit.csproj

Usage

Read a .FIT-file

// From file path
Activity activity = ReadUtils.ReadFile("my_fit_file.fit");

// From file stream
FileStream stream = new FileStream("my_fit_file.fit", FileMode.Open);
Activity activity = ReadUtils.ReadFile(stream);

// From directory
List<Activity> activities = ReadUtils.ReadDirectory("mydir/");

Interact with expressive activity models

var activity = ReadUtils.ReadFile("my_fit_file.fit");

var averageSpeedKilometersPerHour = activity.PaceCharacteristics.Average.KilometersPerHour;
var maxHeartRate = activity.HeartRateCharacteristics.Max;
var averageHeartRateLap2 = activity.Laps[1].HeartRateCharacteristics.Average;
var heartRateSeries = activity.HeartReateCharacteristics.Series;

Simply check the model defintions in /src/Models/Activity/ to see all available data fields.

About

A C# library with expressive models to interact with the content of .FIT-files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages