PArns / ioBroker.netatmo

Netatmo Adapter for ioBroker
http://www.patrick-arns.de
MIT License
26 stars 18 forks source link

Received data: undefined - data only each hour #107

Closed saint-hh closed 2 years ago

saint-hh commented 2 years ago

I, and also other users are facing a problem, that the data from Netatmo is coming only on a hourly basis. Until a couple of days ago everything was fine. The data was coming in around every 10 minutes. But since then, the data is coming in only around an hourly basis. Sometimes every 30 Minutes, this is not really constant. But mainly only every hour. I see that the ioBroker adapter is trying to receive data every 10 minutes (how it is set), but is mostly not getting any. This is what I see in the logs:

netatmo.0 2022-02-26 14:15:46.611 debug Received data: undefined

But my Netatmo station seems to be sending the data as usual every 10 minutes - I can see it in the apps on the smartphone. I can see in the forums that I'm not alone, other users are facing the same problem (thread in German): https://forum.iobroker.net/topic/52759/abfrage-netatmo-undefined

I need the data at least every 10 minutes, to steer my air ventilation system on basis of the Co2 data. Any help is greatly appreciated!

Adapter version: 1.4.4 JS-Controller version: 3.3.22 Node version: v14.19.0 Operating system: Raspbian Linux 10 / Linux 5.10.63-v7l+ auf armv7l

robbsta commented 2 years ago

Same Problem here. For additional info i add an error log to netatmoStation.js . The response from netatmo is "Application usage reached".

saint-hh commented 2 years ago

Seems like bad news - Netatmo is cutting us short. Any idea how to change the application ID?

saint-hh commented 2 years ago

It seems that maik-0 from the iobroker forum found a solution: https://forum.iobroker.net/post/770022 You need to create a ClientID and ClientSecret from netatmo. Then switch on the welcome camera in the adapter and fill in the ClientID and ClientSecret. After that, it seems to run smoothly again. You might switch off the welcome camera afterwards.

Proposal for the developer: as it seems that the API has changed for the weather stations, the ClientID and ClientSecret should also be mandatory for it.

Apollon77 commented 2 years ago

Next version will limit update intervals for the "Adapter id/secret" to prevent such issues in future and allows to specifcy own id/secret also for normal use. Please check GitHub version