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
16
votes
5 answers

How to get first key pair element of JSON object without knowing key and deleting it in node red

I am writing a function node in node-red that is taking in a JSON object with arbitrary key val pairs: { 30000c690b61: "m8Jp_M7Lc0", 30000c290bdc65: "S3qg3Rkl8Y", 30000c290bdf1c: "KsLpfVrR4W", 30000c290be5d0: "oXasuCWV_q", 30000c29e618:…
Sharon Soleman
  • 191
  • 1
  • 2
  • 10
12
votes
1 answer

In node-red how can I send a message to the debug tab with out using debug node? Is there method I could call

I dont want use debug node. rather I want to just pass the debug message to the debug tab directly from my customized node. So I was wondering if may be there is a method that I could use to achieve this.
10
votes
1 answer

Getting ssh-keygen in Alpine docker

for node-red new functionality Projects - where one can sync with a git repo, I need ssh-keygen in my Alpine docker Image. According to Alpine Linux packages for v3.6, it is in the openssh-keygen package. Thus, I added the RUN commands as follows in…
Jéan
  • 639
  • 4
  • 11
  • 28
9
votes
3 answers

Running node-red-start after trying to create HTTPS "Error 140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small"

Hi everybody I have been setting up remote access to node-red for my raspberry Pi. I have amended the settings.js and installed node-red-admin but when I go to start node-red I get the following error: Error: error:140AB18F:SSL…
Simon Palmer
  • 384
  • 1
  • 2
  • 13
9
votes
1 answer

How to scale Node-RED horizontally across a cluster of nodes?

Is it possible to scale out Node-RED horizontally on a cluster of nodes? Could not find any documentation on the same. My scenario is to handle millions of events per second and process them in real time using Node-RED.
Narendra Naidu
  • 403
  • 2
  • 5
  • 17
9
votes
4 answers

How to trigger Python script on Raspberry Pi from Node-Red

I'm using Node-Red, hosted on a Raspberry Pi for an IoT project. How do I trigger a Python script that is on the raspi from Node-Red? I want to run a script that updates the text on an Adafruit LCD shield which is sitting on the Pi Should I be…
pronoob
  • 811
  • 1
  • 10
  • 20
8
votes
1 answer

How to properly test node-red nodes?

I'm developing a node-red node, and I'd like to know the best or intended way to test those nodes. I've been looking at some other nodes, and they look to depend on a peer installation of node-red itself and use the "helper.js" to load those nodes.…
Diego Pamio
  • 1,377
  • 13
  • 21
8
votes
3 answers

Implementing two inputs in Node-RED

In my current project, we are trying to implement the current application functionality using Node-RED. The functionality is shown below. Here, Fire state receives two inputs: (1) TemperatureSensor (2) SmokeDetector. Both Sensors are publishing…
user-517752
  • 1,188
  • 5
  • 21
  • 54
7
votes
1 answer

node-red - Node Credentials

Within a node-red flow I have a CassandraDatabase node with a user and pass. When I export the flow these credentials are not contained in the json, instead a flows_cred.json file appears with an encrypted string: {"$": "df28....... ... however if…
thechane
  • 349
  • 1
  • 2
  • 12
7
votes
2 answers

'require' keyword doesn't work within Node Red Function node

first line in a Node red Function Node is var moment = require('moment-timezone'); ... I am trying to establish a timezone correct date/time stamp for sensor data. I get the following error when this node runs; ReferenceError: require is not defined…
DPGUITARMAN
  • 161
  • 1
  • 2
  • 12
6
votes
3 answers

How can I convert negative binary number to int?

I want to read Data via node red modbus node from a data source. The range is -20000 to 20000, but the node cannot handle negative numbers, so I had to convert them to binary numbers (DWORD), split them in the lower and higher word and convert these…
c0nr3f
  • 87
  • 7
6
votes
1 answer

Recommended .gitignore for Node-RED

Is there a standard or recommended .gitignore file to use with Node-RED projects? Or are there files or folders that should be ignored? For example, should files like .config.json or flow_cred.json be ignored? At present I'm using the Node template…
Ayb4btu
  • 3,208
  • 5
  • 30
  • 42
6
votes
2 answers

How to add an object to the Node-RED msg.payload

I need the Accel object as part of the payload object: msg.payload.Accel.x : 1 msg.payload.Accel.y : 2 msg.payload.Accel.z : 3 How can I add Accel and x,z,y to payload, ideally using the change node? I tried this already: msg.payload.Accel['x'] =…
jpsstack
  • 1,221
  • 4
  • 18
  • 29
6
votes
2 answers

Combine two message payload

I'm using node-red on one of my projects. And I'm having trouble handling two message payloads in one node. I DO NOT want to deal with them SEPARATELY, instead I want this node to combine both inputs into ONE. All the answers I found online were…
6
votes
1 answer

use an external js library in a node-red function

I've installed a js library https://www.npmjs.com/package/fft with npm, how can I make this available in node-red functions ?
OpenStove
  • 714
  • 1
  • 11
  • 22
1
2 3
99 100