• 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

    Meta Data Point does not work with two context points

    Mango Automation general Discussion
    2
    4
    890
    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.
    • J
      jvaughters
      last edited by jvaughters

      I will start with a simple explanation and add any further detail if needed. I have a Meta Data Source with a point that calculates a very simple difference between two context data points. The script validates during the set up, but the point does not calculate when saved. It works fine if I only use one data point context and a hard number but not two context data points. It does not matter from what other data sources I use, it always fails with two context points. I can have both checked for context, or just one, but still no go. The naming is fine or it wouldn't validate. So I am at a loss with this very simple point.

      Any ideas?

      Any further info needed?

      Thanks in advance.
      PS - I also searched this forum for anything, and did not find much.

      Version is 3.7.x with all updates completed a few days ago.

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        If you can share your script and a JSON export of your Data Point that would be the first step to find out what other questions there might be.

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

          Here is the json.

          {
          "dataPoints":[
          {
          "xid":"DP_0f1ff7a5-96bf-4daa-a8a6-fe14e1afaab4",
          "name":"Delta Upstairs Attic",
          "enabled":true,
          "loggingType":"INTERVAL",
          "intervalLoggingPeriodType":"MINUTES",
          "intervalLoggingType":"AVERAGE",
          "purgeType":"YEARS",
          "pointLocator":{
          "dataType":"NUMERIC",
          "updateEvent":"NONE",
          "contextUpdateEvent":"CONTEXT_UPDATE",
          "context":[
          {
          "varName":"p59",
          "dataPointXid":"DP_937c0338-c38c-45cb-9167-b5fec4e5ce81",
          "updateContext":true
          },
          {
          "varName":"p58",
          "dataPointXid":"DP_a79ff828-72d6-480a-b2fc-6df058f76707",
          "updateContext":false
          }
          ],
          "logLevel":"NONE",
          "variableName":"delta_upstairs_attic",
          "scriptPermissions":[
          "superadmin"
          ],
          "executionDelaySeconds":0,
          "logCount":5,
          "logSize":1.0,
          "script":"var tempvar1 = p59.value;\nvar tempvar2 = p58.value;\nreturn tempvar1 - tempvar2;",
          "settable":false,
          "updateCronPattern":""
          },
          "eventDetectors":[
          ],
          "plotType":"SPLINE",
          "rollup":"NONE",
          "unit":"",
          "simplifyType":"NONE",
          "chartColour":"",
          "chartRenderer":{
          "type":"IMAGE",
          "timePeriodType":"DAYS",
          "numberOfPeriods":1
          },
          "dataSourceXid":"DS_4ddc2b19-9bce-44f9-bf79-812775e6a2da",
          "defaultCacheSize":1,
          "deviceName":"Calcs",
          "discardExtremeValues":true,
          "discardHighLimit":200.0,
          "discardLowLimit":40.0,
          "intervalLoggingPeriod":1,
          "intervalLoggingSampleWindowSize":0,
          "overrideIntervalLoggingSamples":false,
          "preventSetExtremeValues":false,
          "purgeOverride":false,
          "purgePeriod":1,
          "readPermission":"superadmin, user",
          "setExtremeHighLimit":1.7976931348623157E308,
          "setExtremeLowLimit":-1.7976931348623157E308,
          "setPermission":"superadmin, user",
          "tags":{
          },
          "textRenderer":{
          "type":"ANALOG",
          "useUnitAsSuffix":false,
          "suffix":"",
          "format":"0.00"
          },
          "tolerance":0.0
          }
          ]
          }

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

            Joel,

            I am embarrassed, but you helped me find it with the json. I did not realize I had limits set on the discard values. I new it was something simple. Problem solved. I must have copied this point.

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