Please see the snapshot I shared here: https://stackoverflow.com/a/72951088/7745569
The CSV settings in .env
file work without any problem on my side.
ADAPTER_TYPE=csv
#CSV_MODEL_JSON=server/gateways/synthetic-data/device-models.json
#CSV_DEVICE_JSON=server/gateways/synthetic-data/devices.json
#CSV_FOLDER=server/gateways/csv/
CSV_DATA_START=2011-02-01T08:00:00.000Z
CSV_DATA_END=2011-02-20T13:51:10.511Z
#CSV_DELIMITER="\t"
#CSV_LINE_BREAK="\n"
#CSV_TIMESTAMP_COLUMN="time"
#CSV_FILE_EXTENSION=".csv"
To make the app work with more sensors, you must add individual CVS files named with the device ids of devices.json to server/gateways/csv
. For example, the Hyperion-1.csv
is for the below device.
{
"id": "Hyperion-1",
"name": "Conference 103",
"position": {
"x": "26",
"y": " -63",
"z": " -9.6"
},
"lastActivityTime": "2020-10-15T02:43:06.4432973Z"
},
For Hyperion-24
, you must have a CSV file named as Hyperion-24.csv
under server/gateways/csv
.