• 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

    mapping values to something meaningful

    Dashboard Designer & Custom AngularJS Pages
    2
    3
    1.5k
    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.
    • S
      shaun
      last edited by

      Hi Guys,

      I'm using the Admin Template for my dashboard. I have a few values coming in that are numeric that mean different things.

      What is the best way for me to translate these whole numbers into something?

      Ideally it'd be great if I could define a translation map or table or something and then reference that?

      for context, I've got data coming from a UPS and the number represents the power source:
      1 - "main input"
      2 - "bypass input"
      3 - "battery"

      I've had a look through the docs and couldn't find anything that jumped out at me as a solution to this.

      Cheers!

      1 Reply Last reply Reply Quote 0
      • M
        mihairosu
        last edited by

        I do all our translations within the data point.

        If the point has multiple values you can create a new template and do add Text Render Properties to it.

        In the image below, this point can have multiple values and the values mean different things:

        0_1476158397575_text render.png

        Here's a binary point render:

        0_1476158555877_render binary.png

        S 1 Reply Last reply Reply Quote 0
        • S
          shaun @mihairosu
          last edited by

          @mihairosu Thanks very much! This is exactly what I need.

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