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

Token lease time expired #23

Open
vladiczek opened this issue Oct 4, 2024 · 1 comment
Open

Token lease time expired #23

vladiczek opened this issue Oct 4, 2024 · 1 comment

Comments

@vladiczek
Copy link

Hi,

I apologize in advance if I'm not clear. I have deployed the docker version, it works perfectly and thank you.

Unfortunately, the log shows that the script stops working every time after 3 hours:

2024-10-04T11:19:23.338606502Z {"timestamp": "Fri, 04 Oct 2024 11:19:23 GMT", "level": "debug", "message": "API request", "context":{"url": "https://api.netatmo.com/oauth2/token", "method": "POST"}} 2024-10-04T11:19:23.530424567Z {"timestamp": "Fri, 04 Oct 2024 11:19:23 GMT", "level": "error", "message":""}

The record is repeated according to the NMR_UPDATE_INTERVAL parameter.

In the Netatmo API documentation I have found the info regarding the lease time of an auth-token and its refresh using refresh-token.

Of course, I don't know if this refresh feature is new in the Netatmo API and not implemented that way in the script, or if I'm setting something wrong?

Thanks for the info, if possible.
Vladiczek

@vladiczek
Copy link
Author

Found this script as well able to handle refresh-tokens:
netatmo-bash

There is stated, that the new API has been presented in 2024.

Unfortunately I am not able to implement these changes to the current project.

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

1 participant