Skip to content

Latest commit

 

History

History

Fit

Fit file as available from Strava

Pull your own data from your Strava account. Visualize, manipulate, and combine your data with other sources, all while maintaining full ownership and control of the data in your own environment.

Table of contents

  • ThursMorn.fit - The data used to run this example.
  • accessFit.py - Python script to demonstrate fit data inside Deephaven.
  • *.png - Images used in this help.

Steps to run

These steps can be run with our example data or your own.

  1. Login to your Strava account.

  2. Select an activity.

  3. At the bottom of the menu, select ... for more.

    Strava export menu

  4. Select Export Original. Provided you have supplied the data in fit format, this should now give a downloaded file with the .fit extension.

  5. Put this .fit file in the data folder underneath your Docker starting location: See our Quickstart for more information. Add another directory level if desired to keep various projects segmented.

  6. Ensure fitparse is setup (see below).

  7. Run the accessFit.py file in a Deephaven console.

  8. The heartRateData table should appear.

    Heart rate table

  9. Click the Table Options menu in the heartRateData tab.

  10. Select Chart Builder.

  11. Select defaults: Line, X-Axis=Timestamp, Series=Heart Rate

  12. Press Create (note: you may need to scroll to see the button.)

  13. A chart should appear:

    Heart rate chart

Using fitparse module

To use fitparse, install via your current Python session:

import os
os.system("pip install fitparse")

For more details on making the install persist between sessions, see How to install Python packages.

Note: Your mileage may vary if using a .fit file which reports different data types. Different sensors can report different data. In the example here, both GPS and heart rate monitor data is intertwined.

Advanced challenge

Some of the most interesting use cases for this data are to correlate the data with other sources of interest to you.

The first step is importing many .fit files to compare:

  • Today's heart rate with last month's heart rate.
  • Average heart rate last week/month.
  • Heart rate at different points during the day (morning, lunch, bedtime).
  • Correlate live heart rate data with past heart rate data from your .fit files: see tickingHeartRate for ideas on getting started with live heart rate data.

For more insight, correlate this data with:

  • diet macro nutrients - do you run faster when you have more protein?
  • sleep patterns - is heart rate affected by your amount of sleep?
  • weather - temperature, wind chill, humidity, etc.
  • health improvements - do you see positive gains in heart health over time?

Source and License

This data was contributed to the public domain by the author. It is provided here for demonstrative purposes without any warranty for fitness of purpose or usability.