/r/nodered

Photograph via snooOG

A place to share nodes and flows, and discuss Node-RED, a low-code tool for event-driven applications.

Node-RED is a drag and drop programming tool made by IBM Emerging Technology to automate the Internet of Things.

You can think of it as the glue that connects your phone to your air conditioner, so that your AC is on half an hour before you get home.

Project home page at: http://nodered.org

/r/nodered

13,722 Subscribers

0

Question: Omron simulator and node red

I would like to opreate node-red, width omron intergrated simulation.

Anyone who knows if it is possible, then please explain how?

3 Comments
2024/04/03
18:40 UTC

1

Problem with Azure Repos and Nodered

I have a NodeRed deployed inside my EKS and i linked a project within my Azure Repos

When I'm trying to pull it says this:

https://preview.redd.it/z94a9nn84asc1.png?width=565&format=png&auto=webp&s=9606769d2f0c2d246eb2b8e897bf7043b25fb5de

I tried to get into my container bash but git is not working (not sure if this is the solution)

thank you!

0 Comments
2024/04/03
15:01 UTC

1

Change the msg.payload

Hey guys,

i am quite new to MQTT and Node-Red so this might be a dumb question:

I have an IKEA Tradfri switch using zigbee2mqtt sending me this:

https://preview.redd.it/5gcjvotrw9sc1.png?width=274&format=png&auto=webp&s=f69ff0fcc6bb3ed8b906985b3e24f79f5f1fa98a

I want to switch off an dimmer with the message {"state": "OFF"}

This works if i trigger it manually with a time stamp.

I have an switch node looking for close (or open) but it doesnt seem to work

https://preview.redd.it/d390ete7x9sc1.png?width=520&format=png&auto=webp&s=0d4bddcdfba6e3fc4ce72a3e4f8f7b4ace422983

What am i doing wrong? When i use a mqtt message only sending "close" it works but not with the message from the remote

2 Comments
2024/04/03
14:23 UTC

2

OpenPLC to PHysical device through MQTT?

Good morning all,

I am hoping if someone can confirm a functional diagram for me. Confusion stems around the control of the end physical device (fan).

Can the MQTT broker pass control signals that are produced off-site from OpenPLC/Node-red?

I

2 Comments
2024/04/02
20:52 UTC

5

Node-RED and Peakboard, how?

Hi guys, I'm currently evaluating the best way to get the connection between Peakboard and Node-RED instance up and running. Has anyone ever done this? Unfortunately there's no data source or extension, so I'm thinking about REST / JSon or maybe put some kind of PLC in between. I'm still in research phase .-)

6 Comments
2024/03/31
11:22 UTC

3

Node-RED FUNDAMENTALS

2 Comments
2024/03/30
17:53 UTC

3

help with a project on nodered

hi everyone, i am really stuck i have no idea how to get started in this project.

We're working on an automated irrigation system and we need to create a dashboard first, so basically we're going to collect data from temperature sensors and humidity sensors, and then let the function control the valvs, basically it has to be an intelligent irrigation system, we have very small time to assign it, and we weren't offered any help by our prof, we also have a quite heavy workload.

i am wondering, if someone has any source i might use, or practical steps i can follow, thankk you for reading my post.

Me and my colleague woud appreciate any help.

11 Comments
2024/03/30
00:24 UTC

1

Does NRCHKB work with New Homekit Architecture?

My Homekit app has for a while been prompting me to upgrade to the iOS 16.1 New Homekit Architecture but I have been putting it off for fear that it might mess up my integration with Node-RED using contrib-homekit-bridged (NRCHKB). I can’t find anything on github or elsewhere that talks about compatibility issues. Has anyone experienced problems that I should be aware of?

3 Comments
2024/03/29
13:14 UTC

1

Node for alternating output?

Is there any node that can send output to alternate output-pins based on the number of messages received?
I.e. Message 1 -> Pin 1, Message 2 -> Pin 2 e.t.c. and then reset back to 1.

The use case would be either to enable toggle-functionality or having different scenarios based on a button being pressed x-number of times.

6 Comments
2024/03/28
09:33 UTC

2

Web interface completely unaccessible for screen readers that are used by the blind

Hi. I just got done uninstalling Node Red from my MacBook Air 2017 with macOS Monterey because I was unable to use the web interface. I installed it on the computer, accessed the web interface from my iPhone with the VoiceOver screen reader turned on, and Was met with a ton of unlabeled links and buttons. This is something that really needs to be looked at, people who are blind can also be people who are techy, or people who could benefit from it. Anyone here know of a different web interface that I can use, or know how I can get in contact directly with the developers?

3 Comments
2024/03/27
22:55 UTC

0

Multiple dashboards, am i missing the obvious, or is Node Red?

I'm running Node-Red v3.1.5. in Docker on my synology. I created several flows, i.e. one for my home in which i process data from my solar system (amog other stuff). And a flow which processes data received from my RV through a mqtt broker. I want to serve a separate dashboard for each flow, i.e.

http:/:1880/ui1 for my home data

http:/:1880/ui2 for my RV data

or

link separate tabs on the dashboard to different url's.

It appears there is no option to achieve this very basic requirement in the node red dashboard?

For the record: i'm not looking for user authentication like in Flowfuse, i just want to publish different dashboads through different URL's from one Node red instance.

Update: i found out i can at least switch between

http://:1880/ui/#!/0 and http://:1880/ui/#!/1 to switch between tabs, so i could invoke my nginx reverseproxy to set up two different urls (i can block access to the other tabs in that scenario by disabling the Nav menu in the dashbord groups)

4 Comments
2024/03/26
19:33 UTC

2

Add matter device to Node Red?

Hey guys, I’m completely new to node red, I was wandering is it possible to add a matter device directly to node red? I have it running on home assistant, and I’m trying to achieve two way light switching. I have it working at the moment by adding the matter devices to home assistant and using it in node red that way, however there’s a 1s delay, it’s not much but I was wandering if I add the matter devices directly to node red, would it reduce the lag? And also how is this even possible?

2 Comments
2024/03/26
01:01 UTC

3

Using subflows and Environment variables

I want to use a subflow containing a websocket, but with the websocket configured using a sub-flow environment variable (i.e. so I don't have lots of subflows with the same websocket).

I have had success previously setting $IP and using ${IP} in the node configuration but I can't make this work for a websocket. I have also upgraded node and node-red since trying this, so I don't know if the syntax has changed.

I get nothing, no errors or logs

0 Comments
2024/03/25
21:56 UTC

3

Trying to resent TCP packets captured from Wireshark - what am I doing wrong?

I have an intruder alarm panel with an IP connection, and I'm trying to reverse engineer the protocol to use within NR.

I have the software for the alarm on my PC, and I can connect to the alarm easy peasy via IP.

I used Wireshark to capture the TCP packets between PC and alarm. It's pretty simple. A few hello call and responses, a quick config check, and then a ping every 10s or so.

I had hoped that I could just resend the captured packets to the alarm IP and port, but no such luck. I can connect, but I get nothing back. Sometimes I get 'ATH' or 'ATZ' in response, but this just doesn't seem like any other message I've seen from the alarm, which makes me wonder if there's something else going on?

To test, I made a little NR flow to mimic the alarm. it waits for the expected data from the software, and replies with the same data I captured from the panel on Wireshark. I pointed the software to the NR IP and the software thinks it's connected to an alarm panel, so that test worked. I had hoped to then reverse that flow so that it would send the data from the software, to the alarm system, but I just can't make it work so that doesn't help me much..

I'm feeling pretty stuck on this, and would really appreciate any advice, even suggestions on things to google or look into would be great.

Thank you all in advance...

0 Comments
2024/03/25
09:07 UTC

0

chatgpt node

am using the node-red-contrib-custom-chatgpt, how do i use the output of chatgpt? and what is that function called? possibly to automatically send an email using that output?

4 Comments
2024/03/25
07:44 UTC

1

Using one of the node-red-contrib-alexa-remote2 variants (applestrudel, cakebaked) is it possible to set the device dynamically

Can I set msg.device to "kitchen" or something like that?

2 Comments
2024/03/24
01:39 UTC

2

error -4085

when i try to instal some pallets I get an error while some instal just fine. the error i get is -4058. does anyone now how to solve this.

the command i typed is npm i node-red-contrib-whatsapp-link like itrs said on the site.

https://preview.redd.it/dlhfawcbsypc1.png?width=858&format=png&auto=webp&s=7611adb74d626fe7153d28b52cf9a0d9a49631bb

4 Comments
2024/03/22
22:47 UTC

2

Node-RED Project Compilation

0 Comments
2024/03/22
09:04 UTC

0

Assistance Required to learn Node-Red within 2 Weeks!

Afternoon All,
Would any kind soul be available to answer questions/teach Node-Red?
A university assignment has requested we use this but has not provided any content or lectures on it.

Basic requirements of what I will need to achieve:
-Program flow for receiving and decoding The Things Network (TTN) Data (I believe I have crudely worked this one out)
-Effective HMI for decoded TTN sensor data and OpenPLC interaction.
-Publish data to a Map service API (I believe a HTTP request block, but no idea how to use it)
-Modbus/OpenPLC functionality
-Java assistance (Of course they teach C or C++, then jump language)

DM's are open otherwise I will probably end up annoying a lot of users on here.
And yes, I have expressed my displeasure that they are assessing us on tools they have not taught!
Thanks in advance for any assistance.

16 Comments
2024/03/22
06:58 UTC

1

Websocket from spring boot backend

Ive a spring boot backend with stomp websockets. In my frontend I subscribe with stomprx on them. For testing i want to connect to my backend/ws with my node red app. Its possible to connect but if i use listen on a topic /order or smth else it doesnt connect anymore. I dont get a specific error. I use the standard ws node. Is it possible what i try? Do i need something to adapt? Thx

1 Comment
2024/03/20
19:01 UTC

1

Help with Detect Change

Hi, im new on Node red and wanted to make a node to detect the changes on a festval webpage to see if they add more performers.

I found this https://flows.nodered.org/flow/ac0df44bdc6a3b93c5e42794bc654d8d . The thing is that i dont reallt now how sql works with node red. Im using node red on home assistant and created a service that notifies me through telegram. This is what i've done:

Id love any advice or help, Thanks!!

https://preview.redd.it/ceve5zjp1jpc1.png?width=1332&format=png&auto=webp&s=e80e5dff740eb371e327e590e63dedf3cabcbe88

https://preview.redd.it/ckh68joq1jpc1.png?width=737&format=png&auto=webp&s=05e6f47d500f40d9eecd379ab2ade7d84140535f

2 Comments
2024/03/20
17:51 UTC

4

In Postman… POST on http request

In Postman, I can make a connection via POST and then do a GET for some data. There is an “Inherit Auth from Parent” option. How can I accomplish this in Node RED?

7 Comments
2024/03/18
19:24 UTC

0

Node-RED Project Compilation

0 Comments
2024/03/18
00:46 UTC

1

can't update palettes [err] code ENOTEMPTY

Hi guys,

I am trying to update my palettes and get the follwoing errors in my log:

I looked for some solutions but could't fix the problem.

Any idea what I am doing wrong?

2024-03-17T10:35:58.306Z Install : node-red-contrib-modbus 5.30.0
2024-03-17T10:38:04.407Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-modbus@5.30.0
2024-03-17T10:38:04.645Z [err] npm
2024-03-17T10:38:04.645Z [err] WARN config production Use \--omit=dev` instead. 2024-03-17T10:38:07.471Z [err] npm ERR! 2024-03-17T10:38:07.471Z [err] code ENOTEMPTY 2024-03-17T10:38:07.471Z [err] npm ERR! syscall rename 2024-03-17T10:38:07.471Z [err] npm 2024-03-17T10:38:07.471Z [err] ERR! path /data/node_modules/cpu-features 2024-03-17T10:38:07.471Z [err] npm ERR! dest 2024-03-17T10:38:07.471Z [err] /data/node_modules/.cpu-features-92RA4R1E 2024-03-17T10:38:07.471Z [err] npm ERR! errno -39 2024-03-17T10:38:07.472Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/data/node_modules/cpu-features' -> '/data/node_modules/.cpu-features-92RA4R1E' 2024-03-17T10:38:07.473Z [err] 2024-03-17T10:38:07.473Z [err] npm ERR! 2024-03-17T10:38:07.473Z [err] A complete log of this run can be found in: 2024-03-17T10:38:07.473Z [err] npm ERR! /data/.npm/_logs/2024-03-17T10_38_04_629Z-debug-0.log 2024-03-17T10:38:07.482Z rc=217`

0 Comments
2024/03/17
10:37 UTC

1

Error in Javascript code

Hi Guys,

I get a warning that the following piece of code in a fuction note has an error despite working perfectly.

Can you help me identifying the error please?

var payload=msg.payload
url="http://10.10.0.201:4321/070699/hk1_temp_setback="+(180)
msg.url=url
return msg;

7 Comments
2024/03/17
10:35 UTC

1

Can this be simplified?

Hi all, Node-Red novice here. I have one of the moes 4 button scene controllers and each button has 3 “press” options (short, double click, and long press). I’m currently using separate switch nodes to filter the zha entity ID coming from Home Assistant, the button endpoint ID, and then the press type. My question is, is there a node that can filter all 3 of these properties at once? If I keep using switch nodes for all the buttons and press options my flow is going to get pretty cluttered and confusing. I’m thinking I need a node that has multiple property options but can’t seem to figure it out. Thanks for your help!

7 Comments
2024/03/17
01:45 UTC

3

Lost connection to server

Hello all, I am trying to run a basic flow that takes temperature and humidity sensor data from my raspberry pi 3, converts it to a JavaScript object and outputs it on a dashboard but I am getting an error when I load the dashboard. Node-Red gives the Lost Connection warning and nothing shows up on my dashboard. The following happens in my terminal.

15 Mar 14:53:43 - [info] Starting flows 15 Mar 14:53:44 - [info] Started flows 15 Mar 14:53:44 - [info] [mqtt-broker:My Pi] Connected to broker: mqtt://localhost:1883 15 Mar 14:54:23 - [red] Uncaught Exception: 15 Mar 14:54:23 - [error] TypeError: Cannot read properties of undefined (reading 'unmask') at Receiver.unmask (/home/pi/.node-red/node_modules/ws/lib/Receiver.js:294:47) at Receiver.finish (/home/pi/.node-red/node_modules/ws/lib/Receiver.js:463:25) at Receiver.expectHandler (/home/pi/.node-red/node_modules/ws/lib/Receiver.js:451:33) at Receiver.add (/home/pi/.node-red/node_modules/ws/lib/Receiver.js:95:24) at Socket.realHandler (/home/pi/.node-red/node_modules/ws/lib/WebSocket.js:800:20) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) nodered.service: Main process exited, code=exited, status=1/FAILURE nodered.service: Failed with result 'exit-code'. nodered.service: Service RestartSec=20s expired, scheduling restart. nodered.service: Scheduled restart job, restart counter is at 3. Stopped Node-RED graphical event wiring tool. Started Node-RED graphical event wiring tool. 15 Mar 14:54:47 - [info] Welcome to Node-RED

I am running on Raspberry Pi OS Buster. I suspect it might have to do with Web Socket. I ran an apt update and apt upgrade to try and update dependencies but, to no avail. Any idea what’s happening here and how I can resolve it?

2 Comments
2024/03/16
12:24 UTC

2

Automation based on Schlage lock state change

I have two Schlage Connect Zwave locks in Home Assistant using Keymaster and they work great. I would like to set up a flow where unlocking the front door will automatically unlock the foyer door so you don't have to enter your code a second time. I can't seem to find a node that sees my door lock devices, though. It's called FrontDoorLock and doesn't appear in any of the nodes I've tried. Does anyone else have a similar flow? I know these locks are pretty common for Zwave users. Thanks!

2 Comments
2024/03/15
22:07 UTC

0

I need help

Is there any way that when I go to deploy my flow to have it automatically open up as a new window on a different monitor that is connected through HDMI?

5 Comments
2024/03/15
02:30 UTC

0

Endpoint Health Check - Node-RED

0 Comments
2024/03/14
23:53 UTC

Back To Top