Automate Template Configuration Import
-
Hi Joel, Support,
In Mango's "Template Configuration Import" function I have created a template with a single global variable (%%text%%) which will create a data sources and multiple data points exactly as I need. I have been trying to find how I can pass this variable to Mango in the simplest possible way in order to have it create a new device configuration with no further manual interaction. Is there a simple GET or POST argument that can be passed to the templateConfig.shtm to provide this value? There's nothing in the Swagger Rest API that seems to address this.
Cheers,
David
-
Hi dmsmith, glad to have escaped quotation marks. :)
At the moment there is nothing in Template Configuration module to enable that, but it seems like it would be fairly simple to add to a URL handler that just builds the context to parse the template out of the request.
There is also a JSON importer that will scan a folder and import any configurations it finds, but I am unsure if we made that available generally or not.
-
@phildunlap said:
Hi dmsmith, glad to have escaped quotation marks. :)
Ha!!
There is also a JSON importer that will scan a folder and import any configurations it finds, but I am unsure if we made that available generally or not.
This is intriguing. I'd probably have a use for that.
-
I emailed it to you, Jeremy. Have fun!
-
@phildunlap said:
Hi dmsmith, glad to have escaped quotation marks. :)
:-D
At the moment there is nothing in Template Configuration module to enable that, but it seems like it would be fairly simple to add to a URL handler that just builds the context to parse the template out of the request.
This would be an excellent addition to the Template Configuration module.
There is also a JSON importer that will scan a folder and import any configurations it finds, but I am unsure if we made that available generally or not.
Short of the above this would be very useful. Could I also grab a copy?
Cheers,
David
-
sent