Discover Deployments

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

onc = ONC("YOUR_TOKEN")

/deployments

Get all deployments for a specific device code

Return the deployments for the device with the deviceCodeNORTEKAQDPRO8398”.

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

Get all deployments at a specific location

Return all deployments at the location with the locationCodeBACAX”.

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

Get all deployments with a specific device category

Return all deployments with the deviceCategoryCodeADCP2MHZ”.

params = {
    "deviceCategoryCode": "ADCP2MHZ",
}
onc.getDeployments(params)

Get all deployments with a specific property

Return all deployments with instruments that measure the property “oxygen”.

params = {
    "propertyCode": "oxygen",
}
onc.getDeployments(params)

Get all deployments with a specific device category and a specific property

Return all deployments that have devices with the device category “CTD” and property “pressure”.

params = {
    "deviceCategoryCode": "CTD",
    "propertyCode": "pressure",
}
onc.getDeployments(params)

Get all deployments between two dates

Return all deployments between 1 July 2010 and 30 June 2011. Check here for additional information about the supported dates/times format.

params = {
    "dateFrom": "2010-07-01",
    "dateTo": "2011-06-30T23:59:59.999Z",
}
onc.getDeployments(params)

Get all deployments at a specific location, between two dates

Return all deployments between 1 July 2010 and 30 June 2011, at the location with the locationCodeBACAX” (” Barkely Canyon Axis (POD1)”).

params = {
    "locationCode": "BACAX",
    "dateFrom": "2010-07-01",
    "dateTo": "2011-06-30T23:59:59.999Z",
}
onc.getDeployments(params)

Get all deployments at a specific location, between two dates, with a sensor with a specific property code

Return all deployments between 1 July 2010 and 30 June 2011, at the location with the locationCodeBACAX” (” Barkely Canyon Axis (POD1)”), with the propertyCodeseawatertemperature”.

params = {
    "locationCode": "BACAX",
    "propertyCode": "seawatertemperature",
    "dateFrom": "2010-07-01",
    "dateTo": "2011-06-30T23:59:59.999Z",
}
onc.getDeployments(params)