Page 1 of 1

Netatmo new authentication?

Posted: Saturday 17 February 2024 22:04
by Shupez
Hi,

I have tried to follow the instructions in "https://www.domoticz.com/wiki/Netatmo"
about new method in authentication.
But I´m confused in the part....

URL:
"https://api.netatmo.com/oauth2/authoriz ... ead_camera"

"This URL brings you to the My Netatmo page where you have to identify yourself and are asked for permission...."

But I dont get to that page.
I only come to "http://localhost/netatmo?error=invalid_ ... =teststate".

What am I missing?

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 12:35
by Shupez
Anyone have any help? Plz

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 13:30
by waltervl
Did you change in the URL <YOURCLIENTID> with your real Client_ID?

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 13:42
by Shupez
Yes, of course

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 13:44
by waltervl
The return link states that something is wrong with the client_ID so check that again.

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 14:42
by Shupez
Ok, I did remove the < > and only paste my ClientID :o :mrgreen: , now I come to the right page, and copy the code I´ve got in the URL, paste it in Domoticz HW for Netatmo password, have ClientID:ClientSecret as my username but It says "No access granted, check username/password" after I restart the service for Netatmo HW.

2024-03-08 14:35:23.576 Status: Vikstaweather: Worker started...
2024-03-08 14:35:23.575 Error: Restarting: Vikstaweather
2024-03-08 14:35:28.816 Error: Vikstaweather: No access granted, check username/password...


I got back to the webpage, repeated everything, got a new (Somecode), paste the new Somecode as password in Netatmo HW, but got the same error.
I got back to the https://dev.netatmo.com/ and did a "regenerate" for new client id and client secret. Repeated every step, but still same error.
I´m still missing something I guess. :D

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 16:19
by waltervl
In Domoticz hardware configuration check
username: <client_id>:<client_secret> so something like jvfbsfdj:09875t0947398753


Somecode is only valid for limited time so you have to be fast.

Re: Netatmo new authentication?

Posted: Friday 08 March 2024 16:27
by Shupez
Yes, I have exactly like that. Tried 3 times.
And all in max 10 seconds.
Must be something else I'm missing.