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

  • Basically if I have input value coming in at .1 but I want to convert this to display as a % (ie: 10%) I don't see a way to do that without making a meta data point and then generating a new value? I crawled the forums but it seems that a simple way to change the way that text is displayed was never implemented. An example is pulling in data from things like the internal mango data, It's not like I can just scale that on my device, and honestly, not sure why I'd want to.

    for display I could do something like

    <ma-get-point-value point-xid="loadAverage" point="loadAverage"></ma-get-point-value>
    {{loadAverage.value*100}}
    

    But that seems cumbersome and doesn't change the fact that now I have to get it back to my charts.

    There has to be an easy way to do this that doesn't involve me writing a script for each point. I see that modbus already has something like this.


  • I've written a component which allows me to convert values and units.
    Alternatively, use the ma-fn component.

    [mangourl]/ui/docs/ng-mango/ma-fn
    Jared has an example here.

    https://forum.infiniteautomation.com/topic/4019/calculating-values-on-the-fly/5

    Fox


  • I agree this is something I have always thought is missing, mind me ive never pushed for it.
    At the moment your choices are either meta points which will make charting the point easier or you can do it on the fly in the front end as MattFox shows.


  • Ok, I'll take a look at those options. Making a meta data point seems like I'm just going to be doubling my points and since this is a point-based license, well...