• 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

    Graphical View - using sensor data in HTML component

    User help
    2
    5
    3.0k
    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.
    • R
      rcopeland
      last edited by

      Hello,

      I am currently assembling a system where a variety of sensors are connected to mango. I was wondering if using the HTML component, there is a way to insert data coming from a point data source.

      For example, I have a sensor that gives color data in R, G, B format, and I would like to be able to write HTML where the background of a table is the same color as what the sensor is picking up.

      To do this I would need to be able to write inside the HTML:

      
      <table bgcolor="rgb(RED_DATA_POINT, BLUE_DATA_POINT, GREEN_DATA_POINT)" border="1"><tr>
      <td>Sensor Color</td>
      </tr></table>
      
      

      Any ideas would be appreciated. Basically I would like to extract the data from data points and use them in a varieity of ways in the graphical views.

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • Z
        zumiani
        last edited by

        You have to use Server Script and return HTML formatted code.

        http://mango.serotoninsoftware.com/forum/posts/list/596.page

        1 Reply Last reply Reply Quote 0
        • R
          rcopeland
          last edited by

          Thanks, this is what I was looking for.

          Is it possible to get the data/value of more than one point in a single script?

          1 Reply Last reply Reply Quote 0
          • R
            rcopeland
            last edited by

            Answered my own question by using a meta data source.

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