• 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

    Http JSON Receiver Datasource

    User help
    3
    5
    564
    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.
    • M
      Malaguena
      last edited by

      Hi All,

      We need to create an HTTP JSON endpoint for JSON data which will be posted by another system. The example data is shown below and we will get "isAlarm" value for each alarm of each device.
      For this purpose, we are planning to use HTTP JSON Receiver data source. Can we use this data source to create an endpoint? What is your suggestion?

      We could not found proper documentation for Http JSON Receiver Datasource and datapoint. Can you please show us how to create Http JSON Receiver Datasource and datapoint?

      Data Example:
      {
      "lastUpdate": "2020-08-05T13:53:22.2211582+03:00",
      "devices": [
      {
      "deviceId": 1306,
      "deviceName": "GBZ_SOL4_4.17_K",
      "room": "SOL-4",
      "row": "4.Sıra",
      "rack": "17.Kabinet",
      "isEnabled": true,
      "isDisconnected": false,
      "deviceModel": "ExagatePDU",
      "tags": [
      {
      "tagId": 20987,
      "tagName": "Voltage",
      "unit": "V",
      "readDate": "2020-08-05T18:32:04",
      "readValue": 229.07001,
      "isCritical": false,
      "isAlarm": false
      },
      {
      "tagId": 20356,
      "tagName": "Current",
      "unit": "A",
      "readDate": "2020-08-05T18:33:24",
      "readValue": 0.42,
      "isCritical": false,
      "isAlarm": false
      },
      {
      "tagId": 21342,
      "tagName": "P",
      "unit": "kW",
      "readDate": "2020-08-05T18:33:35",
      "readValue": 0.174,
      "isCritical": false,
      "isAlarm": false
      }
      ]
      }
      ]
      }

      Thanks in advance,

      1 Reply Last reply Reply Quote 1
      • CraigWebC
        CraigWeb
        last edited by

        Hi Nur

        The HTTP JSON receiver will listen for incoming HTTP post messages. By looking at the data example this is what I would try:
        0_1597214513142_Screenshot 2020-08-12 at 08.41.36.png

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

          Hi Craig,

          What should we do if the index is changing in every Http post?
          For example, "deviceId" may not come in the same index every time.

          Thanks,

          1 Reply Last reply Reply Quote 0
          • CraigWebC
            CraigWeb
            last edited by

            Nurr,
            If that is the case the data schema would exceed the flexibility of the data source.

            1 Reply Last reply Reply Quote 0
            • J
              jmatesanz
              last edited by

              I'm working around this problem @Nurr commented.
              There is an alternative in mango to this issue? If the index is changing in every Http post?

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