• 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

    scaling values

    User help
    3
    4
    1.1k
    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.
    • E
      erroom
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        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

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • CraigWebC
          CraigWeb
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • E
            erroom
            last edited by erroom

            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...

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