getMin()

Returns the minimum value in an Observation's buffer.

This function is available in firmware 3.1.0+.

Parameters

ParameterTypeRequiredDescription
obs_name StringYesThe name of the Observation from which to get the minimum value from the buffer.
windows_time_size IntegerNoThe time window, in seconds, is the time from which to begin analyzing the data.

Returns

The resulting data will be a scalar, or null of the buffer is empty.

Example

Request

var result = Observation.getMax('light', 10);

Response

900