This document describes how to download and install the IoT RTView DataServer for use with RTView Cloud and how to configure the data server. This document also provides an example of how to connect data sources to your data server and how to view/update displays that allow you to view your incoming data in RTView Cloud.
Log in to your RTView Cloud account at http(s)://rtviewcloud.sl.com. If you do not have an RTView Cloud account, go to http(s)://rtviewcloud.sl.com/register and follow the instructions to create your account.
Note: If you log in using https, you must use https for your data server links as well. If you log in using http, you can use http or https for your data server links.
Once you have logged in, RTView Cloud displays.
The RTView Cloud Support Home page displays.
Click the Downloads tile/option.
The RTView DataServer Downloads page displays.
Scroll down to the RTView DataServer region and click the Terms and Conditions link to view the SL Corporation - End User License Agreement, click the I agree to the Terms and Conditions check box, and then click the Download RTView DataServer button.
The compressed file is saved to your machine.
When you install the DataServer, a temporary license key is included. SL Corporation will send you a permanent key that you will need to add to your RTView license key file so that you can extend the operation of your monitoring system.
This is a universal key that will enable you to run RTView on different machines and platforms. It is your responsibility to ensure you use RTView within the terms of your End User License Agreement (EULA).
To update your RTView system with your new license key, open a command window and:
Note: If using UNIX, do not include spaces in your installation directory path. The start_server.sh and stop_server.sh scripts will not function properly if spaces are included in the installation directory path.
Extract All (Windows)/unzip (UNIX/Linux) the file to the directory of your choice. For UNIX/Linux, use unzip -a to unzip the file.
Open a command window and set the JAVA_HOME environment variable to point to your Java Installation. For example:
export JAVA_HOME=/opt/Java/jdk1.7.0 (UNIX/Linux)
set JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_201 (Windows)
Or, in Windows, you can set JAVA_HOME as an environment variable (in Control Panel > System >Advanced system settings), where it will then be used by all command windows and when you double-click on a .bat file.
start_server.bat (Windows)
. ./start_server.sh (UNIX/Linux)
Or, in Windows, you can double-click on the start_server.bat file.
The RTView DataServer is now ready to receive data at the following URL: http(s)://localhost:3270/rtvpost
Note: This script starts the Data Server on port 3278 with HTML Server (Eclipse Jetty, by default) on port 3270. If these ports conflict with other processes running on your system, you can change the first two digits of the ports by using -portprefix: and specifying the first two digits you want to use for the ports in the command line. For example: start_server.bat -portprefix:44 (which would change the ports to 4478 for the Data Server and 4470 for HTML Server). If you want to save your port prefix, you can change the port prefix in the RTView Configuration Application (see the next section), or you can use -saveportprefix: command line argument (for example: start_server.bat -portprefix:44 -saveportprefix).
Next, you can optionally modify your port or configure your Historian database using the RTView Configuration Application.
http://localhost:3270/rtvadmin
The Authentication required dialog displays.
The RTView Configuration Application displays.
The RTView Configuration Application displays with the General tab open.
Configuring the Historian Database (Optional)
Configuring Alerts (Optional)
stop_server.bat (Windows)
./stop_server.sh (UNIX/Linux)
start_server.bat (Windows)
./start_server.sh (UNIX/Linux)
Next, you need to populate an RTView DataServer cache with data, which you can do by creating a script to pull the desired data from your data source into the RTView DataServer. The example in this section provides instructions and examples showing how to push real-time monitoring data from a JavaScript application into an instance of an RTView DataServer. Once data is pushed into the RTView DataServer, you can use RTView Cloud to create custom dashboards to display the data in real-time (which will be described in a following section). You can use the downloaded JavaScript example to give you a better idea of how to create your own scripts.
To access the example:
This program can be modified to bring in custom data specific to your application.
Before you can view your data in RTView Cloud, you need to add a connection to your data server via the Data tab in RTView Cloud. To add the data server connection:
The RTData Server List page displays.
Name: Type the name you want to use for the server (SIMPLE-EXAMPLE-SERVER for our example).
Host/URL: Enter the following: http://localhost:3270/rtvquery
Type: Select Data.
Authorization Type: Do not select an Authorization Type. Leave this option empty.
Once saved, the newly added server displays in the RTData Server List.
The RTView DataServer - Cache Tables dialog displays.
The Connection Status should be "Connected" and SensorData should display in the table.
Next, you can view your incoming data by importing a display from the RTView-javascript directory. Normally, you would need to create your own display using the RTDraw Application (via the Design tab) in RTView Cloud. See Building Your First Display in RTView Cloud for more information. For our example, however, perform the following steps:
The file browser displays.
This sample display is configured to connect to your local RTView data server and present data changing in real-time. You can experiment with the editing features of RTDraw to make changes to this display or create your own.