Sensors & Virtual Sensors

Connect sensor: POST /sensors/{id}/sensors

This method connects a sensor to the sensor selected with . The type of the selected sensor will be automatically set to 2 (virtual sensor).

URLhttps://api.sense-os.nl/sensors/{id}/sensors
MethodPOST
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Request Body

{
    "sensor": {
        "id": "2"
    }
}

List connected sensors: GET /sensors/{id}/sensors

This method returns a list of sensors that the sensor uses.

URLhttps://api.sense-os.nl/sensors/{id}/sensors
MethodGET
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Remove the connected sensor: DELETE /sensors/{id}/sensors/{sensor_id}

This method removes a sensor from the parent sensor. If the parent sensor does not have any sensors that it uses, its type will automatically be set to 0. If this parent sensor is also a service, then the connected sensor will also be disconnected from the service.

URLhttps://api.sense-os.nl/sensors/{id}/sensors/{sensor_id}
MethodDELETE
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Remove the connected sensor: DELETE /sensors/{id}/services/{sensor_id}

This method removes a sensor from the service.

URLhttps://api.sense-os.nl/sensors/{id}/services/{sensor_id}
MethodDELETE
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType