For questions related to Node-RED, a programming tool used in the Internet of Things based on Node.js.
Questions tagged [node-red]
17 questions
9
votes
2 answers
Does Node-Red support multi-request flows (i.e. sessions)?
I gave Node-Red a short test-run this week. It is not clear to me whether it supports flows that encompass more than one request. Does Node-Red have a request-per-flow or a session-per-flow model?
Having worked with data-flow based programming tools…
Chris Steinbach
- 734
- 4
- 13
8
votes
1 answer
How to add payload to a posted MQTT topic?
I am experimenting with node-red, connecting it to my MQTT broker.
The input (listening to a topic) works fine.
I also would like to send to a topic some payload ipon some triggers. In the example below, this would be on a query to a webservice:
I…
WoJ
- 865
- 1
- 6
- 14
6
votes
3 answers
Controlling normal bulbs brightness using Sonoff devices
I am doing a home automation project in which I should be able to control the lights on/off but more than that, the brightness of the lights.
I am using Home Assistant (not hassbian) and Node-Red along with MQTT.
I am using a normal bulb I purchased…
Eric Lim
- 161
- 1
- 8
6
votes
1 answer
node-red - node.error does not stop flow sometimes
I think, node.error does not halt the flow in all cases. My aim is to catch errors, save the payload and stop the flow.
Please refer the observations and experiments below.
Observation
Function node - Neither error is caught nor does the flow…
cogitoergosum
- 1,091
- 7
- 18
6
votes
1 answer
node-red - Units of work
I have a MQTT Input node that kicks of database operations (SELECT and INSERT) for PostgreSQL database. The database operations are done with node-contrib-postgres-multi.Since these operations are separated by function nodes, I am saving portion of…
cogitoergosum
- 1,091
- 7
- 18
5
votes
1 answer
What are the conceptual differences and similarities between OpenHAB, Home Assistant and Node RED?
I have at home some ready-made sensors I bought and more custom ones will come, therefore I would like to collect all their data and to set rules/actions based on them.
I looked into the various alternatives but, after discovering Node RED, it's not…
FarO
- 303
- 1
- 7
5
votes
0 answers
Node red MQTT node cannot connect to Azure IoT Hub
I am aware that there is Azure IoT Hub palette in Node-red, which is specifically designed to interact with Azure IoT Hub. I tried that and it worked fine most of the time. However, due to an instability issue I am curious to compare that palette…
Leonard AB
- 151
- 1
5
votes
1 answer
node-red - Replicating message flows per MQTT subscribing client
I want a MQTT subscription client to consume messages from AWS IoT broker. On AWS IoT broker, wild card topic subscription is not supported. In our use case, we know the upper bound of number of possible subscriptions. We also know, when a device is…
cogitoergosum
- 1,091
- 7
- 18
5
votes
1 answer
node-red - Metrics display with pm2?
The Node-RED documentation is clear - set metrics to true to track flow execution and memory usage information. So, I stopped Node-RED with pm2, edited the settings.js file and started Node-RED. But, no metric output is seen in the…
cogitoergosum
- 1,091
- 7
- 18
5
votes
0 answers
Dashboard of historical data in iot_datasourse
I have historical data stored in an SQL database as date in the format (2017.10.27 12:00:25) and the corresponding temperature in the format (26.55). I am using the node iot_datasourse to show the data and the debug message shows the time and the…
Alice Coutinho
- 51
- 2
4
votes
2 answers
Building a special effects rig
I'm not sure if this is the best place to ask but I will give it a try. I build mechanisms that are used in commercials, tv shows, window displays, multimedia art etc. They generally involve electronic control over relays, solenoids, stepper motors,…
Mike C
- 41
- 2
2
votes
2 answers
Custom sensor readings with Amazon Alexa
TLDR:
I want to query Alexa for the current humidity sensor reading by asking:
"What is the current humidity, Alexa?"
The answer should be similar to:
"The current humidity level is 56.7%"
Here is my setup:
I have a bunch of ESP8266 with a…
oh.dae.su
- 560
- 1
- 6
- 14
1
vote
2 answers
Time Out for Raspberry Pi running Node-RED, Mosquitto, Wireless Xiao ESP32C3
I have a Raspberry Pi Zero 2W on 32bit PiOS running the following Docker containers: Node-RED, Mosquitto, and Influxdb. I have a Seeed Studios Xiao ESP32C3 running a C program compiled by the Arduino IDE, that monitors a BMP280. In Node-Red, I…
Gordon Shephard
- 11
- 2
1
vote
1 answer
Different message payload for two debug nodes from single output
In NodeRed, I am seeing a different message payload sent to two debug nodes that are connected to the same output.
Here is the debug output. Take note of the identical message id, and the different 'bri' value.
When I export the nodes, it all…
1
vote
0 answers
Node-red running on DietPi show gpio nodes as not available
So this, running the latest DietPi (DietPi_RPi-ARMv6-Bullseye) on Raspberry Pi zero W and using node-red-node-pi-gpio to talk to hardware.
However after deployment I see this:
RPi.GPIO python library is installed, I also installed WiringPi which…
Artur Kedzior
- 111
- 2