v1

latestOpenAPI 3.0.22026-07-26114338.4 KB
Current Conditions & Observations

Device

<hr></hr>
get/observations/device/{device_id}

Path parameters

device_idinteger required

ID of device

Query parameters

day_offsetinteger

TIME FILTER - Get an entire day of observations by UTC day offset. 0 - Current day UTC 1 - Yesterday UTC

time_startinteger

TIME FILTER - Time range start time epoch seconds UTC. Observation data at a one minute time resolution is available for a time range that is five days or less. You also need to send "time_end". This field pair is optional. If the request does not contain any time filters only the latest observation will be returned.

time_endinteger

TIME FILTER - Time range start time epoch seconds UTC. Observation data at a one minute time resolution is available for a time range that is five days or less. You also need to send "time_start". This field pair is optional. If the request does not contain any time filters only the latest observation will be returned.

format'csv'

Use format=csv to return a CSV response type.

Response

Successful operation

device_idinteger
typestring

Device type.

sourcestring
obsnumber[]

List of observations, determined by the type field. The order of each array is shown in the table on this page.

Example response

{
  "status": {
    "status_message": "Success"
  },
  "device_id": 60526,
  "type": "obs_st",
  "source": "cache",
  "summary": {
    "pressure_trend": "steady"
  }
}