Exporting logged data


#1

I was just trying to export some logged data from about 5 months ago and was encountered with this error:

“The number of data points you are requesting is too large (over 500). Your widget might be showing truncated or inaccurate data. Please reduce your time range or data sources and try again.”

I believe the data points I’m exporting are less than 500, does this mean I can’t access this logged data or is there some other way to get it ?


#2

@Khan

This just means you need to break up your export into multiple ‘read’ calls. For performance reasons, the widget API will only return a static amount of values. Meaning that if you requested all of the data points for a given dataport over a week, and there were more than 500 points contained in that slice of time, you will receive not all that data you asked for. This is easily remedied by making another call using either the first or last returned datapoint’s timestamp +/- 1. Head or tail, plus or minus, depends on if you asked for ascending or descending order.

Let me know if you have questions about this,
-Martin