Lesson 1- Understanding Node-RED

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] all right welcome to this video now we will start with section one understanding note red so in this section we will understand how to install node red what is a node red and what node red can do so i'm using the software sense one year now and i'm using this extensively to control plc's and to make dashboards and to link my data to cloud cloud services so but i will start from the scratch how does this work so to to make your plc link with the cloud or your controller to link with the cloud or external technology you need to understand the basic fundamentals of node-red so in this node-red course what we will start we will study with how this node-red can interface with raspberry pi but this will come later in the sections we'll understand the basic fundamentals of node red and then i'll show you how to interface your node red with hardware devices so one of them would be raspberry pi and then we'll see how to interface that with arduino so if you have arduino or raspberry pi with you this course is must and these hardware devices are not so expensive you can just buy them and then you can learn how to program node red and you can link that with your hardware similarly we'll see how to link your node node-red with siemens plc i will be using siemens s7 1200 not only that we will see how to link node red with iiot device so if you have an iot device with opc ua inside you can interface your software as well and then we will see how to interface it with the delta plc in this case we will use modbus because this plc doesn't have opc and similarly we'll understand some technologies which we are going to use to interface my hardware for example opc ua we will learn what is a modbus how to use node-red as a modbus client and we'll see how to interface your hardware devices these devices further to the cloud we will learn in this course and we'll see how to link your data with a mysql database so if you want to store your data you can do that in this case we'll use mysql and we'll run some queries inside the notepad to push the data in the tables and this will be very interesting because earlier in my lessons i was showing you how to do that with microsoft access but it was not so reliable but i would highly recommend you to learn node red so that you can save your data in mysql last but not the least we'll see how to work with mqtt signals so these all the whole package is a kind of iot lessons you will learn in this node-red course so let's start with the first topic understanding node-red and let's see what is a node-red so node is a programming tool i've written a definition in which you can link your hardware devices and you can program that and the best thing is it's a browser-based editor so if you see i have written here browser-based which means you have you don't have to have a software application you can open this node-red in any browser for example chrome or firefox or internet explorer or edge so whatever browser you have you will use that browser to do programming so it's a browser-based editor so it's quite easy you don't need to have a special configuration in your computer you don't need a high-end graphics high-end ram it's a normal programming software use very less memory well it also depends how much code you have written but it can be it is run in the browser so that's the best thing so in this uh software we work with the nodes so for example if you see here this is a node which is which is pushing the value of a string hello world inside a payload so these are the nodes nodes are the inputs so you push the value using these nodes and then this message.payload is actually the feedback or what are whatever happening in this node will be displayed in message.payload so if you see this payload this is actually coming here so when this inject node is pushed here it will display hello world as an output so message.payload is the output we will understand these nodes in detail but this is just an explanation how the programming is done so you don't have to do a lot of you don't have to type a lot of codes like in c plus you will use nodes but then there are some function nodes in which you will write program okay so that will come later we'll see but i just want to introduce you to browser based editor all right and how can we use node red now the question is if it's a browser base how to use it number one option is locally locally means you can install this node red in your laptop or in your computer so you can install it in your computer and that's the first step we will do we will install it in the computer and then i will show you how to run it so locally you can use it second is on the device so on the device you can you can for example use arduino or you can use raspberry pi so you can use node-red in these devices as well or in the cloud for example we will use ibm cloud later in the course so you can install node-red in the cloud okay so this is a programming software in the cloud so you so you don't have to have a computer all the time you can go to anywhere open the internet open your cloud or sign in into your cloud and then you have a programming editor inside so these are the different ways you can use node red if this makes you feel interesting you can start programming node right so if you need more information you can go to the node website and they have a lot of information a lot of documentation about node red so most of the information i'm using from the documentation to make the learning easy all right so now comes the step how to install it on the pc so if you have a computer right now or a laptop i'm going to tell you how to install it so number one step is you have to install a software node.js so this is this is important without this you can't run node-red so how you have to install it just go to this website nodejs.org and then you will find a link so maybe i can open it for you so this is the website and this is node.js and you can download this recommendation download for windows x64 and if you want to see other downloads maybe you can find for 32-bit windows as well so just download it and install it that is that is a step one nothing much complications and then step two is now you have to make sure this is properly installed that you can do is using command prompt so i will open a command prompt and i will show you how we can do that so this is my command window you have to type node minus minus dash dash version so i will type oops sorry i have to give a space yeah now you will see it says version 11.9.0 so you need to find the version so if there is no version coming it means it's not installed properly so you have to make sure the version is being shown and then you can also check npn npn npm version in this case it shows 6.5.0 so you have to make sure you have these values coming in to make sure node.js is installed that's it so that's the second step you have to make sure third step is you have to install node right now and this you can do is by entering this command npm install so i can show you here npn install minus g minus unsafe so you have to type it and you have to press enter in my case i already have noded installed so i don't have to do this but once you do this it will download the node red from the server and try to install it in your computer it may take four to five minutes maybe not more than that and then you'll have a confirmation that node-red is installed so this is there is no setup.exe file no rar file you have to install node red from the command prompt okay if you're doing it for the first time stuff like that don't worry it will work so just go for it and then you have to run node-red to run node-red you have to open the command prompt and type node-red so this is my command prompt so once my node-red is installed in your case as well just type node-red and press enter and then you will see node-red is being executed and in the end you will see started flows so it means node-red has started now how to see the node red window that comes the step 5. open node-red in browser enter in the browser localhost 1880. so i will open my browser here so in the browser you have to type localhost 1880 and press enter once you do that you will see this window if you see this window your node-red is successfully installed congratulations and once you see this window then we will see how to work with node-red programming tools all right but this is must you have to have this window and this will come by localhost 1880 and localhost is your local ip address of your pc so in this case it's 127.0.0.1 it's a localhost ip address so these were the step how to install node-red on your pc alright and now in the next video i will show you how to install nodes in node-red so there are many nodes which we have to use and these nodes doesn't come in the installation of node-red you have to install separately so i have recommended several nodes here for example for iot for modbus for mqtt for siemens for arduino for mysql and so we will see how to install these nodes in the next video so stay tuned in this video just install node-red make sure it's running on your browser and then start with the next video see you later [Music] you
Info
Channel: Rajvir Singh
Views: 12,498
Rating: undefined out of 5
Keywords: node-red, node-red lessons, nodered tutorials, nodered course, nodered programming, how to use nodered, nodered instroduction, nodered examples, nodered applications, nodered and plc, what is nodered, codeandcompile, thegeterrdone, nodered installation
Id: raV5NFInPio
Channel Id: undefined
Length: 10min 39sec (639 seconds)
Published: Thu Oct 08 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.