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 requestnode of Node-RED’s default nodes to your existing workflow.
Update the
propertiesof node as follows:For
DEV mode:For
PROD Mode:For Prod Mode TLS
ca_cert.pemimport. Note: Thisca_cert.pemwill be part of the Open EII certificate bundle. Refer the[WORKDIR]/IEdgeInsights/build/Certificates/directory.
Note:
For the
DEVmode, do not enable or attach the certificates.Update the
IPaddress as per theRestDataExportmodule running machine IP.For more details on Node-RED’s
http requestmodule, 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 usingmenuicon in top right corner as follows
Click
ImportUpdate the
URLofhttp requestnode withRestDataExportmodule 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.

