1
00:00:00,690 --> 00:00:08,100
In no trade version to one of the new features that were introduced, the new in command, it allows

2
00:00:08,100 --> 00:00:17,490
you to create a settings file configured to your liking by going through a series of questions and a

3
00:00:17,500 --> 00:00:23,820
restructured default settings file, which makes it easier for you to manually edit interchange settings.

4
00:00:24,240 --> 00:00:26,640
And in this lecture, I'll show you both.

5
00:00:27,480 --> 00:00:32,340
So at the moment, I'm using no trade version.

6
00:00:32,340 --> 00:00:35,730
2.1.5 and.

7
00:00:37,000 --> 00:00:45,560
If you go to the DOT Note Read Directory on the Raspberry Pi in, have a look inside, you see a bunch

8
00:00:45,560 --> 00:00:54,290
of files end with Jason extention like this one and most important, you'll see a Settings file.

9
00:00:54,650 --> 00:00:59,180
So this is where my note read Instance configuration go.

10
00:00:59,480 --> 00:01:05,300
And this chasen file is a file that stores my flows.

11
00:01:05,930 --> 00:01:12,560
The name of the JSON file in which the flows are stored is configurable, as you see in a moment.

12
00:01:13,100 --> 00:01:20,450
I want to have a look at what the default settings file looks like, and it can have a look at that

13
00:01:20,450 --> 00:01:24,140
here on GitHub in the note read repository.

14
00:01:24,530 --> 00:01:31,160
There's the Settings JS file, and this is what a default settings file looks like.

15
00:01:31,520 --> 00:01:39,320
As you can see, this Dot J.S. file contains the key value pairs, so here's the key here's a value

16
00:01:39,740 --> 00:01:41,860
for that particular key.

17
00:01:41,870 --> 00:01:50,810
This is what the note read at runtime will go into and read those key value pairs and configure itself

18
00:01:50,810 --> 00:01:53,000
according to what it finds in this file.

19
00:01:53,420 --> 00:01:59,360
So you are welcome to go in here and use a text editor and manually edit those settings.

20
00:01:59,430 --> 00:02:07,910
This is a lot of information about what each one of those settings does, and that's quite OK.

21
00:02:07,940 --> 00:02:11,780
So, for example, just scroll down to the bottom, say around.

22
00:02:13,330 --> 00:02:20,920
Around here in this, for example, where you can configure the type of code editor that you are using,

23
00:02:21,280 --> 00:02:28,800
the supported values for the Lib key are either ACE, which is a default or Monaco, et cetera.

24
00:02:28,810 --> 00:02:30,610
So you can just change that manually.

25
00:02:31,090 --> 00:02:37,330
In my case on my Raspberry Pi, I use them to do the editing so I can go into my settings, file using

26
00:02:37,330 --> 00:02:40,270
them and just make the changes.

27
00:02:40,690 --> 00:02:43,090
So I'm going to look for code editor.

28
00:02:43,300 --> 00:02:47,750
Here it is, and I can go here and manually change this to Monaco.

29
00:02:47,760 --> 00:02:55,840
I'm going to come out of this too, because what I want to show you is that instead of using the manual

30
00:02:56,080 --> 00:03:01,030
classic way of editing the settings file, we can now use the we.

31
00:03:02,500 --> 00:03:10,270
So because I've already made a bit of configuration and that I want to lose that, I advised that before

32
00:03:10,270 --> 00:03:16,050
you go ahead and use the wizard to make changes to the settings file, you did two things.

33
00:03:16,090 --> 00:03:25,760
First, you create a backup of your file, so simply copy your file into a new name.

34
00:03:25,780 --> 00:03:27,490
In my case, it's back.

35
00:03:27,820 --> 00:03:29,350
Just call it back to.

36
00:03:31,970 --> 00:03:37,070
So you can always come back if you don't like what the wizard has done, you can always revert back

37
00:03:37,070 --> 00:03:41,780
to the original backup now Settings Chair File.

38
00:03:42,110 --> 00:03:49,850
And you should do the same thing with the flow's file, which in my case, because I didn't set a name

39
00:03:49,850 --> 00:03:53,490
for the error flow's file, the default name that is used.

40
00:03:53,490 --> 00:04:02,450
These flows underscore the hostname for the computer, which the note instance is running on both J

41
00:04:02,460 --> 00:04:02,900
sends.

42
00:04:02,900 --> 00:04:08,420
In my case, the host name is Node Red Dot Local.

43
00:04:08,900 --> 00:04:15,920
So if I don't specify a default name for my Flo's file in the Settings Strategy, yes file, then that

44
00:04:15,920 --> 00:04:22,040
file name will be flows on the school, then the name of the hostname.

45
00:04:23,670 --> 00:04:26,100
Which, in my case, is no local.

46
00:04:28,190 --> 00:04:29,030
Don't add, Jason.

47
00:04:29,570 --> 00:04:33,800
You can find that information here, so for example, I'm going to look for hostname.

48
00:04:34,400 --> 00:04:37,570
And that's what I've been talking about here.

49
00:04:37,580 --> 00:04:38,810
This is a default name.

50
00:04:39,440 --> 00:04:39,740
All right.

51
00:04:39,740 --> 00:04:43,700
So it's a good idea to have a backup of your Flo's file anyway.

52
00:04:44,330 --> 00:04:44,580
All right.

53
00:04:44,600 --> 00:04:48,550
Having said all of that, let's go ahead and test out the wizard.

54
00:04:50,450 --> 00:04:53,170
So here I am on my Raspberry Pi.

55
00:04:53,660 --> 00:04:56,660
You don't need to be in the note rate directory.

56
00:04:56,870 --> 00:05:02,060
It's just convenience, because that way you will be able to have a look at the updated settings file

57
00:05:02,390 --> 00:05:05,540
after the end of the wizard execution.

58
00:05:05,900 --> 00:05:14,840
So the command to invoke the wizard or use the note, read at command and pass the switch in it.

59
00:05:16,150 --> 00:05:20,140
So this will now take you through the series of questions.

60
00:05:20,380 --> 00:05:27,310
First, what is the file name for the Settings file and keep that setting strategy?

61
00:05:27,320 --> 00:05:33,580
Yes, it already exists, so it is OK to overwrite it, and I've got a backup so I can always go back.

62
00:05:34,360 --> 00:05:36,250
Do you want to set up user security?

63
00:05:36,250 --> 00:05:45,580
So I'll go for yes, in this case, and then I will provide a username and password for my user.

64
00:05:45,790 --> 00:05:50,230
And since that is going to be me, I'm going to give myself full access.

65
00:05:51,310 --> 00:05:51,820
All right.

66
00:05:51,880 --> 00:05:54,340
So know, at this point, I don't want to add another user.

67
00:05:55,120 --> 00:06:01,870
So four projects projects again, it's a new feature in note red version two.

68
00:06:01,870 --> 00:06:08,260
And at this point I'm going to say no, and I've got a separate lecture where I'll show you how these

69
00:06:08,260 --> 00:06:08,950
projects are.

70
00:06:08,950 --> 00:06:10,300
We don't need projects yet.

71
00:06:10,690 --> 00:06:12,940
Just going to say no to this question.

72
00:06:13,450 --> 00:06:18,430
Now this is where I can enter a name for Maslow's file.

73
00:06:18,440 --> 00:06:20,540
So the default here is flows.

74
00:06:20,560 --> 00:06:21,630
Don't Jason.

75
00:06:22,090 --> 00:06:27,000
But if I go with this name, then what do we just going to do?

76
00:06:27,010 --> 00:06:34,120
It's just going to configure note read to use that Jason, as the flows file in, is going to ignore

77
00:06:34,630 --> 00:06:41,260
the existing file that I have already created, and it contains all the data for mixing flows.

78
00:06:41,770 --> 00:06:50,620
So if I accept flows to Jason as the name for my flows file when I go back into Node two, yes and have

79
00:06:50,620 --> 00:06:57,400
a look at its user interface and reload this page, none of my existing flows will appear because the

80
00:06:57,400 --> 00:07:06,250
note read instance will be reconfigured to look for flows inside this file instead of my original file.

81
00:07:06,730 --> 00:07:12,280
And because I want to continue working with my note, read flows that I have already created.

82
00:07:12,610 --> 00:07:24,010
I'm going to opt to change this name into the name of my existing flows file, which is flows and the

83
00:07:24,010 --> 00:07:25,060
school node.

84
00:07:26,680 --> 00:07:29,590
Red Dot, local dot.

85
00:07:30,010 --> 00:07:30,610
Jason.

86
00:07:33,160 --> 00:07:33,730
OK.

87
00:07:34,420 --> 00:07:40,780
And I don't need to encrypt the credentials file, so I'm going to hit enter here and skip to the next

88
00:07:40,780 --> 00:07:41,320
question.

89
00:07:41,710 --> 00:07:44,950
Now I can choose a theme for the editor.

90
00:07:45,460 --> 00:07:48,880
Just keep everything looking the same, so continue with default.

91
00:07:49,450 --> 00:07:55,720
And at this point, I can also select to use either Ace or Monaco is the text editor.

92
00:07:55,720 --> 00:08:02,770
And since I'm working with no tradition to, I'll go for the new Monaco text editor.

93
00:08:05,190 --> 00:08:09,000
And will also allow its functionaries to load external modules.

94
00:08:09,180 --> 00:08:12,780
Say yes to that, and the Settings file is now.

95
00:08:13,850 --> 00:08:18,320
Written completed so it can have a look and show use cat so that.

96
00:08:21,080 --> 00:08:27,960
And there is the updated file looks like the original Polish court changes in settings.

97
00:08:28,070 --> 00:08:33,560
For example, look for one that is easy to spot up here.

98
00:08:34,590 --> 00:08:37,310
Last time I showed you the code editor segment.

99
00:08:37,670 --> 00:08:41,030
This was said to Ace and now set to Monaco.

100
00:08:41,060 --> 00:08:49,940
By the we said All right, to make these changes effective, I will need to restart the note read instance.

101
00:08:51,110 --> 00:08:52,590
To do that, I say no.

102
00:08:53,000 --> 00:08:53,450
Read.

103
00:08:55,490 --> 00:08:57,560
Restart with a hyphen here.

104
00:09:00,780 --> 00:09:02,370
OK, give it a few moments.

105
00:09:02,530 --> 00:09:10,260
It's spinning in the back and and it got a few seconds for the restart process to finish.

106
00:09:11,030 --> 00:09:13,080
I'll give it a go now just to refresh this page.

107
00:09:14,940 --> 00:09:15,540
Not yet.

108
00:09:26,780 --> 00:09:27,610
OK, here we go.

109
00:09:28,240 --> 00:09:35,620
So remember that I have set user authentication security settings has changed, so I'm going to log

110
00:09:35,620 --> 00:09:38,740
in with my user name and password now.

111
00:09:39,340 --> 00:09:41,680
So my no trip instance is protected.

112
00:09:42,980 --> 00:09:44,180
And there's my flow.

113
00:09:44,540 --> 00:09:51,140
That's because I set the appropriate file name for a note, for instance, to look for flows.

114
00:09:51,770 --> 00:09:52,640
Everything's here.

115
00:09:55,420 --> 00:10:00,250
And you can also check out one of the other changes, for example, have a look at one of the function

116
00:10:00,250 --> 00:10:04,160
modes to see the new error code.

117
00:10:04,240 --> 00:10:15,580
Text editor Just now, Monica can see it's got a different style code completion as well that wasn't

118
00:10:15,580 --> 00:10:17,680
available in the past and so on.

119
00:10:17,690 --> 00:10:18,640
So this is Monica.

120
00:10:19,180 --> 00:10:30,640
So this is what the wizard can do, where you can now configure your note read instance by going through

121
00:10:30,640 --> 00:10:37,450
a series of questions and providing answers, and therefore configuring your instance of note read without

122
00:10:37,450 --> 00:10:40,000
a risk of making a mistake in the configuration.

123
00:10:40,570 --> 00:10:41,740
So just to wrap it up here.

124
00:10:42,010 --> 00:10:49,810
Remember, before you go ahead and use the widget, create a backup copy of your settings, file and

125
00:10:49,810 --> 00:10:55,420
every now and then also create a backup copy of your Flo's file just in case you need to revert back

126
00:10:55,870 --> 00:10:58,480
to an earlier version of your flukes.
