Weather-Station-Software / live-weather-station

Display on your WordPress site, in many elegant ways, the meteorological data collected by public or personal weather stations.
https://weather.station.software/
GNU General Public License v2.0
7 stars 2 forks source link

Can't connect to Netatmo #24

Open Duhlin12 opened 1 year ago

Duhlin12 commented 1 year ago

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 commented 1 year ago

Nobody??

jaz-on commented 1 year ago

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 commented 1 year ago

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

Xyla1512 commented 1 year ago

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 commented 1 year ago

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! :)

Xyla1512 commented 1 year ago

@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 commented 1 year ago

Nice, thanks for the drafted code.

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

KA8SCP commented 11 months ago

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 commented 11 months ago

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

kalgraff commented 9 months ago

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

Xyla1512 commented 8 months ago

Hi Jason,

do You still work on the netatmo Poblem ? Can You give me an update?

Mit freundlichen Grüßen

Frank Neumann


Von: Jason Rouet @.> Gesendet: Donnerstag, 3. August 2023 11:09 An: Weather-Station-Software/live-weather-station @.> Cc: Frank Neumann @.>; Mention @.> Betreff: Re: [Weather-Station-Software/live-weather-station] Can't connect to Netatmo (Issue #24)

Hello @Xyla1512https://github.com/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 @Duhlin12https://github.com/Duhlin12 as soon as I've a stable version so we can test it together! :)

— Reply to this email directly, view it on GitHubhttps://github.com/Weather-Station-Software/live-weather-station/issues/24#issuecomment-1663588030, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBWCCXIE45ZMAMYKZGH236LXTNTC7ANCNFSM6AAAAAA2YZJFDE. You are receiving this because you were mentioned.Message ID: @.***>

jsakmar commented 1 month ago

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