Contents

NodeRedHttpClientApp

This Node-RED in-built http node based client App acts as client for the Open EII RestDataExport and brings the Open EII Classifier data to Node-RED ecosystem.

Configure NodeRed

Node-RED provides various options to install and set up Node-RED in your environment. For more information on installation and setup, refer to the Node-RED documenation.

Note

For quick setup, install using docker

docker run -it -p 1880:1880 --name myNodeRed nodered/node-red

Getting Open EII UDF Classifier results data to Node-RED Environment Using Node-RED HTTPClient

Note

: RestDataExport should be running already as a prerequisite.
Refer to the RestDataExport Readme([WORK_DIR]/IEdgeInsights/RestDataExport)

  1. Drag the http request node of Node-RED’s default nodes to your existing workflow.

    images/imagehttprequestnode.png
  2. Update the properties of node as follows:

    For DEV mode:

    • Refer to the dialog properties for setting up the DEV mode in the Node-Red dashboard

      images/imagedevmode.png

    For PROD Mode:

    • Refer to the dialog properties for setting up the PROD mode in the Node-RED dashboard

      imageprodmode.png

    For Prod Mode TLS ca_cert.pem import. Note: This ca_cert.pem will be part of the Open EII certificate bundle. Refer the [WORKDIR]/IEdgeInsights/build/Certificates/ directory.

    imageprodmodetlscert.png

    Note:

    1. For the DEV mode, do not enable or attach the certificates.

    2. Update the IP address as per the RestDataExport module running machine IP.

    3. For more details on Node-RED’s http request module, refer to Http requset.

Sample Workflow

The attached workflow document is sample workflow by updating the RestDataExport IP Address in the http request module,

  1. Import the Sample Workflow flows.json([WORK_DIR]/IEdgeInsights/tools/NodeRedHttpClientApp/flows.json) file to NodeRed dashboard using menu icon in top right corner as follows

    images/imageimportnodes.png
  2. Click Import

  3. Update the URL of http request node with RestDataExport module running the machine IP Address

    Note: