In this article, we’ll learn how to set up a dashboard where you can upload a bulk of csv files to create several devices at once.
By following all the steps in this article, you’ll end up with:
For this article, we’ll need one device to store our data.
To create a device, you need to go to https://admin.tago.io/devices
To get this analysis, go to: http://admin.tago.io/template/5d4c9399de7f46001bfc70cb
The only thing we need to do here is set up the Environment variable.
You can get the dashboard that we’ll use by clicking here.
You’ll select the device that we created when asked for it.
After selecting the device, you will be redirected to the dashboard.
Next thing we need to do for the dashboard to work as expected is to set which analysis the input widget must trigger when we press the button Create devices.
In order to do that, click on the three dots of the widget to edit its properties.
Then go to User Control and change the Run Analysis to run the analysis we created earlier.
The dashboard has a link for you to download the example.csv file any time you need.
This is a very simple CSV file containing the:
The dashboard itself has some instructions on how to get the network and connector ID. Those are both required features for you to create your devices from the CSV.
This also means that you can only create a list of one type of device at a time.
In other words, if you want to create both HTTP and MQTT devices, you will need to have one CSV file for each type and get the network and connector ID for each.
Once it’s done, you can just press Create Devices and check for any error that the widget returns as feedback to you.