matin

Results 58 comments of matin

+50. I use virtualenv in python religiously, and I'm working on a Ruby client. For now, I keep the following in my ~/.profile, which mirror workon from virtualenvwrapper: ``` function...

Garth migration solved this

It's already migrated. Upgrade to the latest version

The expiration of the MFA token (part of the OAuth1 token) is one year.

This is related to the same issue discussed in https://github.com/pe-st/garmin-connect-export/issues/95. The issue can be resolved by migrating to [Garth](https://github.com/matin/garth) for the authentication. The discussion includes several examples of projects that...

> there are two ways, store in a file, or in a string in HA storage, the last one is preferred I recommend using [`Client.dumps()`](https://github.com/matin/garth/blob/main/garth/http.py#L201-L206) and [`Client.loads()`](https://github.com/matin/garth/blob/main/garth/http.py#L218-L224) if you're looking...

@petergardfjall maybe it's helpful if I clarify a bit ... You're emulating a web browser. Garth emulates the Connect mobile app. That's the main difference. In terms of the OAuth...

Btw, if you're completely against using the OAuth consumer key, you should take a look at [Garth version 0.2.9](https://github.com/matin/garth/tree/d0f833d4c2a8d33084dcec388437fbb43294dfb2). Garth previously used a hybrid approach of app emulation + web...

Garth maintainer here. Some comments: - the oauth1 token is valid for a year, which is a game changer for anyone with MFA - I don't recommend hard-coding the keys....