본문 바로가기

Node-RED 노드 만들기 3. 플로우 실행을 위한 Injection 노드 만들기 Inject란 플로우를 시작하기 위한 신호이며, http post 요청으로 이루어진다. Node-RED의 기본 노드인 Inject 노드를 사용하여 Inject를 트리거 할 수 있다. 플로우를 시작하기 위해선 주입(Inject)이 이루어져야 한다. 이러한 Inject는 기본 노드인 Inject노드로 할 수 있고, 만들수도 있다. 다만 이러한 Inject가 없다면, 플로우가 있어도 해당 플로우를 시작 할 수 없다. 이번 포스팅에서는 이러한 플로우의 첫번째 노드, 즉 시작이 되는 노드를 어떻게 만드는지에 대해 알아본다. Inject는 사용자가 원하는 시점에 수동으로 진행될수도, 타이머를 걸어두어 자동으로 진행될수도 있다. 수동 (클릭) Injection 클릭을 통해 플로우를 시작하는 노드를 만들어 본다. 노드.. 더보기
Node-RED 노드 만들기 1. 간단한 노드 만들기 이 포스팅에서는 docker 기반 nodered에서 간단한 노드를 직접 만들어 사용하는것을 목표로 한다. Creating Nodes : Node-RED Creating Nodes The main way Node-RED can be extended is to add new nodes into its palette. Nodes can be published as npm modules to the public npm repository and added to the Node-RED Flow Library to make them available to the community. Since Node-RED 1.3 nodered.org 커스텀 노드를 만드는데 사용되는 파일은 크게 3가지다. js파일, html파일,.. 더보기
Node-RED란 Node-Red에 대해 간단히 알아보고, 설치(docker) 및 간단한 실습에 대한 포스팅이다. Node-RED Built on Node.js The light-weight runtime is built on Node.js, taking full advantage of its event-driven, non-blocking model. This makes it ideal to run at the edge of the network on low-cost hardware such as the Raspberry Pi as well as in the cloud. With nodered.org 노드레드란 웹을 이용하여 잘 코딩된 모듈들(내가 직접 만들거나 남이 만든걸 사용하거나)을 통해 내가 원하는 플로우(파이프.. 더보기