Install the Node-RED Application

Before you begin

Before you run the setupNodered.sh file, give full permissions to the extracted "nodered" using the following command: sudo chmod 777 -R nodered.

Procedure

  1. Download the nodered.zip file, and copy it to your Linux machine.
  2. Extract the nodered.zip file into a new folder by running the following command: $ unzip nodered.zip
  3. 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.
  4. 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:
    1. In postman, run "1Get Token".
    2. Run "2 Get Client Details".
    3. Copy json response.
    4. In Notepad, add "iqp.nodered" in scopes (around line 82).
    5. Copy the modified json.
    6. Duplicate action "2 Get Client Details".
    7. Change method to put.
    8. Change header Content-Type=application/json.
    9. Paste modified json in Body and select "raw".
    10. Send PUT request.

What to do next

After giving executable permissions to the setupNodered.sh, Deploy NodeRED in Configuration Hub Using Postman.