BUG: getmeasure not working properly with 1month scale for rain gauge

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

BUG: getmeasure not working properly with 1month scale for rain gauge

Post by skuske » 20 Oct 2019, 10:32

We observed that getmeasure does not return the correct sum of rain for the current month for a rain gauge if scale is set to "1month": the value is completely different if you call getmeasure for the current month and a "1day" scale and then summarize the daily values. This only affects the current month - it works fine for months in the past. How can we call getmeasure with a 1month scale for the current month and get the correct sum of rain for the current month?

BTW: the 'Try it' module at https://dev.netatmo.com/resources/techn ... getmeasure does not work: there's no way to enter the access_token as the field seems to be read only.
Download myatmo from the iTunes AppStore at

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

Daegil_Netatmo
Posts: 7
Joined: 18 Jul 2019, 09:51

Re: BUG: getmeasure not working properly with 1month scale for rain gauge

Post by Daegil_Netatmo » 21 Oct 2019, 10:25

Hi!

I would require more information. Could you please send me more details and an exemple of the data on contact-api@netatmo.com ?

For the Try It, the field is greyed because it's automatically field in. Simply login to your Netatmo account to make use of it.

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

Re: BUG: getmeasure not working properly with 1month scale for rain gauge

Post by skuske » 21 Oct 2019, 18:16

Sorry, but I do not know how I could explain the issue in more detail, but I'll try again:

1.) Call getmeasure with a 1day scale for a rain gauge, start date 1st of Oct, end date 31st of Oct, datatype sum_rain - you get sum_rain for each day. Add all values. That should be the total amount of rain for that month.
2.) Call getmeasure with a 1month scale for a rain gauge, start date 1st of Oct, end date 31st of Oct, datatype sum_rain - you get one value, the total amount of rain for that month.

The sum_rain for call 2.) is completely different than the sum of all returned values of call 1.)

Hope this is clear now. Thanks.
Download myatmo from the iTunes AppStore at

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

Post Reply

Return to “Netatmo API”