Hi and welcome to a new section in this course, this section is dedicated to note read, I'm going
to talk a little bit about what new threat is and give you some examples of its use.
You can get a better idea of what it is that we're about to do.
And then in the next few lectures in this section, I'll show you how to install it on your Raspberry
Pi and explain the use of some of its most important notes and how they work inside simple flows.
So first off, what is not red?
So not red is a programming tool.
Actually, it's a better way to describe it is a programming environment.
It uses graphical flows and notes, which are the individual components in a flow to create a program.
What I really like about note read is that it is both graphical.
So it gives you the the visual capability of creating a program, but also it allows you a lot of functional
control through JavaScript, which is the programming language and its underlying note.
Read the home of note, read on the web is not red dot org, which you are looking at right here.
And just scrolling down this page, you will see these basic features.
So it's basically a programming environment that operates inside a browser.
You create graphical programs which are called flows and flows are composed of nodes, which are these
rectangular items that you see in this small screen here.
It uses a drag and drop interface and you can assign those nodes in a variety of configurations.
Each node does something specific or you can program make so that it does exactly the tasks that you
wanted to do.
Node Red comes with several built in nodes, but you can also install third party nodes, just like
in the Adenike, install third party libraries.
And I'm going to show you more about this in a moment.
The name No Dread comes from the underlying technology on which it is built, which is no G.S., which
is a JavaScript framework.
It's a very lightweight development environment and runtime environment, which makes it excellent for
creating applications that are supposed to be very nimble and very fast in their execution so they can
run on low cost hardware such as the Raspberry Pi note read is open source.
And as a result, there's a lot of people that are contributing to it.
It's been around for a long time and it's really stable and used by hobbyists and large corporations
alike.
All right.
So I'm going to show you a quick demonstration of what no, it looks like and I've got no right here
installed on my Raspberry Pi four.
And this is the version of the flow that makes up the brains of the terrorism controller.
Talked about this in an earlier lecture in this course.
But I also want to show you a few other flus that I have designed.
And as you can see in the Web editing, the Web browser editing, you can have Flo's under tabs.
And now all of this flows are actually deployed and are operating at the same time.
So this one here, for example, is a 22 sensor.
This one will just trigger the sensor every 10 seconds and get a reading.
So here's another flow.
It's a little bit more elaborate.
This one uses the kitty in node to get data it subscribes to immediately topic.
Every time that there is a new item in the queue, it will trigger this note and then the data from
that item will be passed on to other nodes down the flow where those nodes can either be a function
node such as this one.
Here we got a little bit of JavaScript doing something with the data it has received, processing it,
or in this case here you can see that we are using a Haiti to be post node, which forwards the data
to a Iot application.
This happens to be tweet Dode Io so that the flow can communicate with other applications elsewhere
on the Internet.
A few other examples here.
We can use timestamps, you can use Web hooks.
This is a manual trigger I can press on this button.
You can see that it injects a particular piece of data.
It happens to be a text message, but it can be any of those other things into the flow, which is then
printed out by the payload.
Serrefine.
Expand its menu.
Just clean this up and let's see for the current flow, only the vacations.
And you can see there are some triggering the halloo node.
I get the message coming out, which has been created by the debug node right here.
So here we've got a WebSocket node so we can use WebSocket as well.
In this example here, I've got again a manual inject node which passes a bit of data to a function
node.
Then this function will split the data into three components and then create three outputs in each sense,
each component to a separate output.
Right.
So those will go out and you can see actually the first and the second output go both to message to
expand.
My sidebar here and go for current flu, let's a trigger the inject mood and you can see I had node
one, which is message one printed out one and message to put out one and two because of this connected
to the first and the second output of the function.
And then we've got message three, a node message three, which prints out number three.
Right.
So it's just gives you an idea of what you can do here with these flows and what this look like on the
left toolbar.
I've got all the nodes that are available.
Most of the notes that you can see here are built into node red.
But a couple of them, such as, let's see the dashboard.
Collection is a third party series, the library An, that you can install and then you can use to create
graphical user interfaces.
So if you go back to my terrarium and expand the sidebar, you can see here I've got the dashboard,
which is created by the dashboard collection, and that creates the dashboard that you see here.
That is part of the terrorism project.
All right.
So I hope that this gives you a good overview of what node red is and how you can use it in your projects.
One more thing that I want to note here before we move on to the next lecture, which is the installation
of note read on the PI is documentation.
No read has got amazing documentation.
If you're just starting now, I recommend you have a look at getting started.
And then the user guide to getting started shows you how to install the application or the environment
on a variety of computers.
I'll be following the instructions in the Raspberry Pi box.
And then apart from that, the user guide contains everything that you need to know in order to get
started.
And what are you going to be touching a few items out of this list.
These are the items that we absolutely need for our project.
But in order for you to have a better and a complete understanding of note read, I encourage you to
have a look at least browse through the contents of the user guide.
Apart from that, depending on what you want to do, you'll find tutorials and a cookbook.
Also very useful to the cookbook, for example, tells you exactly how to do specific things I say are
fairly comprehensive list here.
All right, so having said all that, let's move on to the next election now where I'll show you how
to install Node Red on the Raspberry Pi.
Just keep in mind that the Raspberry Pi always does come with no direct already installed.
But I prefer to just go for a fresh install so we have total control of what is running on your spraypaint.