Skip to content

Predict longevity changes based on changes in estimated vo2max

Notifications You must be signed in to change notification settings

harveybarnhard/vo2max_longevity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vo2max_longevity

Predict longevity changes based on changes in estimated vo2max.

Mandsager et al. (2018)

Notes

  1. Workflow is currently fragile in the sense that sometimes required packages do not download/install properly and entire workflow fails, but workflow works around 2/3 of the time. In particular, sometimes JQuery isn't loaded properly when pulling data from Garmin and sometimes data.table is not properly installed for the estimation procedure in R.
  2. Current final output is a CSV of longevity estimates, but plots are the desired final output.

Update July 29, 2023:

Workflow never runs anymore...apparently due to improved bot detection.

Update August 11, 2023:

Here are the steps to manually obtain a range of Vo2 max data (and any other number of data) from Garmin Connect.

  1. Log in to Garmin Connect using Google Chrome
  2. Right click anywhere on the page and click "inspect"
  3. Open the console and copy-and-paste the following code, perhaps changing the date range
response = jQuery.getJSON(
'https://connect.garmin.com/modern/proxy/metrics-service/metrics/maxmet/daily/2018-07-22/2023-08-10',
function(days)
    {
        days.forEach(
        function(day)
            {
                try {
                    d = day.generic;
                    console.dir(d.calendarDate, d.vo2MaxPreciseValue);
                } catch (e) {}
            }
        );
    } );
  1. Wait a bit for the response, then right-click on the response in the console and click "copy object"
  2. Paste the copied object into a plain text file with a .json extension.
  3. Use get_data_manual.py to process the data instead of get_data.py

About

Predict longevity changes based on changes in estimated vo2max

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published