Predict longevity changes based on changes in estimated vo2max.
- 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. - Current final output is a CSV of longevity estimates, but plots are the desired final output.
Workflow never runs anymore...apparently due to improved bot detection.
Here are the steps to manually obtain a range of Vo2 max data (and any other number of data) from Garmin Connect.
- Log in to Garmin Connect using Google Chrome
- Right click anywhere on the page and click "inspect"
- 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) {}
}
);
} );
- Wait a bit for the response, then right-click on the response in the console and click "copy object"
- Paste the copied object into a plain text file with a
.json
extension. - Use
get_data_manual.py
to process the data instead ofget_data.py