benningm / docker-telegraf-netatmo

script and docker image to retrieve data from netatmo API
10 stars 8 forks source link

data no more imported in influxdb #7

Closed jostrasser closed 1 year ago

jostrasser commented 3 years ago

Hi,

since yesterday no data will be imported into my influxdb. No idea if netatmo has changed anything on their end. Last data at 4:45pm CET.

Any idea?

Thanks JO!

jostrasser commented 3 years ago

got also the same feedback from other users of the script... its not related only to me ;)

jostrasser commented 3 years ago

Maybe related to this official Netatmo information?

The recent update of the Weather Station mobile application introducing the concept of Homes has led to the station_name field deprecation. Indeed, this field is no longer displayed in the Weather mobile application and thus cannot be edited anymore. For newly installed Weather Station, this field will not be returned by the getstationdata API as it no longer exists.

This can cause unexpected error on your own Application and we are sorry for the inconvenience.

To provide the best user experience to your users, we now recommend to use a combination of two fields like it is done in Netatmo application : home_name module_name of the Indoor module (NAMain)

NB: home_name has recently been added to the JSON response of the getstationdata endpoint

Using these two fields, you will be able to display the same name which is displayed in the app : home_name ( ‘module_name’)

Details: https://forum.netatmo.com/viewtopic.php?f=5&t=19196

jostrasser commented 3 years ago

Hi @benningm

I can confirm that the change from Netatmo on their platform is the issue... they added the Station Name of the Main module.

If I take a look to the written data in my Grafana/influxdb I can see that I get a second field key:

Screenshot

Is it possible that you translate it in your ruby script that the data will be imported in the same series like before into influxdb?

Otherwise we all will get a problem with the history data because all the dashboards are built on a single field key.

Thanks JO!