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
4
votes
3 answers

Is it possible to declare global variables in Node-RED and use them on the node configuration?

Supposing that I'm receiving information from many devices with the MQTT protocol and the following diagram is a simplified version of the block of one device: So let's also suppose that all other devices have exactly the same diagram, except for…
Rafael Muynarsk
  • 614
  • 2
  • 7
  • 21
4
votes
3 answers

How to secure the access to my Node-RED UI with httpNodeAuth

I have searched everywhere but I can't seem to find a way to secure my Node-RED user interface. The UI can be accessed by anonymous users... So far I have tried to set up the settings.json file and the httpNodeAuth part but nothing worked. How can I…
komarek
  • 371
  • 3
  • 4
  • 10
4
votes
1 answer

How can I remotely deploy a flow file in Node-RED?

Is there any way for deploying an existing Node-RED flow file myflow.json to a remote machine running Node-RED? After much googling, I stumbled upon this discussion in the relevant Google group, but it is not very enlightening. UPDATE (after the…
desertnaut
  • 57,590
  • 26
  • 140
  • 166
4
votes
2 answers

Understanding a this._(STRING) call in node RED

I'm trying to understand existing code of the Switch node in node-red to deal with and make my own node correctly. I'm stuck with these lines : var operators = [ {v:"eq",t:"=="}, {v:"neq",t:"!="}, …
N Frb
  • 107
  • 1
  • 9
4
votes
0 answers

spawn in javascript : delayed stdout , how to disable buffer?

I'm trying to execute a program (binary), that is printing values regularly on the stdout. with exec, it works fine, but with spawn, results only comes after a while, why ? what can I do about that ? const…
OpenStove
  • 714
  • 1
  • 11
  • 22
4
votes
1 answer

How to move a wire in Node-RED from one node to another?

Imagine I have wired a flow as follows: and now wish to rewire to: It seems that my option is to delete the existing wires and then re-wire them. My question is: Question Is it possible to move wires from one node to another as opposed to…
Kolban
  • 13,794
  • 3
  • 38
  • 60
4
votes
3 answers

bluemix node-red debug not working

I'm working with a node-red application inside Bluemix. It worked well but now the debug sidebar did not show no message. The application log traces correctly the messages incoming from the IoT device. I tried to deploy again, to change browser,…
4
votes
1 answer

How to get output from NodeRed Mysql node

I want to get out put from NodeRed mysql node. Here image of connection : Select Query is : msg.topic = "SELECT * t.TableID FROM booking t where t.bookingdate='"+formattedDate+"' and t.TableID = 3"; Output i am trying to…
rwahid
  • 111
  • 2
  • 2
  • 10
4
votes
2 answers

Nodejs seems to be not working; npm do work, however

I was running Node.js and Node-RED (depends on Node.js) normally one week ago. My system is Windows 8.1 64 bits. Nevertheless, today I am having a issue: As normally, I go to the node-red folder, and run node red.js. Then, surprisingly I got the…
pascoal
  • 411
  • 2
  • 8
4
votes
2 answers

HTTP POST in node-red js

I want to know how to do a http POST request with a JSON data into some server with API key. I searched in http://nodered.org/docs/ But they haven't written anything clearly. The documentation is very messy and not even good to understand. However,…
ninja.stop
  • 410
  • 1
  • 10
  • 24
4
votes
2 answers

Multiple HTTP requests in Node-RED

I need to do HTTP request on each url in array in Node.red. Basically I want to filter URLs by their API response. How do I do this? I cannot find any "loop" nodes or anything.
Kuroki Kaze
  • 8,161
  • 4
  • 36
  • 48
3
votes
2 answers

"Error: Node is either not clickable or not an HTMLElement" Puppeteer when i tried to get input by name

This is my HTML structure:

And this is the ways how i try to select the input: first way: const buttonTasas = await…
Jagcweb
  • 112
  • 1
  • 8
3
votes
1 answer

InfluxDB and NodeRED

It is quite a while since I coded something and it is the first time I am dealing with Influxdb and NodeRED. I am acquiring four sets of measurements from a sensor connected to a Pi. This is a screenshot taken during the debug, the measurements are…
FeliceM
  • 4,163
  • 9
  • 48
  • 75
3
votes
1 answer

insert msg object to mongodb (node-red)?

We're experimenting with storing data to a MongoDB by using node-red. As it is now, we can store data on the database, but it seems like only the 'msg.payload' is stored (as document) - and not the whole msg object. Which confuses us a little...…
Buster3650
  • 470
  • 2
  • 8
  • 19
3
votes
1 answer

How to create a custom Inject Node in NodeRED?

I want to start my node with a button click, so that I do not have to put the inject node in front. How would that be possible to register a button click in the javascript file? I have tried to put node.on("input", async function(msg){/*some…
user11057175