MangoES Data Points (7/27/2015)

Today we worked on the data points on the new MangoES device.
However, it would not show up when we went to the IP address.
We knew it was not a problem with the browser or the device, as the connection is refused, not failed.
We eventually fixed it with
cd /opt/mango/bin
sudo ./ma start
However, the mango would still die after a while.
We then looked at the warnings right before we reset it.
Apperently the excelreports module was causing the problem, so we disabled it.
After this, we realized that we are creating a public dashboard, not a private dashboard, as we do not want end users to log in to the actual system.
We copied over the files and changed the appropriate links, and the restAPI worked perfectly on the old 52 machine.
However, it still required a user to login , and it directed the user to login.shtm if the right cookies did not exist.
We then found a autologin script, made by the Mango developers, so we included it in.
However, it did not work.
We then figured out that their example was outdated, and we had to change the reference filepath.
It still did not work.
We then looked through the public-dashboards examples to see if there was a different API we needed to use.
However, all the public examples were login pages except for rawXhr: http://10.14.88.72/public-dashboards/rawXhr.htm
But this did not work:
We know that it is not an issue with reading the virtual data point "voltage", as the private dashboards examples work with it fine.
We also tested this public dashboard on 52 and 33, and none of them work.
Here is the console log:
This one, which requires a login, works.

Comments