HRV extraction #239
-
Hi, first thanks a lot for your work and script. However, I did not success in exporting HRV. Could you please tell me how to proceed? #!/usr/bin/env python3 import os import garminconnect ------------------ CONFIG -------------------GARTH_HOME = os.getenv("GARTH_HOME", "~/.garth") START_DATE = date(2022, 10, 15) DAILY_DATA_CSV = "daily_data.csv" SLEEP_SECONDS = 0.0 ---------------------------------------------def get_hrv(session: requests.Session, date_str: str): def main():
---if name == "main": |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
My bad, I just made i work, no need to spend time on this. I will share my code later for everyone else wondering the same. |
Beta Was this translation helpful? Give feedback.
-
Here is my full working script: #!/usr/bin/env python3 import garminconnect ------------------------------------------------------------------------CONFIGURATION------------------------------------------------------------------------USERNAME = os.getenv("GARMIN_USERNAME", "") # or "[email protected]" Choose your date rangeSTART_DATE = date(2022, 10, 15) Output CSV (one file)DAILY_DATA_CSV = "daily_data.csv" If you want to slow down requests (avoid rate-limits):SLEEP_SECONDS = 2.0 # Sleep for 2 seconds between requests ------------------------------------------------------------------------MAIN SCRIPT------------------------------------------------------------------------def main():
if name == "main": |
Beta Was this translation helpful? Give feedback.
My bad, I just made i work, no need to spend time on this. I will share my code later for everyone else wondering the same.
Cheers!