API

PUT /api/v1/can/connect

Can Connect

Connect to a CAN network

If no network is given, the default network is used (or else the first network that was found).

With multi STU support the network becomes another unit. Connecting to a network that is a unit already, connects it again. The other units are not changed.

Status Codes:
PUT /api/v1/can/disconnect

Can Disconnect

Disconnect from the CAN network

With multi STU support only the given unit (the name of the unit is the interface:channel of its network) is disconnected. Without a unit all units are disconnected.

Query Parameters:
  • unit ({'null', 'string'})

Status Codes:
GET /api/v1/can/networks

Can Networks

Search for available CAN networks

Status Codes:
  • 200 OK – Successful Response

GET /api/v1/can/units

Can Units

Get the units: the connected CAN networks with their STUs

Without multi STU support there is at most one unit. With it every connected network is a unit, and measurements use all of them.

Status Codes:
  • 200 OK – Successful Response

GET /api/v1/cloud

Get Cloud Files

Get files from cloud

Status Codes:
  • 200 OK – Successful Response

POST /api/v1/cloud/authenticate

Authenticate

Authenticate to cloud storage

Status Codes:
  • 200 OK – Successful Response

POST /api/v1/cloud/update

Update File

Update file in cloud storage

Status Codes:
POST /api/v1/cloud/upload

Upload File

Upload file to cloud storage

Status Codes:
GET /api/v1/config/backup

Get Config Backups

Get configuration backup files

Status Codes:
POST /api/v1/config/dataspace

Upload Dataspace File

Upload dataspace configuration file

Status Codes:
GET /api/v1/config/meta

Get Metadata File

Get metadata file information

Status Codes:
  • 200 OK – File was found and returned.

  • 404 Not Found – File not found. Check your measurement directory.

POST /api/v1/config/meta

Upload Metadata File

Upload YAML metadata file

Status Codes:
PUT /api/v1/config/restore

Restore Config File

Restore configuration file from backup

Status Codes:
GET /api/v1/config/sensors

Get Sensors File

Get sensor configuration file information

Status Codes:
  • 200 OK – File was found and returned.

  • 404 Not Found – File not found. Check your measurement directory.

POST /api/v1/config/sensors

Upload Sensors File

Upload sensor configuration file

Status Codes:
GET /api/v1/files

List Files And Capacity

Get file list and storage capacity information

Status Codes:
  • 200 OK – Successful Response

POST /api/v1/files/analyze

Post Analyzed File

Upload file for analysis

Status Codes:
GET /api/v1/files/analyze/meta/{name}

Get File Meta

Get measurement file metadata

Parameters:
  • name (string)

Query Parameters:
  • source ({'null', 'string'}) – Name of the source (STU/STH combination) of the data. A file with more than one source needs it (see sources of the metadata), a file with a single source does not.

Status Codes:
GET /api/v1/files/analyze/{name}

Get Analyzed File

Analyze measurement file

Parameters:
  • name (string)

Query Parameters:
  • source ({'null', 'string'}) – Name of the source (STU/STH combination) of the data. A file with more than one source needs it (see sources of the metadata), a file with a single source does not.

  • max_rows (integer) – Approximate maximum number of rows to send (per source). Larger data is reduced, but keeps the peaks (minimum and maximum of every part of the data)

Status Codes:
DELETE /api/v1/files/post_meta/{name}

Delete Post Meta

Delete post metadata from measurement file, if any exists

Parameters:
  • name (string)

Status Codes:
POST /api/v1/files/post_meta/{name}

Overwrite Post Meta

Add or overwrite post metadata in measurement file

This also works for files that do not have any post metadata yet, and for a metadata.profile that differs from whatever profile the file previously had (any picture arrays belonging to the old metadata are removed first).

Parameters:
  • name (string)

Status Codes:
DELETE /api/v1/files/pre_meta/{name}

Delete Pre Meta

Delete pre metadata from measurement file, if any exists

Parameters:
  • name (string)

Status Codes:
POST /api/v1/files/pre_meta/{name}

Overwrite Pre Meta

Add or overwrite pre metadata in measurement file

This also works for files that do not have any pre metadata yet, and for a metadata.profile that differs from whatever profile the file previously had (any picture arrays belonging to the old metadata are removed first).

Parameters:
  • name (string)

Status Codes:
DELETE /api/v1/files/{name}

Delete File

Delete measurement file

Parameters:
  • name (string)

Status Codes:
GET /api/v1/files/{name}

Download File

Download measurement files

Parameters:
  • name (string)

Status Codes:
POST /api/v1/files/{name}/embedded

Upload Embedded File

Append uploaded files below the embedded_files group

Parameters:
  • name (string)

Status Codes:
DELETE /api/v1/files/{name}/embedded/{dataset_name}

Delete Embedded File

Delete an embedded file from an HDF5 file

Parameters:
  • name (string)

  • dataset_name (string)

Status Codes:
GET /api/v1/files/{name}/embedded/{dataset_name}

Download Embedded File

Download an embedded file from an HDF5 file

Parameters:
  • name (string)

  • dataset_name (string)

Status Codes:
GET /api/v1/logs

List Logs

List log files

Status Codes:
  • 200 OK – Successful Response

GET /api/v1/logs/all

Download Logs Zip

Download log files as zipped file

Query Parameters:
  • include_system_info (boolean)

Status Codes:
GET /api/v1/logs/download/{file}

Download Log File

Download log file

Parameters:
  • file (string)

Status Codes:
GET /api/v1/logs/view

View Log File

View log file

Query Parameters:
  • file (string) – (Required)

  • limit (integer)

Status Codes:
GET /api/v1/measurement

Measurement Status

Get measurement status

Status Codes:
  • 200 OK – Successful Response

POST /api/v1/measurement/execute

Execute Measurement

Connect, configure and start a measurement in one call, for headless orchestration.

All-or-nothing: on any failure, the STH is disconnected rather than left connected with a half-applied configuration. Idempotent with respect to an already-connected STH at the requested MAC address - the existing connection is reused rather than being torn down and re-established.

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
GET /api/v1/measurement/preflight

Preflight

Check if all units are ready for a measurement

Without multi STU support the only unit is checked. Nothing is changed: The configuration of the measurement is not written to the sensor devices. The check made by /start also does that and checks that the configuration was applied.

The answer lists every unit with its problems (if there are any), its sensor device, the connection quality and the load of its CAN bus.

Status Codes:
POST /api/v1/measurement/start

Start Measurement

Start measurement

With multi STU support all units measure (see GET /measurement/preflight and unit_mac_addresses). If one unit is not ready, nothing is started.

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
POST /api/v1/measurement/stop

Stop Measurement

Stop measurement

Status Codes:
PUT /api/v1/reset-can

Reset Can

Reset CAN connection

Disconnects and searches for CAN networks again. The API reconnects to the network it was connected to before, if that network is still available. If it was not connected, it only reconnects if autoconnect is enabled.

Status Codes:
  • 200 OK – Successful Response

  • 409 Conflict – Not possible while a measurement is running.

GET /api/v1/sensor

Query Sensors

Get available sensors

Status Codes:
  • 200 OK – Successful Response

GET /api/v1/state

State

Get system state

Status Codes:
  • 200 OK – Successful Response

GET /api/v1/sth

Sth

Get a list of available sensor devices

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
PUT /api/v1/sth/connect

Sth Connect

Connect to sensor node

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
PUT /api/v1/sth/disconnect

Sth Disconnect

Disconnect from sensor node

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
GET /api/v1/sth/read-adc

Read Adc

Read ADC configuration

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
PUT /api/v1/sth/rename

Sth Rename

Rename sensor node

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
GET /api/v1/sth/supply-voltage

Get Supply Voltage

Get supply voltage of connected STH.

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
PUT /api/v1/sth/write-adc

Write Adc

Write ADC configuration

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
GET /api/v1/stu

Stu

Get available STU

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
GET /api/v1/stu/connected

Stu Connected

Check if the STU is connected to a sensor device

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes:
PUT /api/v1/stu/reset

Stu Reset

Reset STU

Query Parameters:
  • unit ({'null', 'string'}) – Name of the unit (interface:channel of its CAN network) the request is for. Only needed with multi STU support, otherwise the first unit is used.

Status Codes: