Giter Club home page Giter Club logo

Comments (8)

matin avatar matin commented on September 23, 2024

@cyberjunky seems reasonable. Can you take a look at #40 to see if it solves the problem?

from garth.

matin avatar matin commented on September 23, 2024

@cyberjunky good to go. Released in 0.4.42

from garth.

cyberjunky avatar cyberjunky commented on September 23, 2024

@matin great, will test tomorrow, thanks again!
Next task is adding MFA support to the Home Assistant integration, needs some investigation to do, on how/where to save the keys generated by Garth. Or maybe even use the HA OAuth2 mechanism...

from garth.

matin avatar matin commented on September 23, 2024

In terms of MFA, running_page has users log in on the command line and save the tokens to a base64 encoded string. Those base64 tokens (not the username and password) are what are then saved for future use.

It creates some additional work for the user, but given the tokens survive for a year, it's worth it.

Ideally, you could support either username/password or a base64 serialized string of the tokens.

Just a thought.

from garth.

cyberjunky avatar cyberjunky commented on September 23, 2024

How can I detect if a user has MFA enabled, and thus ask for a response?

from garth.

matin avatar matin commented on September 23, 2024

Garth already does that here:

mfa_code = input("Enter MFA code: ")

from garth.

cyberjunky avatar cyberjunky commented on September 23, 2024

It seems the connection pool limit didn't fix the issue for the users... Need more investigation. How can I set the number of connections from garminconnect? Do I need to call the configure method?

from garth.

matin avatar matin commented on September 23, 2024

How can I set the number of connections from garminconnect? Do I need to call the configure method?

From garminconnect, you do the following:

self.garth.configure(
    pool_connections=10,
    pool_maxsize=10,
)

The defaults for both are already 10.

from garth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.