missing dates

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
zzooee
Posts: 2
Joined: 04 Mar 2013, 00:27

missing dates

Post by zzooee » 04 Mar 2013, 00:35

Hi,

When I download the data between 2 dates, why is the date indicated only for the beginning ?

I guess I am supposed to deduce it from the beginning date and the interval. But I can think of scenarios where an automated calculation of the in-between dates is not correct.

Also, does the API extrapolate data when it is missing ? or falls in a gap?

thanks for advice

trosenblatt
Posts: 233
Joined: 18 Sep 2012, 12:18

Re: missing dates

Post by trosenblatt » 04 Mar 2013, 09:47

Hello zzooee,

from dev.netatmo.com :

This allows you to choose the format of the answer.

If you build a mobile app and bandwith usage is an issue, use optimize = true.

Use optimize = false, for an easier parse. In this case, values are indexed by sorted timestamp.

Example of un-optimized response :

{"status": "ok",
"body": {
"1347575400": [18.3,39],
"1347586200": [20.6,48]
},
"time_exec": 0.012136936187744}

If optimize is set, measurements are returned as an array of series of regularly spaced measures. Each series is defined by a beginning time beg_time and a step between measures, step_time:

{"status": "ok",
"body": [
{"beg_time": 1347575400,
"step_time": 10800,
"value":
[[18.3,39],
[ 20.6,48]]
}],
"time_exec": 0.014238119125366}
Default value is true.

Regards,

Thomas.
Thomas Rosenblatt, Netatmo Team.

Post Reply

Return to “Netatmo API”