Page 1 of 1

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

Posted: 20 Oct 2019, 10:32
by skuske
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.

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

Posted: 21 Oct 2019, 10:25
by Daegil_Netatmo
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.

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

Posted: 21 Oct 2019, 18:16
by skuske
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.

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

Posted: 09 Feb 2020, 10:36
by gulivert
Same here !
I did a try on the january month, with a scale of day I have 0.128 for the total
With a scale of month the api return 0.015