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.
Interval Logging of Meta Point Not Working
-
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.
-
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.
-
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.
-
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?
-
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
-
Aha! Certianly! Thanks for sharing the resolution.