Bulk configuration of devices/datapoints
-
In my use case, my devices have about 5 or 7 associated datapoints and also entries in point hierarchy/watchlist are needed in order to be select device related/grouped points from a watchlist.
I have configured a couple of devices manually, but I am going to need to add up to 100 or somewhere in that magnitude. It will be way too cumbersome to do that manually.
I tried to find a topic on the forum on how to do this. The closest I found was a link to this topic:
https://forum.infiniteautomation.com/topic/3708/a-script-jsonemport-example
I suppose I should be able to figure it out eventually this way. At the same time, I was thinking that this is a quite basic textbook sort of configuration structure I have, and I can't be the first. So I was hoping maybe a bulk device/datapoints config script already exists that I can modify for my purposes?
-
Easiest way to create a heap of data points would be to use the CSV upload on the "Bulk data point edit" page.
-
Here's a somewhat old, somewhat sanitized version of a python script which I believe had the purpose of adding some number of data points to many existing data sources and also update the hierarchy and the watchlist. It may help. or it may confuse! https://github.com/infiniteautomation/ma-devtools/blob/master/PythonUtilities/Modification/addPointsAndUpdate.py
As Jared suggests it may be more straightforward to use the latest tools.
There were some older attempts to solve the problem like the template configuration module, which are still around and functional: https://forum.infiniteautomation.com/topic/1520/new-template-configuration-tool https://forum.infiniteautomation.com/topic/3216/template-import-json-markup-example
-
Thanks, I will take a look at these options.