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
)
Drag the
http request
node of Node-RED’s default nodes to your existing workflow.Update the
properties
of node as follows:For
DEV mode
:For
PROD Mode
:For Prod Mode TLS
ca_cert.pem
import. Note: Thisca_cert.pem
will be part of the Open EII certificate bundle. Refer the[WORKDIR]/IEdgeInsights/build/Certificates/
directory.Note:
For the
DEV
mode, do not enable or attach the certificates.Update the
IP
address as per theRestDataExport
module running machine IP.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,
Import the Sample Workflow flows.json(
[WORK_DIR]/IEdgeInsights/tools/NodeRedHttpClientApp/flows.json
) file to NodeRed dashboard usingmenu
icon in top right corner as followsClick
Import
Update the
URL
ofhttp request
node withRestDataExport
module running the machine IP AddressNote:
For detail, refer to [import export] (https://nodered.org/docs/user-guide/editor/workspace/import-export)
The classifier results will be logged in the debug window.