Discover Device Categories

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

onc = ONC("YOUR_TOKEN")

/deviceCategories

Get all device categories

onc.getDeviceCategories()

Get the device category for a specific device category code

Return the device category information for the deviceCategoryCodeADCP150KHZ”.

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

Get all device categories which have a certain word in the name

Return all device categories which have “acoustic” in the name.

params = {
    "deviceCategoryName": "acoustic",
}
onc.getDeviceCategories(params)

Get all device categories which have a certain word in the description

Return all device categories which have “doppler” in the description.

params = {
    "description": "doppler",
}
onc.getDeviceCategories(params)

Get all device categories that are available at a specific location

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

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

Get all the device categories which have devices that have a specific property

Return all device categories which have devices with the propertyCode “salinity”.

params = {
    "propertyCode": "salinity",
}
onc.getDeviceCategories(params)