Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with netatmo authentification #22

Open
catalincolesnicov opened this issue Jun 21, 2024 · 1 comment
Open

Error with netatmo authentification #22

catalincolesnicov opened this issue Jun 21, 2024 · 1 comment

Comments

@catalincolesnicov
Copy link

Hello,
since some days i get following error running the script.

code=400, reason=, body=b'{"error":"invalid_grant"}'
Traceback (most recent call last):
  File "/usr/local/bin/netatmo_influx.py", line 9, in <module>
    weatherData = lnetatmo.WeatherStationData(authorization)
  File "/usr/local/lib/python3.9/dist-packages/lnetatmo.py", line 413, in __init__
    self.getAuthToken = authData.accessToken
  File "/usr/local/lib/python3.9/dist-packages/lnetatmo.py", line 240, in accessToken
    if self.expiration < time.time() : self.renew_token()
  File "/usr/local/lib/python3.9/dist-packages/lnetatmo.py", line 251, in renew_token
    if self.refreshToken != resp['refresh_token']:
TypeError: 'NoneType' object is not subscriptable
@psykok
Copy link

psykok commented Jun 30, 2024

I'm getting the same error.
Apparently the API token is expiring each time you active it.
The authentication procedure has been changed again by Netatmo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants