Upload data in an automated manner

Hi Edge Impulse team,

I have quite a lot of .json files as raw data which I want to upload (which would take manually quite some time). Is there a way to do this automated (e. g. with REST API)?

Regards

Lukas

Yes, see https://docs.edgeimpulse.com/reference#ingestion-api

(Or use the --concurrency flag on the uploader CLI tool).

1 Like

thanks for the hint. I think I still have some issue with data format.

{
“payload”: {
“device_name”: “00:01”,
“device_type”: “DATA_FORWARDER”,
“interval_ms”: 10000,
“sensors”: [
{
“name”: “temp”,
“units”: “N/A”
}
],
“values”: [
[
0,
0,
0,
0,
0
],
[
0.0,
27.0,
20.942,
20.942,
0.0
]
]
},
“protected”: {
“alg”: “HS256”,
“iat”: 1610145742,
“ver”: “v1”
},
“signature”: “5f3fab2f0daa0671ffa127c1f1f3dd215bdd2f9b1c237571bc225d024a379d3b”
}

Note, I have a time series where i measure 5 magnitudes per timestep.

how do I have to adapt in order to get it working

The length of the values array (the inner part) needs to match the ‘sensors’. So in this case you need to define 5 sensors.

1 Like