Installation and Configuration – Web Trend
Configuration of OAS Web HMI will not be covered in this document. Once you have a working installation of OAS Web HMI, adding Trend Control configuration is fairly simple. As with OAS Web HMI, the following are required for Trend Control operation:
- jQuery v1.8.3 or later, found at jquery.com and is also distributed with the OAS Web HMI product
- The OAS Web HMI Script Library
- The OAS Web HMI Stylesheet, which is used for styling modal dialogs and can be modified to fit your web design
- A small block of Javascript containing an authentication token and URL location of the Open Automation Software Server
Additionally, if you would like to integrate with the Flot charting library, you will need to download Flot and various plugins. Each example provided in this document will describe the specific Flot plugins required.
The following is an example of a properly configured, minimal HTML page:
<html> <head> <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="js/opc-lib-min.js"></script> <link rel="stylesheet" stype="text/css" href="css/opc-style.css"/> <script type="text/javascript"> OAS_config = { token:'7e61b230-481d-4551-b24b-ba9046e3d8f2', serverURL: 'http://localhost:58725' }; </script> </head> <body> Hello World </body> </html>
Of course, this example does not contain any bindings to OAS Server Tags, but contains all elements necessary to connect to a server located at http://localhost:58725 using an authentication token of7e61b230-481d-4551-b24b-ba9046e3d8f2
.