Graphical View - using sensor data in HTML component
-
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.
-
You have to use Server Script and return HTML formatted code.
http://mango.serotoninsoftware.com/forum/posts/list/596.page
-
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?
-
Answered my own question by using a meta data source.