station_name issue

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
Céline
Posts: 58
Joined: 20 Nov 2017, 18:17

station_name issue

Post by Céline »

Hello everyone,

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’)

Let’s take an example

Old station name: My station
Home name: Home
Indoor module name: indoor

The new station name to be displayed is : « Home (indoor) »

To avoid breaking API applications which will not be able to update quickly, we have released a fix that sends this concatenation inside the station_name field.

If you want to keep a different name, you can still have that logic in your own application.

Kind regards,
Netatmo team
Céline - Netatmo Team :D
Post Reply

Return to “Netatmo API”