Einstein42 / myq-garage

Python Chamberlain Garage Door interface
MIT License
36 stars 16 forks source link

Auth API update and optional token caching #10

Closed exking closed 7 years ago

exking commented 7 years ago

Got it working with the most recent API change, also added optional token caching to mimic the real app, new config.ini variable (TOKENTTL) controls the caching, if set to 0 - caching is disabled (backwards compatibility), otherwise token is deemed "valid" for the amount of minutes configured. That would lower the amount of authentication requests if updates are pulled frequently.