• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Automate Template Configuration Import

    Scripting general Discussion
    3
    6
    3.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dmsmith
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        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.

        jeremyhJ D 2 Replies Last reply Reply Quote 0
        • jeremyhJ
          jeremyh @phildunlap
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            I emailed it to you, Jeremy. Have fun!

            1 Reply Last reply Reply Quote 0
            • D
              dmsmith @phildunlap
              last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by

                sent

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post