ikubicki / fibaro-netatmo-weather-provider

Fibaro Home Center Weather Provider based on Netatmo Weather Station
MIT License
1 stars 1 forks source link

Home center 3, sofrtware v: 5.160.30 #1

Open Lexys-zz opened 6 months ago

Lexys-zz commented 6 months ago

I have just added the latest your code to my quickapps, entered Client ID, Secret ID and refresh token, but in console still getting error:

[2024-05-05] [21:37:01] [ERROR] [QUICKAPP2330]: QuickApp crashed [2024-05-05] [21:37:01] [ERROR] [QUICKAPP2330]: /usr/share/lua/5.3/json/decode/util.lua:35: unexpected character @ character: 1 0:1 [H] line:

ikubicki commented 6 months ago

Hi @Lexys-zz, how you acquired the token? I found that oauth way is faulty and is not always working (at least for me). I'm generating the token via https://dev.netatmo.com/apps/ and it seems to be working for few months. Netatmo solution is awful and creates a lot of pain. Their is API is even worse, giving inconsistent type responses.

I will take a look and suggest something that will help to debug the issue. I'm not having that error (I'm getting other errors tho ;) )

ikubicki commented 6 months ago

Meanwhile, can you click Search Devices and see if it gives you any results?

Lexys-zz commented 6 months ago

You know, netatmo developer portal for me don't work properly. If I create new app, i dont see any client id, secret keys, nothink except something went wrong, 404 page :DD

Screenshot 2024-05-06 at 22 11 51

I have client ID and secret ID from the past. It's working for me via PHP code

Screenshot 2024-05-06 at 22 13 07

In the past the old Netatmo integration was working fine for me until it change the logic of Authentification.

I have entered all data to Fibaro gateway, problem is the same:

Screenshot 2024-05-06 at 22 23 54

Refresh token I pickup from https://codebuilders.pl/netatmo/ or generate it via mine PHP Script

If I click button to search device, the same, app crash ;D Have no Idea why it's not working