• 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

    Text file data point

    How-To
    5
    10
    6.1k
    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.
    • P
      profnova
      last edited by

      Hi,

      is it possible somehow to create a texte file (csv for example) as
      data source? Can someone give me ideas? Thanks...

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        Currently, no. But it is something that is being considered. You'd just want to be able to do a browse/upload of a file?

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • M
          mkhadem
          last edited by

          Hi,

          I need this functinality too. I like to setup a schedule for example every five minutes read the file (CSV format) from ftp server and link each value to a data point. Your help is appreciated.
          Similar to SQL data sources

          Thanks
          Mo

          1 Reply Last reply Reply Quote 0
          • O
            oja
            last edited by

            Maybe the way exists.

            You can use Javascript with imported FileInputStream and FileOutputStream. Or, you can create JAVA library for CSV file controlling and import to Javascript in datapoint.
            I am using this for serial communication with unsuported protocols etc. Siemens Elan protocol.

            Please, describe your requirements for CSV access.

            Oja

            1 Reply Last reply Reply Quote 0
            • M
              mkhadem
              last edited by

              Hi,

              I can use the event handler and choose the type as Process and run the script (e.g. JavaScript) to read the CSV file and write it into a database (Derby, MySQL, etc).

              The rest is easy to setup a SQL data source and map the table columns into data points. I appreciate if you can suggest an effective way to write the script to read the file and write it into DB.

              Thanks
              Mo

              1 Reply Last reply Reply Quote 0
              • M
                mlohbihler
                last edited by

                The most effective way would be to create a data source that can read CSV text files, similar to how the point data upload module works in M2M2.

                Best regards,
                Matthew

                1 Reply Last reply Reply Quote 0
                • M
                  mkhadem
                  last edited by

                  Thx Matthew,

                  Is there any plan to integrate it in M2M2?

                  Mo

                  1 Reply Last reply Reply Quote 0
                  • M
                    mlohbihler
                    last edited by

                    You mean in M2M? No, there are no plans to port it over.

                    Best regards,
                    Matthew

                    1 Reply Last reply Reply Quote 0
                    • P
                      pbisiac
                      last edited by

                      @oja said:

                      Maybe the way exists.

                      You can use Javascript with imported FileInputStream and FileOutputStream. Or, you can create JAVA library for CSV file controlling and import to Javascript in datapoint.
                      I am using this for serial communication with unsuported protocols etc. Siemens Elan protocol.

                      Please, describe your requirements for CSV access.

                      Oja
                      Hi, that's exactly what I need
                      I wish to read some datapoints BOTH via Modbus/TCP when my device is online, and to read same datapoints stored locally in devices filesystem and uploaded to my server via some backup connection, in roder not to lose recordings on unreliable networks. Could you please explain better how to implement such a Javascript task and to integrate into Mango, or address me to a working example ?

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