• 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

    Interval Logging of Meta Point Not Working

    User help
    2
    6
    1.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.
    • J
      jeon
      last edited by

      We've set interval logging to every minute, however all data points seem to be logged.
      When exporting chart data or viewing the chart there seems to be a point logged on every context update.
      What we would like is one point every minute that is the average / max of all of the context update values.
      What are we doing wrong here?

      Cheers.

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

        Hi jeon,

        Can you post the script body of your meta point or share its JSON export? Are you doing history generation, or is this on an active meta point?

        Edit: It was suggested to me that you may be using a rollup to view the chart. Can you check that? The rollup will appear to have data for every interval of the rollup.

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

          Hi phildunlap,

          The JSON for the point is as below:

          {
             "dataPoints":[
                {
                   "xid":"DP_015105",
                   "name":"Customer - W",
                   "enabled":true,
                   "loggingType":"INTERVAL",
                   "intervalLoggingPeriodType":"MINUTES",
                   "intervalLoggingType":"INSTANT",
                   "purgeType":"YEARS",
                   "pointLocator":{
                      "dataType":"NUMERIC",
                      "updateEvent":"CONTEXT_UPDATE",
                      "context":[
                         {
                            "varName":"pv",
                            "dataPointXid":"DP_732541",
                            "updateContext":true
                         },
                         {
                            "varName":"batt",
                            "dataPointXid":"DP_670549",
                            "updateContext":true
                         }
                      ],
                      "logLevel":"NONE",
                      "executionDelaySeconds":0,
                      "script":"return pv.value + batt.value;",
                      "scriptPermissions":{
                         "customPermissions":"",
                         "dataPointReadPermissions":"superadmin",
                         "dataPointSetPermissions":"superadmin",
                         "dataSourcePermissions":"superadmin"
                      },
                      "settable":false,
                      "updateCronPattern":""
                   },
                   "eventDetectors":[
                   ],
                   "plotType":"SPLINE",
                   "unit":"W",
                   "chartColour":"black",
                   "chartRenderer":{
                      "type":"IMAGE",
                      "timePeriodType":"DAYS",
                      "numberOfPeriods":1
                   },
                   "dataSourceXid":"DS_458140",
                   "defaultCacheSize":1,
                   "deviceName":"Meta",
                   "discardExtremeValues":true,
                   "discardHighLimit":20000.0,
                   "discardLowLimit":-20000.0,
                   "intervalLoggingPeriod":1,
                   "intervalLoggingSampleWindowSize":0,
                   "overrideIntervalLoggingSamples":false,
                   "purgeOverride":false,
                   "purgePeriod":1,
                   "readPermission":"",
                   "setPermission":"",
                   "textRenderer":{
                      "type":"ANALOG",
                      "useUnitAsSuffix":true,
                      "unit":"W",
                      "renderedUnit":"W",
                      "format":"0.00"
                   },
                   "tolerance":0.0
                }
             ]
          }
          

          It is an active meta point.

          I am not using a rollup, I am just viewing the point details chart and using its download chart data function.

          Cheers.

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

            Hi Jeon,

            I still find myself wondering if you're using a rollup, nothing in that configuration would circumvent interval logging. Can you post a screenshot of the page you're talking about, and, if it's the new data point details page, can you expand the header bar to include your date options in the screenshot?

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

              Hi phildunlap,

              I've just realised I left out a key piece of information here.
              The data is being published to a mango server using Mango Persistent TCP.
              I have since noticed that the publisher's Update event was set to All! I have now corrected this to Logged data and the points on the server are now correct.
              Thanks for the assistance.

              Jeon

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

                Aha! Certianly! Thanks for sharing the resolution.

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