-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoints for modern Garmin Connect Dashboard #207
Comments
I just checked {
'dailySleepDTO': {'id': XYZ,
'userProfilePK': XYZ,
'calendarDate': '2024-06-06',
'sleepTimeSeconds': 28260,
# More fields...
'bodyBatteryChange': 40,
'restingHeartRate': 45
} Every morning I call most of the endpoints (including every single one you're saying didn't work) to download data, and I did not have any issues recently I believe what you're seeing is that the URL for the page itself has changed, but the underlying API calls have not changed. E.g., when you go to the Pulse Ox page at In general, I do not believe we need to update the URLs to reflect this Can you be more specific about the precise code you're running to get those errors? EDIT: I wonder if the issue is you're passing the full date and time, not just the date? DOUBLE EDIT:
but
It's interesting that some of the other ones work -- I'm guessing Garmin does some parsing of the dates and times under the hood for those (since this project doesn't), but not for the others. E.g., |
@mattiacampana @psdupvi still woking here as well, so we have now 3 different types of endpoint, will they all cover all data we have now, or are the limitations to each of them? |
I think there are just two types. The way I see it so far:
We'd need to do some investigation about the GraphQL endpoints to determine if they have an additional data over the current I think the confusion in this issue is that some of the Maye there's an argument that the package should return a helpful error if the provided date includes a time component, or better documentation on the format (although In terms of supporting the GraphQL endpoints, I created #210 but haven't been able to investigate yet. I will at some point unless someone else gets to it first |
I've noticed that Garmin recently switched to a "modern" dashboard with different endpoints; e.g.,
https://connect.garmin.com/modern/pulse-ox/2024-06-05
is the new URL to access the pulse ox data for a specific date.Is this library able to handle this new URL format?
UPDATE:
I've tried to download some data, but I'm receiving the following
garth.exc.GarthHTTPError
:Http Error: Error in request: 404 Client Error: Not Found for url: https://connectapi.garmin.com/wellness-service/wellness/daily/respiration/2024-05-17T00:00:00
by using the following garminconnect methods:
garmin.get_sleep_data(date)
garmin.get_stress_data(date)
garmin.get_spo2_data(date)
garmin.get_respiration_data(date)
while the following still work correctly:
garmin.get_heart_rates(date)
garmin.get_steps_data(date)
garmin.get_daily_weigh_ins(date)
garmin.get_stats(date)
garmin.get_hrv_data(date)
The text was updated successfully, but these errors were encountered: