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

Can meta (calculated) data points work for "synchronized" data


  • I'm running mango 3.5.6

    I have been working on getting meta (calculated) data points (those under a meta data source) working under non-ideal conditions. I have success in using the CONTEXT to determine the timestamp of the update that triggered the script, then using this to look up the value of all points to calculate and setting it as the timestamp of the value being calculated.

    See https://forum.infiniteautomation.com/topic/3632/can-one-tell-which-point-has-triggered-the-context-update/9

    This works for quite well, as long as the publisher is able to buffer the data through any communication delays.
    However, if the data is missed and later is updated by a Synchronize, it appears that the meta point script is NOT triggered. I am aware that it's possible to perform a "Generate History" on the meta data source to calculate values for data that has come through on a synchronize.

    Can you please tell me if there have been any changes in this area in v3.6, or is there a simple way of automating history generation to trigger after data is synchronized?


  • Hi Andrew

    I have run into the same issue before, unfortunately, there is no easy way to trigger the generated history. The generate history can be triggered by via the rest API, so you could create a script that monitors the mango PTCP data source, stores the timestamp when it disconnects, then when reconnected, do an API request to start the generate history with the saved time stamp and the reconnected time stamp.
    I did not have to go this far when I ran into this issue so I have not attempted the script yet.