Reported by rbrewer, Jul 14, 2010
The current WattDepot API allows the retrieval of the latest sensor data for a source. For certain uses, it would be helpful to be able to retrieve the last N sensor data from a Source (such as a realtime line chart). This should be implemented as a "numItems=" parameter to the GET {host}/sources/{source}/sensordata/latest method, and returns the requested number of items. The maximum number of items that can be returned should be fixed at some reasonable value (like 100).
Note that its unclear what the semantics of this are for virtual sources (unlike the basic latest method, which does have a reasonable definition for virtual sources), so just throw an 403.
Sep 3, 2010 rbrewer
Having this functionality not work with virtual sources makes its use problematic for clients, and specifically makes it less useful for Kukui Cup visualizations. Therefore I am deferring the issue.
Reported by rbrewer, Jul 14, 2010 The current WattDepot API allows the retrieval of the latest sensor data for a source. For certain uses, it would be helpful to be able to retrieve the last N sensor data from a Source (such as a realtime line chart). This should be implemented as a "numItems=" parameter to the
GET {host}/sources/{source}/sensordata/latest
method, and returns the requested number of items. The maximum number of items that can be returned should be fixed at some reasonable value (like 100).Note that its unclear what the semantics of this are for virtual sources (unlike the basic latest method, which does have a reasonable definition for virtual sources), so just throw an 403.
Sep 3, 2010 rbrewer Having this functionality not work with virtual sources makes its use problematic for clients, and specifically makes it less useful for Kukui Cup visualizations. Therefore I am deferring the issue.