Changes for page Node-RED_Install and Use
Last modified by Mengting Qiu on 2024/11/29 10:15
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Lu - Content
-
... ... @@ -1,24 +1,16 @@ 1 1 (% class="wikigeneratedid" id="HEndDeviceFrequencyBand" %) 2 - ** Table of** **Contents:**2 + **Contents:** 3 3 4 4 {{toc/}} 5 5 6 += Installation = 6 6 7 - 8 - 9 -= 1. Installation = 10 - 11 - 12 12 Check installation instruction for different OS from this link: [[https:~~/~~/nodered.org/docs/getting-started/>>https://nodered.org/docs/getting-started/]] 13 13 10 +== Install Example for CENTOS == 14 14 12 +=== Installation === 15 15 16 -== 1.1 Install Example for CENTOS == 17 - 18 - 19 -=== 1.1.1 Installation === 20 - 21 - 22 22 (% class="box infomessage" %) 23 23 ((( 24 24 Reference Instruction from this link: [[https:~~/~~/github.com/node-red/linux-installers>>https://github.com/node-red/linux-installers]] ... ... @@ -36,9 +36,8 @@ 36 36 [[image:image-20220526161103-2.png]] 37 37 38 38 39 -=== 1.1.2If you want to start Node-RED as a background process ===31 +=== If you want to start Node-RED as a background process === 40 40 41 - 42 42 Type in the command line interface nohup node-red & 43 43 44 44 It will prompt after startup ... ... @@ -51,18 +51,13 @@ 51 51 52 52 The above is the installation and startup process of nodered. If you don't understand anything, you can go to the nodered official website. There are installation instructions for various systems. The address has a link at the top 53 53 45 +== Install in Dragino Gataway == 54 54 55 55 56 -= =1.2 Installin DraginoGataway==48 += Use Node-RED = 57 57 50 +== Login to Node-RED interface == 58 58 59 - 60 -= 2. Use Node-RED = 61 - 62 - 63 -== 2.1 Login to Node-RED interface == 64 - 65 - 66 66 Enter your public IP address followed by the port number 1880 67 67 68 68 example:[[http:~~/~~/xxx.xx.xx.xx:1880/>>http://119.91.62.30:1880/]] ... ... @@ -70,10 +70,8 @@ 70 70 [[image:image-20220519104115-4.png||height="352" width="969"]] 71 71 72 72 59 +== Add flow == 73 73 74 -== 2.2 Add flow == 75 - 76 - 77 77 Take NBSN95 mod1 UDP protocol as an example 78 78 79 79 After logging into the interface click '+' to create a flow ... ... @@ -121,11 +121,8 @@ 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"]] 123 123 108 +=== About function === 124 124 125 - 126 -=== 2.2.1 About function === 127 - 128 - 129 129 If you are familiar with JS code, you can write it yourself 130 130 If you are not familiar, we have the JS code for each type of node, you just need to copy and paste it into it 131 131 ... ... @@ -132,13 +132,10 @@ 132 132 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519141833-13.png?rev=1.1||alt="image-20220519141833-13.png"]] 133 133 134 134 116 +== Plot Chart for sensors == 135 135 136 -== 2.3 Plot Chart for sensors == 137 - 138 - 139 139 If you need data visualization, please refer to the following 140 140 141 - 142 142 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519152802-16.png?rev=1.1||alt="image-20220519152802-16.png"]] 143 143 144 144 ~1. Click Install ... ... @@ -151,11 +151,8 @@ 151 151 152 152 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519153335-19.png?rev=1.1||alt="image-20220519153335-19.png"]] 153 153 132 +=== the line chart as an example === 154 154 155 - 156 -=== 2.3.1 the line chart as an example === 157 - 158 - 159 159 Drag the line chart to the editing area 160 160 161 161 Just drag and drop as many as you need, or you can copy ... ... @@ -172,11 +172,8 @@ 172 172 173 173 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519154812-22.png?rev=1.1||alt="image-20220519154812-22.png"]] 174 174 150 +=== the chart settings === 175 175 176 - 177 -=== 2.3.2 the chart settings === 178 - 179 - 180 180 Double-click while setting up the node as above 181 181 182 182 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519160314-23.png?rev=1.1||alt="image-20220519160314-23.png"]] ... ... @@ -211,48 +211,32 @@ 211 211 212 212 At this point, the basic demonstration of nodered is completed. If you need to beautify the chart and various visualizations, you can go to the official documentation of nodered for further understanding. 213 213 186 +== Store Value == 214 214 215 - 216 -== 2.4 Store Value == 217 - 218 - 219 219 Regarding storage, we recommend two ways 220 220 190 +=== 1.Generate txt document directly === 221 221 222 - 223 -=== 2.4.1 1.Generate txt document directly === 224 - 225 225 Sample JSON file:链接转到示例JSON文件[[image:image-20220713102658-1.png]] 226 226 194 +=== 2.Use sqlite database === 227 227 196 +==== 1.Install SQLite ==== 228 228 229 -=== 2.4.2 2.Use sqlite database === 230 - 231 - 232 -==== **1. Install SQLite** ==== 233 - 234 - 235 235 [[image:image-20220713111030-2.png]] 236 236 200 +==== 2.After the installation is successful, the nodes in the picture will appear ==== 237 237 238 - 239 -==== **2. After the installation is successful, the nodes in the picture will appear** ==== 240 - 241 - 242 242 [[image:image-20220713111200-3.png]] 243 243 204 +==== 3.Import sample flow ==== 244 244 245 245 246 -== ==**3. Import sampleflow**====207 +== Email Notification == 247 247 248 248 249 -= =2.5EmailNotification==210 += Input Flow = 250 250 251 - 252 - 253 -= 3. Input Flow = 254 - 255 - 256 256 Directly import JSON files to generate flow 257 257 258 258 Download the required JSON file through this link: 提供一个链接 ... ... @@ -290,3 +290,14 @@ 290 290 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524193258-6.png?rev=1.1||alt="image-20220524193258-6.png"]] 291 291 292 292 After the modification is completed, click Deploy 249 + 250 +== MQTT == 251 + 252 +== UDP == 253 + 254 +== TCP == 255 + 256 +== Get data from LoRaWAN Server (TTN) == 257 + 258 + 259 += Example =