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.
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.
These steps can be run with our example data or your own.
-
Login to your Strava account.
-
Select an activity.
-
At the bottom of the menu, select ... for more.
-
Select Export Original. Provided you have supplied the data in fit format, this should now give a downloaded file with the
.fit
extension. -
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. -
Ensure fitparse is setup (see below).
-
Run the
accessFit.py
file in a Deephaven console. -
The
heartRateData
table should appear. -
Click the Table Options menu in the
heartRateData
tab. -
Select Chart Builder.
-
Select defaults:
Line
,X-Axis=Timestamp
,Series=Heart Rate
-
Press Create (note: you may need to scroll to see the button.)
-
A chart should appear:
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.
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: seetickingHeartRate
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?
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.