1
00:00:00,820 --> 00:00:08,280
Right now that we have a working installation of no on the respray pay, let's start doing some little

2
00:00:08,280 --> 00:00:15,840
exercises and become introduced to nodes and Flooz in this lecture, I'm going to show you some of the

3
00:00:15,840 --> 00:00:18,030
most important nodes.

4
00:00:18,360 --> 00:00:23,880
Have a look at the properties, how to configure them, how to install third party nodes as well, and

5
00:00:23,880 --> 00:00:30,150
a few other bits and pieces that will make it easier in the next lecture to assemble a first simple

6
00:00:30,270 --> 00:00:30,740
flow.

7
00:00:31,020 --> 00:00:40,260
And so on the left to buy, you can see the list of default or built in nodes that come with a fresh

8
00:00:40,260 --> 00:00:41,950
installation of node red.

9
00:00:42,300 --> 00:00:46,380
We can expand on those and installed, as I said earlier, third party nodes as well.

10
00:00:46,400 --> 00:00:49,540
I can show you how to do that as well in this lecture.

11
00:00:50,100 --> 00:00:58,680
So let's pick a very common node called Depak and just drag and drop it on to the flow convert.

12
00:00:59,430 --> 00:01:03,270
So this is the Dipak node.

13
00:01:03,270 --> 00:01:12,690
Its job is to output text or pretty much numbers or any other output into the back window that can appear

14
00:01:12,690 --> 00:01:15,240
on the right toolbar right here.

15
00:01:15,900 --> 00:01:19,150
Each node, of course, has got its own responsibilities.

16
00:01:19,170 --> 00:01:27,150
Now, all nodes, when you double click on them, reveal the edit pane and depending on what kind of

17
00:01:27,150 --> 00:01:32,790
node it is, the properties tab is going to have its own configuration and set of widgets that you can

18
00:01:32,790 --> 00:01:35,130
interact with and basically set up the node.

19
00:01:35,430 --> 00:01:38,190
In this case, the debug node.

20
00:01:38,190 --> 00:01:46,140
Allow us to print out into the Dipak window right here on the right toolbar information that is coming

21
00:01:46,140 --> 00:01:49,470
into it from previous nodes in the same flow.

22
00:01:49,740 --> 00:01:57,600
And we can configure exactly what it is that we want the node to output and be using a lot of this specific

23
00:01:57,600 --> 00:01:58,620
node later on.

24
00:01:58,980 --> 00:02:03,000
And it can also control where we'd like the information to appear.

25
00:02:03,000 --> 00:02:06,300
In most cases, you want to send it out to the debug console.

26
00:02:06,540 --> 00:02:11,730
But for example, you may want to also send messages out the system console, which is particularly

27
00:02:11,730 --> 00:02:15,930
useful if you are running node red on the command line.

28
00:02:15,930 --> 00:02:20,850
In our case, we are running it as a system service, so it does make sense to use a system console

29
00:02:20,850 --> 00:02:21,740
for output.

30
00:02:22,230 --> 00:02:25,830
We can always customize the name of a node.

31
00:02:25,860 --> 00:02:30,780
So in this case, I'm going to say that this is an example debug node.

32
00:02:32,500 --> 00:02:35,650
And, Don, and you can see that the name appears here.

33
00:02:35,680 --> 00:02:42,550
So you should always really customize the name of your notes to make it easy to see what they are in

34
00:02:42,550 --> 00:02:43,830
your flow.

35
00:02:44,110 --> 00:02:50,770
Just consider that a note is similar to a function in a traditional program, and every function needs

36
00:02:50,770 --> 00:02:56,290
to have a reasonable name to be able to see what it does without having to go through all of the details

37
00:02:56,290 --> 00:03:02,350
or the code inside the function itself to always have a reasonable name here.

38
00:03:02,830 --> 00:03:10,810
Another thing that is available to you within the Web browser interface of note read is information

39
00:03:10,810 --> 00:03:11,500
about the node.

40
00:03:11,800 --> 00:03:18,790
So especially as you are starting on the right side on the right toolbar, click on the I button here

41
00:03:18,790 --> 00:03:19,090
and there.

42
00:03:19,090 --> 00:03:26,530
Depending on the node that you've selected, you'll get information about the node as well as documentation.

43
00:03:26,530 --> 00:03:32,530
So the book icon here gives you documentation so you can read out and understand what that particular

44
00:03:32,530 --> 00:03:33,400
node does.

45
00:03:33,730 --> 00:03:34,960
Let's bring another one.

46
00:03:34,960 --> 00:03:43,180
Let's say the injector node case, it can say selecting the inject node and I can get information about

47
00:03:43,180 --> 00:03:46,500
what it does from the documentation directly.

48
00:03:46,510 --> 00:03:52,360
So I don't have to browse into the actual documentation of website of node red.

49
00:03:52,360 --> 00:03:56,620
It all comes with it when you install it on your Raspberry Pi.

50
00:03:57,580 --> 00:04:03,460
Again, you've got access to the eye button for additional information and you can see the various properties

51
00:04:03,790 --> 00:04:11,470
of this particular node for go for the example, Dipak Node and the properties that are set for this

52
00:04:11,470 --> 00:04:14,110
mode, again, depend on the node.

53
00:04:14,890 --> 00:04:15,910
Now, let's see.

54
00:04:15,910 --> 00:04:24,490
Another interesting thing from the info tab is the lineage, I guess, of all the hierarchy of notes

55
00:04:24,490 --> 00:04:27,250
and the flows into which they belong to.

56
00:04:27,790 --> 00:04:30,220
So I've got a single flow tab.

57
00:04:30,610 --> 00:04:36,760
You can see it's name is Flow One, which is the same name that appears up here in the actual tab.

58
00:04:37,030 --> 00:04:42,970
And this flow contains these two nodes that can enable and disable those nodes.

59
00:04:43,180 --> 00:04:47,220
It's like commenting out code in a traditional program.

60
00:04:47,590 --> 00:04:52,480
You can just click on this little radio button here to enable it and disable it.

61
00:04:52,930 --> 00:05:03,730
It can see that the node graphical widget adjusts to indicate whether it's on or off, enabled or disabled.

62
00:05:05,210 --> 00:05:09,170
You can also trigger it manually from here, of course, in this case, it doesn't make any sense because

63
00:05:09,170 --> 00:05:11,770
I haven't configured these nodes to do anything useful.

64
00:05:11,780 --> 00:05:13,350
But you can trigger them if you want to.

65
00:05:13,370 --> 00:05:19,200
I'm going to show you some examples in later lectures on how to do that and why it's useful.

66
00:05:19,970 --> 00:05:25,710
Now, another thing I want to show you is this burger menu, I guess, are called here.

67
00:05:25,830 --> 00:05:28,580
Expand it by clicking on the three lines.

68
00:05:29,000 --> 00:05:34,220
And there is a particularly interesting option here called Managed Polet.

69
00:05:34,700 --> 00:05:41,120
When you go into managed permit, you go into this menu here, which allows you to install third party

70
00:05:41,120 --> 00:05:44,550
Flo's nodes or collection of nodes.

71
00:05:45,110 --> 00:05:52,580
So one particularly useful collection of nodes that I would be using a lot in this project is the dashboard.

72
00:05:52,970 --> 00:05:55,870
So you can simply search for something that you're interested.

73
00:05:55,880 --> 00:06:00,950
You can see there's a lot of modules available, but let's say we are interested in some kind of dashboard

74
00:06:01,190 --> 00:06:05,720
and there's a lot of different options here contributed by a note read.

75
00:06:05,720 --> 00:06:13,910
Developers go for this one here, which is very well developed and contains some excellent collection

76
00:06:13,910 --> 00:06:17,150
of notes that allow you to create dashboards.

77
00:06:17,600 --> 00:06:22,310
So installing this is as simple as clicking with the install button.

78
00:06:22,580 --> 00:06:27,370
Just click on that so you still can get more information, of course, if you want.

79
00:06:27,380 --> 00:06:29,200
And a few seconds later.

80
00:06:33,930 --> 00:06:34,950
Oh, maybe that I mean it.

81
00:06:46,380 --> 00:06:53,700
You've got a bunch of new notes installed in your Raspberry Pi, apart from that, I also want to install

82
00:06:53,700 --> 00:06:54,450
a couple of others.

83
00:06:54,540 --> 00:06:57,780
For example, if you want to have a.

84
00:06:59,230 --> 00:07:06,610
To censor attached to your Raspberry Pi, I'm going to do a little later you can interact with the 22

85
00:07:06,610 --> 00:07:12,730
center directly from within node red and there is a node for that.

86
00:07:13,130 --> 00:07:16,380
It's the node rate Cantrip DHT censer.

87
00:07:16,660 --> 00:07:18,400
I'm just going to install that as well.

88
00:07:30,830 --> 00:07:38,180
And there's a new note as well, there's a few other notes and note collections that I'd like to use

89
00:07:38,180 --> 00:07:42,830
in this project, and I'm going to show you and talk about those later when the time comes.

90
00:07:42,840 --> 00:07:49,220
But for now, I just wanted to show you how to install a new node or collection of notes so you can

91
00:07:49,220 --> 00:07:50,560
experiment with them.

92
00:07:50,810 --> 00:07:58,280
Now, to go back to the notes tab, you see all the notes and note collections that are currently installed

93
00:07:58,280 --> 00:08:08,000
in your note read installation so we can close this window and then scroll down the left toolbar to

94
00:08:08,000 --> 00:08:10,760
have a look at the new items in the list.

95
00:08:11,150 --> 00:08:12,620
So here's the dashboard.

96
00:08:13,370 --> 00:08:15,920
So, for example, let's go for a switch.

97
00:08:16,000 --> 00:08:16,480
Right.

98
00:08:16,580 --> 00:08:19,190
So here's a switch note, double click on it.

99
00:08:19,750 --> 00:08:23,400
You can set it into a new UI or user interface group.

100
00:08:23,400 --> 00:08:29,510
You can create as many as you want, can label it so tooltip for additional help and so on.

101
00:08:29,840 --> 00:08:36,320
So every dashboard node has got its own set of properties and we don't worry about exactly what each

102
00:08:36,320 --> 00:08:37,370
of those properties does.

103
00:08:37,730 --> 00:08:42,140
Going to show you and explain what you need to know for the purposes of this project.

104
00:08:42,150 --> 00:08:47,510
Later on in this section, I'm going to demonstrate how to create a simple dashboard.

105
00:08:48,080 --> 00:08:56,390
And also here's the Raspberry Pi, the 22 node, which I also manually installed a bit earlier.

106
00:08:56,390 --> 00:08:57,920
And you can see what it looks like.

107
00:08:57,920 --> 00:09:02,440
It's pretty self-explanatory about how to configure it.

108
00:09:02,630 --> 00:09:06,980
All you need is the tapin for the 22 and you could go.

109
00:09:08,650 --> 00:09:16,090
Another interesting and useful feature here is the settings option or the settings pane to select that,

110
00:09:16,390 --> 00:09:24,600
and then you can use it to basically configure your working area, the language, the grid nodes, etc..

111
00:09:24,790 --> 00:09:31,150
And here's the Polet again, accessible also from this location, from the user settings and shortcuts

112
00:09:31,150 --> 00:09:31,940
for your keyboard.

113
00:09:31,980 --> 00:09:32,470
So on.

114
00:09:32,980 --> 00:09:34,180
So all very useful stuff.

115
00:09:35,290 --> 00:09:41,260
Before we move on, another thing that I want to point out is that after installing the dashboard collection

116
00:09:41,260 --> 00:09:47,830
of notes, another item appeared here in the right toolbar, which is the dashboard.

117
00:09:48,100 --> 00:09:54,750
So this is the central place where you can create new tabs and new collections of dashboard widgets.

118
00:09:54,760 --> 00:10:00,610
And again, this is something that I'm going to explore further in dedicated lectures later on.

119
00:10:01,420 --> 00:10:05,050
For now, that's all I wanted to say about notes.

120
00:10:05,050 --> 00:10:12,100
In order to make notes, do something useful, we need to connect them together like this and therefore

121
00:10:12,100 --> 00:10:13,510
create flows.

122
00:10:14,230 --> 00:10:21,220
Let's move on to the next lecture where I'm going to show you a few simple note configurations.

123
00:10:21,220 --> 00:10:23,860
It flows a few simple things that you can deal with him.
