MangoES Data Points (7/28/2015)

Today we fixed the data point issue on the new MangoES system.
Because the new mango used a completely new API, we had to find out how to get the data again
We started by by looking at the example code for a simple text display.
This uses a new format of importing the Jquery and MangoAPI library, and runs the new code inside that declaration.
The function call has also changed in accordance with the new API.
I then added my own inputs parameters, converted it into a function, and parsed the text.
Here is the output.
Once this was fixed, I tried to see if I could access the public dashboard without logging in, as it is inside the public-dashboards folder and it uses the new mango API.
It did not work.
I then integrated this function into my old interactive map, so that I would be able to query data on the new mango, as my old code no longer worked.
I started by declaring the query function inside the import declaration.
I then queried all of the sensors inside the declaration loop.
Outside of the loop however, I declared my hover functions.
Once I figured out that it only worked this way, I saved it to:http://10.14.88.72/public-dashboards/index.shtm and it all worked perfectly with the test data point!
Our next steps are to create a new graphing utility with the new API, and put all of our data points into the Mango system with the correct XIDs.

Comments