In a previous post I shared how I built and configured Node-RED to read inferenced results from the ADLINK Data River and then do something with that information.
In this guide I will show you how to import a previously created flows file and deploy it to gain the same results as described here (Getting started with Node-RED and Vizi-AI).
To get started with Node-RED you need to find the IP address of your device.
Open profile builder (http://localhost:8082) and go to the devices tab. You will see there the device is reporting its IP address. Copy that IP address.
Next open a web browser and enter the URL:
http://<the IP address you copied>:1880
You will then see the Node-RED workspace.
To import the flow file simply click the 3 lines in the top right hand corner and select import.
You will be then presented with the import screen, from this you want to import from a file, the flows file that is made available for you to use on Vizi is located here to download (https://vizi-ai-ppa.s3.eu-west-2.amazonaws.com/node-red/flows.json).
Click to select a file to import
Chose the file you want to import and click open.
Your import window should look like this, the view here is of the raw information within the flows file you are importing. Click import to proceed.
If you are using the flows file provided then you should see a status message appear at the top as such.
You will also see that a second Flow tab has been created, click on this as shown below.
Once you have opened the new Flow tab that was created you will see the flow that has been created for you, more information on how this flow was built and what each element is can be found here (Getting started with Node-RED and Vizi-AI)
Now we have imported the flow we need to deploy it so that we can start to receive data. In the top right hand corner of the Node-RED workspace click on the deploy button.
You will then see a status message at the top of the screen.
Once all changes have been deployed you will see that the deploy button is grayed out, this indicated everything has been deployed and there are no changes waiting.
to view the output of what we have just deployed, you will see on the green debug node that there is a button in light green half covered by the node, click that.
You will then get a new message informing you that debug mode is now running
To view the out put from the flow via debug mode, on the right hand side click the tab that has a picture of a bug on it, as shown below.
You will then see the output from the node which should enable you to perform whatever action you require with those results.