Questions tagged [node-red]

Node-RED is a data-flow programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.

Node-RED provides a browser-based flow editor to wire together flows using the wide range of nodes in the palette. A built-in library allows you to save useful functions, templates or flows for re-use.

The light-weight runtime is built on Node.js, and utilizes 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.

Problems that may require back and forth debugging may be better asked on the mailing list.

Official Website

Forum

GitHub

Library

Documentation

2181 questions
3
votes
2 answers

Node-RED Sending multiple msg only returning first msg

I'm trying to send multiple messages using NodeRed. I've tried two options: Trying to send using one output, and trying to send using two outputs. Processing1 code: var msg1 = {}; var msg2 = {}; msg1.topic = "fooTopic1"; msg2.topic =…
jerom987
  • 1,127
  • 9
  • 15
3
votes
2 answers

How to create multipart HTTP request in Node-RED

I'm trying to send a multipart request with the following form-data: ------WebKitFormBoundaryjFqPRXY6RQpdTRvE Content-Disposition: form-data; name="file"; filename="Sample.csv" Content-Type:…
libzz
  • 589
  • 2
  • 10
  • 29
3
votes
1 answer

Difference between "listen on" and "connect to" in Node-RED sockets

I'm learning Node-RED and trying to use its WebSockets node. I can't find any documentation that explains the difference between "listen on" and "connect to" type of sockets. Can someone explain that to me or point me in the right direction?
Rahul
  • 371
  • 1
  • 2
  • 12
3
votes
1 answer

"SyntaxError: Invalid or unexpected token" when running node-red using PM2 on Win ES 7

Node-red version: 0.19.5 PM2 version: 3.2.3 OS: Windows Embedded Standard 7 (Running on ICO300, with 8gb of RAM) Steps to reproduce Install node-red and pm2 on Windows ES 7 Run node red through pm2: pm2 start node-red Check node-red logs: pm2…
Leonard AB
  • 1,479
  • 1
  • 19
  • 30
3
votes
1 answer

node-red node-red-contrib-mssql "ConnectionError: Connection is closed."

I have just started using node-red and have setup a flow to connect to 3 mssql databases and export the results to mqtt, each has its own connection. However when running the flow i get "ConnectionError: Connection is closed." on at least one of the…
3
votes
1 answer

How to merge data from multiple payloads in Node-RED?

I want to merge data (from HTTP msg.payload) from 3 different sources. However, these HTTP requests may be called multiple times so data from the same source can be received more than…
libzz
  • 589
  • 2
  • 10
  • 29
3
votes
2 answers

nginx make node-red Lost connection to server but deploy works

Greetings I am configuring a node-red server and after apply Nginx redirect I got the following issue. After Using Nginx to redrect subdomain node-red.domain.com to localhost:1880 Nginx redirect config: server { listen 80; …
3
votes
1 answer

Monitor Node-red flows Execution

I am a newbie to node-red and working on some of the node red flows which involves connecting and processing data from MQTT, MongoDB etc. Is there any reporting page that displays information about flow executions and their related logs?
user8363477
  • 655
  • 4
  • 14
  • 24
3
votes
2 answers

How to add a custom CA-Certificate on an extended (node.js) docker image

I'm extending the node-red docker image which (currently) bases itself on the node:6docker image. I would like to add a custom SSL-Certificate into the docker-image's certificate store. Up to now I did this as follow: FROM…
Maus
  • 2,724
  • 5
  • 32
  • 37
3
votes
2 answers

Node-red - need a multi-input function for a number value

So I'm just getting to grips with node-red and I need to create a conditional global function. I have two separate global.payloads set to a number value of either 0 or 1. What I need to happen now is, if global.payload is equal to value 1 then…
blupacetek
  • 155
  • 1
  • 9
3
votes
1 answer

Unable to read XBee Api frame on Raspberry Pi 3 with Node-RED v0.17.3

I hope you'll help me to find out what's wrong with my configuration. I have to ZigBee nodes, one connected via usb to my mac and one connected via tx/rx ports to the raspberry pi 3. I wrote two scripts, one that sends Xee Api frame packets (from…
3
votes
1 answer

How to send msg.payload from function node to template node

How to send msg.payload from function node(tool) to template node(html)?