SERIOUS ISSUE with /api/getstationsdata

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
skuske
Posts: 145
Joined: 13 Dec 2014, 15:11

Re: SERIOUS ISSUE with /api/getstationsdata

Post by skuske » 24 Nov 2018, 15:34

Yes, we can constantly reproduce that. I do not know if it is limited to the rain gauge, though. But: if the rain gauge (or maybe any other module, too) does not submit data for a longer period of time (maybe for the last 24 hours), then dashboard_data does not exist in the returned JSON for /api/getstationsdata.

@netatmo: can you confirm that? Actually it worked before the original problems of this thread started last week. That means that you must have changed something that causes dashboard_data not to be returned in such scenarios. You should do some sandbox testing before you make such drastic changes to your API.
Download myatmo from the iTunes AppStore at

https://itunes.apple.com/us/app/myatmo/ ... &ls=1&mt=8

Céline
Posts: 37
Joined: 20 Nov 2017, 18:17

Re: SERIOUS ISSUE with /api/getstationsdata

Post by Céline » 26 Nov 2018, 14:31

Hello,

Dashboard_data should be returned in getstationdata response if the device is reachable.
If the device is not reachable, for instance, battery is empty or wifi is off, dashboard_data won't be returned.

To get the older values, you can use getmeasure endpoint.

Céline
Céline - Netatmo Team :D

skuske
Posts: 145
Joined: 13 Dec 2014, 15:11

Re: SERIOUS ISSUE with /api/getstationsdata

Post by skuske » 26 Nov 2018, 14:38

Céline wrote: Dashboard_data should be returned in getstationdata response if the device is reachable.
If the device is not reachable, for instance, battery is empty or wifi is off, dashboard_data won't be returned.
OK, the docs don't say that, and actually it worked different before last week. It is not a good approach if you make the returned values dependent on certain (undocumented) conditions. In such cases, at least the key Dashboard_data should be present, but then empty. Otherwise you break the whole system if one expects the dashboard_data key to exist.

Dashboard_data was always returned before the last week, even under the seemingly new exclusion criteria. It's not just us who noticed that...
Last edited by skuske on 26 Nov 2018, 14:53, edited 1 time in total.
Download myatmo from the iTunes AppStore at

https://itunes.apple.com/us/app/myatmo/ ... &ls=1&mt=8

skuske
Posts: 145
Joined: 13 Dec 2014, 15:11

Re: SERIOUS ISSUE with /api/getstationsdata

Post by skuske » 26 Nov 2018, 14:45

To make a long story short:

To make the whole system safe, the key 'dashboard_data' should always exist, but in the cases described, it should then be empty, and not simply not exist. Otherwise, the documentation should clearly indicate that the key 'dashboard_data' does not exist under certain conditions.
Download myatmo from the iTunes AppStore at

https://itunes.apple.com/us/app/myatmo/ ... &ls=1&mt=8

Céline
Posts: 37
Joined: 20 Nov 2017, 18:17

Re: SERIOUS ISSUE with /api/getstationsdata

Post by Céline » 26 Nov 2018, 15:56

Hi skuske,

In our actual API, the logic is to not return a field if it is empty. That is why the key is missing in the unreachability case.

I've just updated the documentation and it now informs about the field not being returned when the device is unreachable.

Céline
Céline - Netatmo Team :D

fleproust
Posts: 46
Joined: 11 Aug 2017, 08:50

Re: SERIOUS ISSUE with /api/getstationsdata

Post by fleproust » 29 Nov 2018, 07:49

Down again

fleproust
Posts: 46
Joined: 11 Aug 2017, 08:50

Re: SERIOUS ISSUE with /api/getstationsdata

Post by fleproust » 30 Nov 2018, 09:26

Down again since 1 hour
no update since 8am this morning. the same on the netatmo website...

Céline
Posts: 37
Joined: 20 Nov 2017, 18:17

Re: SERIOUS ISSUE with /api/getstationsdata

Post by Céline » 03 Dec 2018, 18:58

Hi fleproust,

Are you sure your station is reachable ?

dashboard_data is not returned when the device is unreachable.

Céline
Céline - Netatmo Team :D

fleproust
Posts: 46
Joined: 11 Aug 2017, 08:50

Re: SERIOUS ISSUE with /api/getstationsdata

Post by fleproust » 03 Dec 2018, 18:59

It’s ok Now. But 3 hours off last day

_Jens_
Posts: 4
Joined: 06 Aug 2017, 19:10

Re: SERIOUS ISSUE with /api/getstationsdata

Post by _Jens_ » 16 Dec 2018, 13:11

15.12. -> 4 times the dashboard_data was missing
Every day seems to be the the same … :-/

Post Reply

Return to “Netatmo API”