Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    • 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 4 Documentation Website Mango 5 Documentation Website Radix IoT LinkedIn

    Http JSON Receiver Datasource

    Scheduled Pinned Locked Moved User help
    5 Posts 3 Posters 1.1k Views 3 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post