matin / garth

Garmin SSO auth + Connect Python client
MIT License
307 stars 23 forks source link

Support Fit File Upload #8

Closed jrast closed 1 year ago

jrast commented 1 year ago

In https://github.com/jaroslawhartman/withings-sync/pull/132 I implemented the upload of *.fit files. Any interest to move this code to garth?

matin commented 1 year ago

Let me take a look. I'm sure it'd also be useful to others.

matin commented 1 year ago

@jrast could you give #9 a try?

I wanted to find a to make it generalized.

You can do the following:

with open(fpath) as f:
    garth.client.upload(f)
jrast commented 1 year ago

Of course, If #9 is working go ahead and close this PR in favor of #9. I will check if #9 is working but I will need some days (probably next week).