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

Can't connect to Netatmo #24

Open
Duhlin12 opened this issue Jul 26, 2023 · 12 comments
Open

Can't connect to Netatmo #24

Duhlin12 opened this issue Jul 26, 2023 · 12 comments
Labels
[Feature] Extensibility and APIs All things related to new APIS, devices ... first time contributor Issue or PR opened by a first-time contributor to the repository [Needs] Dev [Needs] Further research [Priority] High
Milestone

Comments

@Duhlin12
Copy link

I have weatherstation plugin hooked up to pull data from netatmo, now i'm not able to connect to netatmo. Just get bad credential when i try to login to my netatmo account thru weatherstation.
I know for a fact thats my credential is correct. When i login direct on netatmo site it is no problem.

Any suggestion?

@Duhlin12
Copy link
Author

Nobody??

@jaz-on
Copy link
Member

jaz-on commented Aug 1, 2023

Hello @Duhlin12 did you follow the documentation on the official website? https://weather.station.software/handbook/stations-management/adding-a-station/

Can you provide more details, please? Were you using the plugin and it stopped working (if so, did something changed on your side or are you aware of any updates on Netatmo side)? Or is it a fresh installation?

What is being displayed? Can you please add a screenshot of the error?

(Btw I'm currently on holiday that's why I'm a bit AFK. Also, this is a 100% unpaid volunteer lead side project, don't expect fast support 😉 )

@Duhlin12
Copy link
Author

Duhlin12 commented Aug 1, 2023

Hello @jaz-on
I have weather station up and running on my website since february this year, without any problem. I helped a friend to connect weatherstation to his website, but due to that the plugin wasen´t compatible with that version of wordpress it diden´t work. When you update the plugin to 3.8.12 i could install the plugin on his website, but was not able to connect to wordpress just get return wrong credentials.
When i tried to look at my working setup with weatherstation on my site, i accidently log out of netatmo in weatherstation (the connection worked on 3.8.12), but i´am not able to reconnect to netatmo again. i have the same settings and have not installed anything new unless updating weatherstattion.

i know that netatmo change their way of authentification and remove one way of the ways to authenticat, but it should been removed in october 2022. https://dev.netatmo.com/apidocumentation/oauth
i have looked in the code in the netatmo folder, but its over my head, to find out wich type of authentication you used, but i think you use "Client credentials grant type" and that is the type that is not supported anymore. (but i not sure)

I appreciate everything you do this is the most awesom plugin i have. so i hope you can find a solutio.
Have a nice holiday.

I hope that you can understand my bad english...
best regards
Daniel

@jaz-on jaz-on self-assigned this Aug 1, 2023
@jaz-on jaz-on added [Feature] Extensibility and APIs All things related to new APIS, devices ... [Needs] Testing labels Aug 1, 2023
@Xyla1512
Copy link

Xyla1512 commented Aug 3, 2023

I have the same problems on my website with the Plugin also with 3.8.13. If U are logged in all is fine. Just a relogin isnt possible anymore.
2 weeks ago, Netatmo changed the Authentification process again. So a login is only possible with the refresh token. I tested this with some php scripts and the login with refresh token works.
It looks like the Plugin has to update the login procedure. Maybe we have to create the refresh token in our developer Site by Netatmo and put this in the Loginform by the plugin. Dont know...
But it would very nice if this issue will be fixed soon.

@jaz-on jaz-on added this to the 3.9 milestone Aug 3, 2023
@jaz-on
Copy link
Member

jaz-on commented Aug 3, 2023

Hello @Xyla1512 I was about to answer you on the .org forum.
Many thanks for the heads-up and additional details on the Netatmo login procedure changes.
I can't promise anything about a deadline but this will be the main priority for the next version of the plugin.

FYI I'm on holiday atm, so I don't think I'll have time to release a new version before ~September.
I'll have to read their login procedure documentation to update the Weather Station authentication process, then tests will be needed to ensure the new patch doesn't log everyone out, etc.

Will ping you and @Duhlin12 as soon as I've a stable version so we can test it together! :)

@jaz-on jaz-on added [Needs] Further research [Priority] High first time contributor Issue or PR opened by a first-time contributor to the repository and removed [Needs] Testing labels Aug 3, 2023
@Xyla1512
Copy link

Xyla1512 commented Aug 3, 2023

@jaz-on

this is the coder which I use since 2 weeks to login.
there is also no need to refresh the token every 3 hours. it still works. I`m not the script genius.

login_new.txt

@jaz-on
Copy link
Member

jaz-on commented Aug 3, 2023

Nice, thanks for the drafted code.

I'll have a look at it, it could speed up the release of a new version! 👌

@jaz-on jaz-on removed their assignment Aug 8, 2023
@KA8SCP
Copy link

KA8SCP commented Aug 28, 2023

I am seeing the same problem with Netatmo.... I am such a rookie at this... so I thought maybe I should delete my existing station settings (dont seem to have the option anywhere) and start over?

@Xyla1512
Copy link

Hi @jaz-on , any news about a new version and the connection problem ?

@kalgraff
Copy link

Is there any progress to solve the login problems for Netatmo?

@Xyla1512
Copy link

Xyla1512 commented Dec 22, 2023 via email

@jsakmar
Copy link

jsakmar commented Jul 2, 2024

Is there any update for Netatmo login issue ?
Also noticed the site [https://weather.station.software] is down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility and APIs All things related to new APIS, devices ... first time contributor Issue or PR opened by a first-time contributor to the repository [Needs] Dev [Needs] Further research [Priority] High
Projects
None yet
Development

No branches or pull requests

6 participants