interface DeviceChunkParams {
    chunkID: string;
    deviceID: string;
    file_address: string;
    headers: boolean;
}

Properties

chunkID: string
deviceID: string
file_address: string

The file address is the string template used to compose, the chunk's file path on TagoIO Files.

You can use the keys $DEVICE$, $CHUNK$, $FROM$ and $TO$ that will be automatically replaced when building the path.

$DEVICE$ - Device ID

$CHUNK$ - Chunk ID

$FROM$ - The chunk from date (ex: 2022-05-1)

$TO$ - The chunk to date (ex: 2022-05-2)

Example

/devices/$DEVICE$/$FROM$_$TO$
headers: boolean

Enable headers to the CSV-generated files. Headers will describe the variable's data in each column.