Integrating Watson IoT Platform with IBM Plant Performance Analytics

Using IBM Watson IoT Platform, you can collect connected device data and perform analytics on real-time data from your organization. IBM® Plant Performance Analytics leverages Watson IoT Platform as a datasource sending sensor data (measurements) in real time to Plant Performance Analytics in JSON format.

Before you begin

You need to have a Watson IoT platform instance where the sensors or devices are registered and enabled. Devices from the plant should be able to send the data to Iot platform that gets consumed by PPA.

Procedure

  1. Open the /opt/IBM/PPA/tenant_<ID>/properties directory in the AppNode.
  2. Open the IoTConnection.properties file in a text editor.
  3. Update the Watson IoT platform connection details.
  4. Open the server.xml file with a text editor and uncomment the following entry to enable the .war file.
    <webApplication id="PPA_Watson_IoT_Integration"
    location="PPA_Watson_IoT_Integration.war"
    name="PPA_Watson_IoT_Integration">
    <classloader commonLibraryRef="Lib"></classloader>
    </webApplication>
  5. Ensure that an XSL file with a name match with the IoT data definition is defined and available in /opt/IBM/PPA/tenant_<ID>/EAM_XSL.

    By default, a sample XSL file is available.

  6. Load the master data files as follows:
    • The resource_instance.csv file registers devices and sensors and defines the parent-child mapping. A device is defined as a sensor whose parent is the equipment that the sensor captures data for. For example: if D1 and D2 are sensors attached to a resource R10, then D1 and D2 are children of R10. R10 is the parent.

    • The measurementtype_instance.csv file registers the measurement types sent by IoT.
    • The iot_org_instance.csv file contains the Watson IoT organization information.
    • The iot_connection.csv file stores the IOT device connection details.
    • The iot_data_def.csv contains the data definition and structure.
    • The iot_data_map.csv file contains the mapping between the following:
      • RESOURCE_INSTANCE
      • IOT_DATA_DEF
      • MEASUREMENTTYPE_INSTANCE