osnapi/core.py
def addSensor(body:Sensor) -> Sensor:
    """ HTTP: POST
        Note: This function requires previous authentication.

        Input:
            - A Dictionary describing a Sensor you want to add.
        Example:
            {
                'measurandId': 1,
                'unitId': 1,
                'location': {'lat': 1.0, 'lng': 1.0},
                'altitudeAboveGround': 0.0,
                'directionVertical': 0,
                'directionHorizontal': 0,
                'sensorModel': 'test_string',
                'accuracy': 10,
                'attributionText': 'Deutscher Wetterdienst (DWD)',
                'attributionURL': 'ftp://ftp-cdc.dwd.de/pub/CDC/',
                'licenseId': 1
            }

        Output:
            - The newly created Sensor, including its assigned id.
        Example:
            {
                'id' : 66,
                'userId': 2,
                'measurandId': 1,
                'unitId': 1,
                'location': {'lat': 1.0, 'lng': 1.0},
                'altitudeAboveGround': 0.0,
                'directionVertical': 0,
                'directionHorizontal': 0,
                'sensorModel': 'test_string',
                'accuracy': 10,
                'attributionText': 'Deutscher Wetterdienst (DWD)',
                'attributionURL': 'ftp://ftp-cdc.dwd.de/pub/CDC/',
                'licenseId': 1
            }
    """
    query = build_query(target='/sensors/addSensor')
    return send_post(query, body, requires_auth=True)
 HTTP: POST
        Note: This function requires previous authentication.

        Input:
            - A Dictionary describing a Sensor you want to add.
        Example:
            {
                'measurandId': 1,
                'unitId': 1,
                'location': {'lat': 1.0, 'lng': 1.0},
                'altitudeAboveGround': 0.0,
                'directionVertical': 0,
                'directionHorizontal': 0,
                'sensorModel': 'test_string',
                'accuracy': 10,
                'attributionText': 'Deutscher Wetterdienst (DWD)',
                'attributionURL': 'ftp://ftp-cdc.dwd.de/pub/CDC/',
                'licenseId': 1
            }

        Output:
            - The newly created Sensor, including its assigned id.
        Example:
            {
                'id' : 66,
                'userId': 2,
                'measurandId': 1,
                'unitId': 1,
                'location': {'lat': 1.0, 'lng': 1.0},
                'altitudeAboveGround': 0.0,
                'directionVertical': 0,
                'directionHorizontal': 0,
                'sensorModel': 'test_string',
                'accuracy': 10,
                'attributionText': 'Deutscher Wetterdienst (DWD)',
                'attributionURL': 'ftp://ftp-cdc.dwd.de/pub/CDC/',
                'licenseId': 1
            }
    
POST
Note: This function requires previous authentication.

A Dictionary describing a Sensor you want to add.
POST Note : This function requires previous authentication . A Dictionary describing a Sensor you want to add .
def addSensor(body:Sensor) -> Sensor:
    query = build_query(target='/sensors/addSensor')
    return send_post(query, body, requires_auth=True)
def addSensor ( body : Sensor ) -> Sensor : query = build_query ( target = '/sensors/addSensor' ) return send_post ( query , body , requires_auth = True )
HTTP: POST
Note: This function requires previous authentication.
HTTP : POST Note : This function requires previous authentication .
""" HTTP: POST
        Note: This function requires previous authentication.

        Input:
            - A Dictionary describing a Sensor you want to add.
        Example:
            {
                'measurandId': 1,
                'unitId': 1,
                'location': {'lat': 1.0, 'lng': 1.0},
                'altitudeAboveGround': 0.0,
                'directionVertical': 0,
                'directionHorizontal': 0,
                'sensorModel': 'test_string',
                'accuracy': 10,
                'attributionText': 'Deutscher Wetterdienst (DWD)',
                'attributionURL': 'ftp://ftp-cdc.dwd.de/pub/CDC/',
                'licenseId': 1
            }

        Output:
            - The newly created Sensor, including its assigned id.
        Example:
            {
                'id' : 66,
                'userId': 2,
                'measurandId': 1,
                'unitId': 1,
                'location': {'lat': 1.0, 'lng': 1.0},
                'altitudeAboveGround': 0.0,
                'directionVertical': 0,
                'directionHorizontal': 0,
                'sensorModel': 'test_string',
                'accuracy': 10,
                'attributionText': 'Deutscher Wetterdienst (DWD)',
                'attributionURL': 'ftp://ftp-cdc.dwd.de/pub/CDC/',
                'licenseId': 1
            }
    """
body
Sensor
examples
None