Garmin Connect only supports showing a maximum 4-week plot of HRV data. This script scrapes HRV and sleep data and plots it on a single graph, making it much easier to see the trend over time.
In order for the script to work, you need to provide the correct values for the Authorization and Cookie headers. To get these:
- Log in to Garmin Connect and navigate to the HRV status report
- Open the browser developer tools and select the network tab
- In the HRV status report, click to a previous period. This will cause a network request to update the report
- In the developer tools, click on the network request and look for the request header.