Install the Node-RED Application
Before you begin
sudo chmod 777 -R nodered
.Procedure
- Download the nodered.zip file, and copy it to your Linux machine.
-
Extract the nodered.zip file into a new folder by running
the following command:
$ unzip nodered.zip
-
Navigate to the extracted folder and update the
application.properties file for the following
properties:
- WEBCLIENT_SERVER
- PROFICY_AUTHENTICATION_SERVICE_ORIGIN
- PROFICY_AUTHENTICATION_SERVICE_ADMIN_CLIENT_ID
- CONFIG_HUB_HOST
- CONFIG_HUB_PORT
- CONFIG_HUB_CLIENT_ID
- CONFIG_HUB_CLIENT_SECRET
- PLANT_APPS_API_CLIENT_ID
- PLANT_APPS_API_CLIENT_SECRET
- WEBCLIENT_USERNAME
- WEBCLIENT_PASSWORD
Note:Ensure that the values you enter for these properties is same as the ones in the silentinstaller.yml file. -
Give executable permissions to run the setupNodered.sh
file by running the following command:
$ sudo chmod +x ./setupNodered.sh
.If you fail to log into the Node-RED flow designer, then do the following:- In postman, run "1Get Token".
- Run "2 Get Client Details".
- Copy json response.
- In Notepad, add "iqp.nodered" in scopes (around line 82).
- Copy the modified json.
- Duplicate action "2 Get Client Details".
- Change method to put.
- Change header Content-Type=application/json.
- Paste modified json in Body and select "raw".
- Send PUT request.