Changes for page Node-RED_Install and Use
Last modified by Mengting Qiu on 2024/11/29 10:15
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 2 removed)
Details
- Page properties
-
- Content
-
... ... @@ -12,8 +12,10 @@ 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 + 15 15 == 1.1 Install Example for CENTOS == 16 16 18 + 17 17 === 1.1.1 Installation === 18 18 19 19 ... ... @@ -35,6 +35,7 @@ 35 35 [[image:image-20220526161103-2.png]] 36 36 37 37 40 + 38 38 === 1.1.2 If you want to start Node-RED as a background process === 39 39 40 40 ... ... @@ -44,29 +44,22 @@ 44 44 45 45 [[image:image-20220519104601-5.png]] 46 46 47 -After seeing the above information, press **enter .**50 +After seeing the above information, press **enter** 48 48 49 -Type in the command line exit .52 +Type in the command line exit 50 50 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 .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 52 52 53 53 57 + 54 54 == 1.2 Install in Dragino Gataway == 55 55 60 +Dragino Gateway is already installed, no need for users to install it by themselves 56 56 57 -The below models from Dragino already have Node-Red installed by default. Users no need to install it by themselves. 58 58 59 - *[[LPS8v2Indoor LoRaWAN Gateway.>>https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]]63 += 2. Use Node-RED = 60 60 61 -Other gateway model doesn't support built-in Node-Red server. 62 62 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 - 70 70 == 2.1 Login to Node-RED interface == 71 71 72 72 ... ... @@ -77,6 +77,7 @@ 77 77 [[image:image-20220519104115-4.png||height="280" width="768"]] 78 78 79 79 76 + 80 80 == 2.2 Add flow == 81 81 82 82 ... ... @@ -92,10 +92,8 @@ 92 92 93 93 [[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"]] 94 94 95 - 96 96 [[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"]] 97 97 98 - 99 99 [[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"]] 100 100 101 101 Drag UDP into the editing area ... ... @@ -145,6 +145,7 @@ 145 145 [[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"]] 146 146 147 147 143 + 148 148 === 2.2.1 About function === 149 149 150 150 ... ... @@ -155,6 +155,7 @@ 155 155 [[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"]] 156 156 157 157 154 + 158 158 == 2.3 Plot Chart for sensors == 159 159 160 160 ... ... @@ -165,14 +165,12 @@ 165 165 166 166 167 167 168 -(% style="color:blue" %)**1. Click Install** 165 +(% style="color:blue" %)**1. Click Install 166 +2. Search the dashboard 167 +3. Click Install** 169 169 170 -(% style="color:blue" %)**2. Search the dashboard** 171 171 172 -(% style="color:blue" %)**3. Click Install** 173 173 174 - 175 - 176 176 [[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"]] 177 177 178 178 ... ... @@ -182,6 +182,7 @@ 182 182 [[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"]] 183 183 184 184 180 + 185 185 === 2.3.1 the line chart as an example === 186 186 187 187 ... ... @@ -209,6 +209,7 @@ 209 209 [[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"]] 210 210 211 211 208 + 212 212 === 2.3.2 the chart settings === 213 213 214 214 ... ... @@ -260,10 +260,10 @@ 260 260 261 261 [[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"]] 262 262 263 - 264 264 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. 265 265 266 266 263 + 267 267 == 2.4 Store Value == 268 268 269 269 ... ... @@ -270,14 +270,15 @@ 270 270 Regarding storage, we recommend two ways. 271 271 272 272 270 + 273 273 === 2.4.1 1. Generate txt document directly === 274 274 273 +Sample JSON file:链接转到示例JSON文件 275 275 276 -Sample JSON file: [[https:~~/~~/www.dropbox.com/sh/mduw85jcuwsua22/AAAvwPhg9z6dLjJhmZjqBf_ma?dl=0>>https://www.dropbox.com/sh/mduw85jcuwsua22/AAAvwPhg9z6dLjJhmZjqBf_ma?dl=0]] 277 - 278 278 [[image:image-20220713102658-1.png||height="346" width="728"]] 279 279 280 280 278 + 281 281 === 2.4.2 2. Use sqlite database === 282 282 283 283 ... ... @@ -298,20 +298,16 @@ 298 298 ==== (% style="color:blue" %)**3. Import sample flow**(%%) ==== 299 299 300 300 301 -Refer to the import example below to import the sqlite example flow 302 302 303 - DownloadsampleJSON file link: [[https:~~/~~/www.dropbox.com/sh/mduw85jcuwsua22/AAAvwPhg9z6dLjJhmZjqBf_ma?dl=0>>https://www.dropbox.com/sh/mduw85jcuwsua22/AAAvwPhg9z6dLjJhmZjqBf_ma?dl=0]]300 += 3. Input Flow = 304 304 305 305 306 - =3. ImportInputFlowforDragino Sensors=303 +Directly import JSON files to generate flow 307 307 305 +Download the required JSON file through this link: 提供一个链接 308 308 309 - Dragino providesinputflowexamplesforthe sensors.307 +Take LHT65 as an example (this node is already registered with TTN,MQTT protocol to connect) 310 310 311 -User can download the required JSON file through [[Dragino Node-RED input flow template>>https://github.com/dragino/dragino-end-node-decoder]]. 312 - 313 -Take LHT65 as an example (Assume this node is already registered with TTN, MQTT protocol to connect) 314 - 315 315 [[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"]] 316 316 317 317 [[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"]] ... ... @@ -326,8 +326,6 @@ 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-20220524184521-2.png?rev=1.1||alt="image-20220524184521-2.png" height="648" width="773"]] 328 328 329 - 330 - 331 331 Configure information consistent with your TTN 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-20220524184722-3.png?rev=1.1||alt="image-20220524184722-3.png" height="349" width="758"]] ... ... @@ -334,13 +334,10 @@ 334 334 335 335 [[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"]] 336 336 337 - 338 - 339 339 API keys generated by the password for you 340 340 341 341 [[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"]] 342 342 343 - 344 344 Topic modify it to the following format 345 345 346 346 v3/(% style="color:red" %)Application ID(%%)@ttn/devices/(% style="color:red" %)End device ID(%%)/up
- image-20240104095739-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Lu - Size
-
... ... @@ -1,1 +1,0 @@ 1 -47.2 KB - Content
- image-20240104100026-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Lu - Size
-
... ... @@ -1,1 +1,0 @@ 1 -34.4 KB - Content