cyberjunky / python-garminconnect

Python 3 API wrapper for Garmin Connect to get activity statistics
MIT License
802 stars 132 forks source link

Add endpoint for adding hydration data #205

Closed psdupvi closed 1 month ago

psdupvi commented 1 month ago

Asked for in https://github.com/cyberjunky/python-garminconnect/issues/204

Added to example.py and readme as well

Tested on my own and works with both dates, no dates, only cdate, and only timestamp.

It doesn't appear that the dates are actually used for anything in Garmin connect, but maybe they will be eventually.

This endpoint does not require that the date and timestamp be on the same day

psdupvi commented 1 month ago

Suddenly this isn't working -- closing while I fix

psdupvi commented 1 month ago

Nevermind, I'm an idiot. I was using my testing account and I must have hit the limit on size. Reopening because this does work, but you just can't go above 65,534 ml of water (technically, you can hit that amount, but once you're there, any additional requests to add water fail)

cyberjunky commented 1 month ago

Thank you (again) ;-)

ciferkey commented 2 weeks ago

Thanks for adding this! Its exactly what I needed. Looking forward to when it releases.