Objectives
In this Exercise you will learn how to:
- Get the required Node-RED script
- Import the script into Node-RED
Before you begin:
This Exercise requires that you have:
- completed the pre-requisites required for all labs
- completed the setup of Node-RED locally
Get the required Node-RED script
- Open a browser and navigate to monitor_csv_importer github repository.
- Click on the green
Code
button and selectDownload ZIP
. - Save it in your Downloads directory.
- Extract the ZIP file (double-click on Mac) and you will have a directory with the files you need:
Tip
You can Right-Click on the images in this lab and select Open Image in New Tab
to view the details in the screen shots:
Import the script into Node-RED
Now it is time to import the downloaded Node-RED script.
- Start the Node-RED instance if not already done (in a CMD/Terminal/iTerm window).
- Open the browser and navigate to localhost:1880.
- Click on the burger menu in upper right hand corner and select
Import
. - Click on
select a file to import
. - Select the
Upload CSV to Db2 Pump.json
and click Open. - Click
Import
. - Click the
Deploy
button - and see this: Don't worry about the error message at this point. This should be solved during the next exercise.
Tip
If you see red error messages in the Debug pane, you can hover over the node name and then the node which caused the error to occur will appear with dashed orange lines: This should help you identify where the error has occured and what needs to be done is indicated with the error decription.
Congratulations you have successfully downloaded and imported the Node-RED script. You will now be able to adjust the Node-RED script to your environment.