728x90
https://nodered.org/docs/tutorials/first-flow
Creating your first flow : Node-RED
Creating your first flow Overview This tutorial introduces the Node-RED editor and creates a flow that demonstrates the Inject, Debug and Function nodes. 1. Access the editor With Node-RED running, open the editor in a web browser. If you are using a brows
nodered.org
ํํ ๋ฆฌ์ผ ๋ณด๊ณ ๋ฐ๋ผํด๋ดค์จ
- localhost:1880 ์ ์ํ์ฌ Node-red browser editor ์ด๊ธฐ
- ํ๋ ํธ์ ์๋ ๋ ธ๋๋ฅผ ์ํฌ์คํ์ด์ค๋ก ๋๋๊ทธํ๊ณ , ๊ฐ ๋ ธ๋๋ฅผ ๋๋ธํด๋ฆญํ์ฌ ์ํ๋๋๋ก ์์
- Flow๋ฅผ ์์ฑํ์ผ๋ฉด, ๋ฐฐํฌํ๊ธฐ๋ฅผ ํด๋ฆญํ๋ค.
- Inject ๋ฒํผ์ ๋๋ฅด๊ณ , ๋๋ฒ๊ทธ ์ฌ์ด๋๋ฐ์์ ๊ฒฐ๊ณผ๋ฅผ ํ์ธํ๋ค.
Inject Node: flow์ ๋ฉ์์ง๋ฅผ ๋ฃ์ด์ค
Function Node: JavaScript๋ก function ์์ฑ. Payload๋ฅผ ๋ฐ์์ ์์ ์ํ ํ ๋ค์ ๋ ธ๋๋ก ๋๊ฒจ์ค
Debug Node: payload๋ฅผ ๋๋ฒ๊ทธ ์ฌ์ด๋๋ฐ์ ๋ณด์ฌ์ค๋ค
728x90
'๊ฐ์ธ ๊ณต๋ถ > IoT' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
docker ์์ telegraf, influxdb(1.x) ์ปจํ ์ด๋ ์ฌ๋ ค์ mqtt ์ผ์ ๋ฐ์ดํฐ ์์งํ๊ธฐ (1) | 2024.11.27 |
---|---|
docker ์์ telegraf, influxdb(2.x) ์ปจํ ์ด๋ ์ฌ๋ ค์ mqtt ์ผ์ ๋ฐ์ดํฐ ์์งํ๊ธฐ (1) | 2024.11.26 |
node-red API์ Auth์ค์ (2) | 2024.09.30 |
MQTT (2) | 2023.11.27 |