Discover Properties

# Get the token from your Oceans 3.0 profile page
from onc import ONC

onc = ONC("YOUR_TOKEN")

/properties

Get all properties

onc.getProperties()

Get the property information for a specific property code

Return the property for the propertyCodeseawatertemperature”.

params = {
    "propertyCode": "seawatertemperature",
}
onc.getProperties(params)

Get all properties which have a certain word in the property name

Return all properties which have “pressure” in the name.

params = {
    "propertyName": "pressure",
}
onc.getProperties(params)

Get all of the properties that are available at a specific location

Return all properties that are available at the location with the locationCodeBACAX” (“Barkley Canyon Axis ( POD1)”).

params = {
    "locationCode": "BACAX",
}
onc.getProperties(params)

Get all properties that are available for specific device

Return all properties available for a device with the deviceCodeNORTEKAQDPRO8398”.

params = {
    "deviceCode": "NORTEKAQDPRO8398",
}
onc.getProperties(params)

Get all properties that are available for a specific device category

Return all properties which are available for the device category “ADCP150KHZ”.

params = {
    "deviceCategoryCode": "ADCP150KHZ",
}
onc.getDeviceCategories(params)