Changes for page Node-RED_Install and Use
Last modified by Herong Lu on 2024/03/05 08:37
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -27,25 +27,27 @@ 27 27 28 28 [[image:image-20220526161040-1.png]] 29 29 30 -**Verify if the installation was successful** 31 31 32 - Type inthecommandlineinterfacenode-red31 +(% style="color:blue" %)**Verify if the installation was successful** 33 33 33 +Type in the command line interface ** (% style="color:red" %)node-red(%%)**(% style="color:red" %) 34 + 34 34 The following information appears to prove that the installation has been successful 35 35 36 36 [[image:image-20220526161103-2.png]] 37 37 38 38 40 + 39 39 === 1.1.2 If you want to start Node-RED as a background process === 40 40 41 41 42 -Type in the command line interface nohup node-red & 44 +Type in the command line interface (% style="color:red" %)**nohup node-red &** 43 43 44 44 It will prompt after startup 45 45 46 46 [[image:image-20220519104601-5.png]] 47 47 48 -After seeing the above information, press enter 50 +After seeing the above information, press **enter** 49 49 50 50 Type in the command line exit 51 51 ... ... @@ -76,10 +76,12 @@ 76 76 77 77 Take NBSN95 mod1 UDP protocol as an example 78 78 79 -After logging into the interface click '+'to create a flow81 +After logging into the interface click** (% style="color:red" %)"+" (%%)**to create a flow 80 80 81 81 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519133634-1.png?rev=1.1||alt="image-20220519133634-1.png" height="231" width="972"]] 82 82 85 + 86 + 83 83 Rename the stream 84 84 85 85 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519134042-2.png?rev=1.1||alt="image-20220519134042-2.png" height="552" width="565"]] ... ... @@ -90,33 +90,46 @@ 90 90 91 91 Drag UDP into the editing area 92 92 97 + 98 + 93 93 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519134533-5.png?rev=1.1||alt="image-20220519134533-5.png"]] 94 94 101 + 95 95 The same method as above, drag and drop functions and debug into the editing area 96 96 97 97 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519134850-6.png?rev=1.1||alt="image-20220519134850-6.png"]] 98 98 106 + 107 + 99 99 configure UDP in 100 100 101 101 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519135402-7.png?rev=1.1||alt="image-20220519135402-7.png"]] 102 102 112 + 103 103 Write to the UDP port that the device node sends to the server 104 104 105 105 Example My UDP device node sends to server port 8585 106 106 just write 8585 107 107 108 -Note that the port that is already in use cannot be used. If the receiving fails, you need to check whether the port of the server is occupied. The sending port of the device node should not use the default port used by the server, such as a common port such as 8080. 109 109 119 +(% style="color:red" %)**Note: that the port that is already in use cannot be used. If the receiving fails, you need to check whether the port of the server is occupied. The sending port of the device node should not use the default port used by the server, such as a common port such as 8080.** 120 + 121 + 110 110 In order to avoid data confusion, different types of nodes do not use the same UDP port, because different nodes have different data formats and different functions. 111 111 112 112 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519135915-8.png?rev=1.1||alt="image-20220519135915-8.png"]] 113 113 126 + 114 114 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519144651-14.png?rev=1.1||alt="image-20220519144651-14.png"]] 115 115 129 + 116 116 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519141355-11.png?rev=1.1||alt="image-20220519141355-11.png"]] 117 117 132 + 118 118 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519141704-12.png?rev=1.1||alt="image-20220519141704-12.png"]] 119 119 135 + 136 + 120 120 When the node successfully sends data, the effect shown in the following figure will appear 121 121 122 122 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519150455-15.png?rev=1.1||alt="image-20220519150455-15.png"]] ... ... @@ -220,13 +220,13 @@ 220 220 221 221 222 222 223 -=== 2.4.1 1.Generate txt document directly === 240 +=== 2.4.1 1. Generate txt document directly === 224 224 225 225 Sample JSON file:链接转到示例JSON文件[[image:image-20220713102658-1.png]] 226 226 227 227 228 228 229 -=== 2.4.2 2.Use sqlite database === 246 +=== 2.4.2 2. Use sqlite database === 230 230 231 231 232 232 ==== **1. Install SQLite** ====