Smart Mooring Sensor Data
The /sensor-data url communicates data collected from a deployed Spotter's Smart Mooring sensors within a given date-time window.
Last updated
The /sensor-data url communicates data collected from a deployed Spotter's Smart Mooring sensors within a given date-time window.
Last updated
GET
https://api.sofarocean.com/api/sensor-data?spotterId=:spotterId&startDate=:startDate&endDate=:endDate
Returns Smart Mooring sensor data for the corresponding spotterId
between startDate
and endDate
.
Name | Type | Description |
---|---|---|
Note: If neither startDate
nor endDate
are specified, startDate
will default to 24 hours ago.
To learn more about the sensors and the measured data please review our Sensor Payload support document.
The /sensor-data
response format consists of a “flat” (uncategorized) data stream ordered by timestamp.
The sensorPosition
property represents the physical position of a sensor in the Smart Mooring relative to Spotter. Sensor position 1 is closest to Spotter.
The data_type_name
property represents the type of information being sent by a sensor, as ingested by the API.
The timestamp
field in a /sensor-data
response is an ISO8061-formatted string, which indicates the end of a sample collection period. Timestamps within this data format, while ordered, are not necessarily unique. Two or more sensors may send different values with identical timestamps (e.g. a temperature sensor and a pressure sensor which both emit data on the same time interval).
units
indicates the physical units or dimension of the data, while unit_type
adds a more contextual description of what is physically being measured.
The location data in each sample dict is the location of the Spotter when the report was encoded and transmitted. If the Spotter is configured to send multiple sample periods in a single transmission (eg to save on data telemetry costs) all samples in the report will have the same location data.
spotterId
string
SpotterId of the device to retrieve data for.
startDate
string
ISO8601-formatted timestamp string indicating start date for data inclusion.
Example: 2021-01-01T07:00:00Z
endDate
string
ISO8601-formatted timestamp string indicating end date for data inclusion.
Example: 2021-01-02T07:00:00Z