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. Lu1 +XWiki.Xiaoling - Content
-
... ... @@ -12,10 +12,8 @@ 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 14 14 15 - 16 16 == 1.1 Install Example for CENTOS == 17 17 18 - 19 19 === 1.1.1 Installation === 20 20 21 21 ... ... @@ -37,7 +37,6 @@ 37 37 [[image:image-20220526161103-2.png]] 38 38 39 39 40 - 41 41 === 1.1.2 If you want to start Node-RED as a background process === 42 42 43 43 ... ... @@ -47,22 +47,29 @@ 47 47 48 48 [[image:image-20220519104601-5.png]] 49 49 50 -After seeing the above information, press **enter** 47 +After seeing the above information, press **enter.** 51 51 52 -Type in the command line exit 49 +Type in the command line exit. 53 53 54 -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 51 +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. 55 55 56 56 57 - 58 58 == 1.2 Install in Dragino Gataway == 59 59 60 -Dragino Gateway is already installed, no need for users to install it by themselves 61 61 57 +The below models from Dragino already have Node-Red installed by default. Users no need to install it by themselves. 62 62 63 - =2.UseNode-RED =59 +* [[LPS8v2 Indoor LoRaWAN Gateway. >>https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] 64 64 61 +Other gateway model doesn't support built-in Node-Red server. 65 65 63 + 64 += 2. General Use of Node-RED = 65 + 66 + 67 +This section describes some basic features of Node-RED. For more info please check the [[Node-RED official document>>https://nodered.org/]]. 68 + 69 + 66 66 == 2.1 Login to Node-RED interface == 67 67 68 68 ... ... @@ -73,7 +73,6 @@ 73 73 [[image:image-20220519104115-4.png||height="280" width="768"]] 74 74 75 75 76 - 77 77 == 2.2 Add flow == 78 78 79 79 ... ... @@ -89,8 +89,10 @@ 89 89 90 90 [[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="535" width="548"]] 91 91 95 + 92 92 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519134318-3.png?rev=1.1||alt="image-20220519134318-3.png" height="461" width="753"]] 93 93 98 + 94 94 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519134346-4.png?rev=1.1||alt="image-20220519134346-4.png"]] 95 95 96 96 Drag UDP into the editing area ... ... @@ -140,7 +140,6 @@ 140 140 [[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" height="403" width="799"]] 141 141 142 142 143 - 144 144 === 2.2.1 About function === 145 145 146 146 ... ... @@ -151,7 +151,6 @@ 151 151 [[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" height="478" width="789"]] 152 152 153 153 154 - 155 155 == 2.3 Plot Chart for sensors == 156 156 157 157 ... ... @@ -162,12 +162,14 @@ 162 162 163 163 164 164 165 -(% style="color:blue" %)**1. Click Install 166 -2. Search the dashboard 167 -3. Click Install** 168 +(% style="color:blue" %)**1. Click Install** 168 168 170 +(% style="color:blue" %)**2. Search the dashboard** 169 169 172 +(% style="color:blue" %)**3. Click Install** 170 170 174 + 175 + 171 171 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519152956-17.png?rev=1.1||alt="image-20220519152956-17.png" height="763" width="835"]] 172 172 173 173 ... ... @@ -177,7 +177,6 @@ 177 177 [[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"]] 178 178 179 179 180 - 181 181 === 2.3.1 the line chart as an example === 182 182 183 183 ... ... @@ -205,7 +205,6 @@ 205 205 [[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" height="418" width="755"]] 206 206 207 207 208 - 209 209 === 2.3.2 the chart settings === 210 210 211 211 ... ... @@ -257,10 +257,10 @@ 257 257 258 258 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/node_red%20usage%20example/WebHome/image-20220519163141-37.png?rev=1.1||alt="image-20220519163141-37.png" height="203" width="735"]] 259 259 263 + 260 260 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. 261 261 262 262 263 - 264 264 == 2.4 Store Value == 265 265 266 266 ... ... @@ -267,15 +267,14 @@ 267 267 Regarding storage, we recommend two ways. 268 268 269 269 270 - 271 271 === 2.4.1 1. Generate txt document directly === 272 272 275 + 273 273 Sample JSON file:链接转到示例JSON文件 274 274 275 275 [[image:image-20220713102658-1.png||height="346" width="728"]] 276 276 277 277 278 - 279 279 === 2.4.2 2. Use sqlite database === 280 280 281 281 ... ... @@ -295,19 +295,21 @@ 295 295 296 296 ==== (% style="color:blue" %)**3. Import sample flow**(%%) ==== 297 297 300 + 298 298 Refer to the import example below to import the sqlite example flow 299 299 300 300 Download sample JSON file link: 链接 301 301 302 -= 3. Input Flow = 303 303 306 += 3. Import Input Flow for Dragino Sensors = 304 304 305 -Directly import JSON files to generate flow 306 306 307 -D ownloadtherequiredJSONfilethroughthislink: 提供一个链接309 +Dragino provides input flow examples for the sensors. 308 308 309 - TakeLHT65asan example(thisnode isalreadyregistered withTTN,MQTTprotocol toconnect)311 +User can download the required JSON file through [[Dragino Node-RED input flow template>>https://github.com/dragino/dragino-end-node-decoder]]. 310 310 313 +Take LHT65 as an example (Assume this node is already registered with TTN, MQTT protocol to connect) 314 + 311 311 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524175748-3.png?rev=1.1||alt="image-20220524175748-3.png"]] 312 312 313 313 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524175814-4.png?rev=1.1||alt="image-20220524175814-4.png"]] ... ... @@ -322,6 +322,8 @@ 322 322 323 323 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524184521-2.png?rev=1.1||alt="image-20220524184521-2.png" height="648" width="773"]] 324 324 329 + 330 + 325 325 Configure information consistent with your TTN 326 326 327 327 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524184722-3.png?rev=1.1||alt="image-20220524184722-3.png" height="349" width="758"]] ... ... @@ -328,10 +328,13 @@ 328 328 329 329 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524192830-4.png?rev=1.1||alt="image-20220524192830-4.png" height="376" width="758"]] 330 330 337 + 338 + 331 331 API keys generated by the password for you 332 332 333 333 [[image:http://8.211.40.43:8080/xwiki/bin/download/Main/Node-RED/Directly%20import%20JSON%20files%20to%20generate%20flow/WebHome/image-20220524193028-5.png?rev=1.1||alt="image-20220524193028-5.png" height="370" width="759"]] 334 334 343 + 335 335 Topic modify it to the following format 336 336 337 337 v3/(% style="color:red" %)Application ID(%%)@ttn/devices/(% style="color:red" %)End device ID(%%)/up