/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,826 Subscribers

1

I can connect node-red with tinkercad?

Hello guys this is my first time here, i am new in this and i need a project with 2 analog signals.But i dont have nothing in real life.

1 Comment
2024/04/19
16:57 UTC

1

http request bearer token

I am using the oauth2 node (for MS apps) and I get an access token. I need to use this as a bearer token. How can I pass this to my http request node without physically putting it in there?

Is there a msg. property like msg.url?

1 Comment
2024/04/16
23:47 UTC

3

Streaming usb webcam on nodered dashboard

Hello guys has someone before tried streaming a usb webcam feed on a node red dashboard? If so how can it be done?

Also, are the raspberry camera nodes on nodered only specific to the raspbery camera module or would also work for a usb cam connected to it?

Thankiies.

Nota: i found tutos using raspberry pi to take pictures with a usbcam every say 100ms and process those images to turn them into a video, i wonder if it s possible to stream that feed on nodered; i m gonna try it anyways.

4 Comments
2024/04/16
21:18 UTC

1

React Nodered Implementation

Hi im working in a React application with Nodered used for backend, i get an error when i try to update a record from a table. The program should, when i click the save button, trigger a http node with the PATCH Method.
Other node using different method like GET or POST are working, but when i try to use method like PATCH it wouldn't.
In the browser network console when i click the button, that should trigger the http node with PATCH method, it says this:

https://preview.redd.it/xs6pl1l0ytuc1.png?width=1044&format=png&auto=webp&s=24d7d85c66269c0386e156df5a730b47b13cf465

The React code seems to be everything okay, im 99% sure, because the other node work

1 Comment
2024/04/16
11:57 UTC

1

Aqara mini switch is firing every 50 minutes?!

I have a simple flow set up for my Aqara mini switch. I have stripped just about everything out of it while troubleshooting, and still I am having bizarre behavior: NodeRed thinks that the button is firing every 50 minutes (give or take). I have no idea why.

It is behaving correctly when I do, in fact, press the button… but then it continues to fire at these intervals even when I’m not pressing it.

Any tips on what is happening or how to troubleshoot?

1 Comment
2024/04/15
15:23 UTC

1

Wrapper opc DA -opc UA

i have a project where i need to create a Node-RED application to serve as a Wrapper OPC DA – OPC UA. The OPC DA Client node (https://flows.nodered.org/node/node-red-contrib-opcda-client) will be utilized to read two variables from an OPC DA Server (e.g., Kepware, FPOPCServer, etc.) and publish them to the OPC UA Server created within Node-RED.

Do you have some ideas how to do this?

I created a server opc da but i cand connect to it! It gives me feedback that problem is in connection and server is timeout ,also I can’t connect to it using datafeed!

1 Comment
2024/04/15
13:55 UTC

4

Fetch a single row from CSV file

Hi guys,

I'm doing a MSc project for IoT course, and the only part that doesn't work really well is CSV reading: I have to extract a single row from it and to do it I read the CSV file thanks read node (passing all CSV as a single string), then thanks CSV node I parse them in JSON (creating one message per row), then I used a function filter to get only one the selected message (this node knows which one pass thanks to a previous flow.set)
Is there a way to do it in a faster way? Or at least not using flow variables, because the CSV file is quite big and I can't achieve an high throughput

7 Comments
2024/04/15
10:49 UTC

1

Using NodeRed to Disable the side buttons on a TV Panel

We have a 3x3 TV Wall in our school auditorium space. One of the panels receives false commands from the side buttons on the panel, which constantly makes the TV Change source, volume, brightness, etc. (This issue exists even when the TV is by itself and only plugged into power, so not another AV controller causing the issue, just the buttons on the side of the physical unit)

This was solved in the past by a previous colleague, who had a RaspberryPi running NodeRed, that he plugged directly into the single TV Panel network port, ran a command and then it fixed the issue (Until there is a power outage). It essentially disabled receiving the commands from those buttons Unfortunately it was not documented anywhere.

With not much experience in the NodeRed or AV Space, wondering if somebody could point me in some possibly directions for me to explore and learn how this may have been achieved so that I can resolve this without spending $$$ on uninstalling and reinstalling, or a replacement as the panel is no longer manufactured.

TV Panel Model: BDL5588XC

Any information would be helpful. I have come across some API's but don't have the disable side buttons option, some mention of MQTT but as a novice not sure what resources that are relevant I can use to upskill.

5 Comments
2024/04/15
04:50 UTC

1

How to search e-mails for keywords?

I have been having some trouble finding sources on how to search for keywords within an email on Nodered. I have already gotten the debug to display emails from a specific email address, but I cannot seem to find where I can filter them which contain some keywords. I've only just started usng Nodered as part of my university course however we are required to find all of our information online. Thanks!

2 Comments
2024/04/15
04:24 UTC

1

Regular sending of variable input

Hi there!

I have the following problem. I need a node in which I can store a variable input (e.g. An integer) which then sends the content every few minutes.

With the inject node I can send regularly, but I can't change what it sends. With the node-red-contrib-state node I can change the input, but it only fires upon state change and not in definable time periods.

Right now I'm writing the data to a text file an use an injection node to read that text file every few minutes. It works, but it's not very elegant.

Is there any solution I missed?

3 Comments
2024/04/14
21:33 UTC

1

Looking for some help automating my cat's litter box

I have a contact sensor on the door (flap) so I know when it's been opened, but my brain just doesn't seem to want to figure out the right flow.

When the sensor is triggered (entry), my idea was to wait until it is triggered again (exit) or until 2 minutes has elapsed (just in case it doesn't trigger on exit). Additionally, each time it is triggered the flow should ignore additional sensor changes for say 5 seconds (in case the flap swings).

Can anyone point me in the right direction for this? Thanks!

2 Comments
2024/04/14
20:13 UTC

1

Controlling relay with call service node

Hi

I am running Node Red on my Home Assistant server and would like to turn a Tasmota flashed Sonoff mini R2 relay ON/OFF using the call service node.

I successfully managed to toggle a light by injecting it with a timestamp using this config

https://preview.redd.it/1p9e2ymghduc1.png?width=794&format=png&auto=webp&s=a6ea196001b7adbb79521d62f13ff2b7d8a6b051

When I try to do the same with the relay it does not work. When selecting entity I noticed the relay says switch.tasmota under it so I changed the domain to switch.

https://preview.redd.it/y6coubnohduc1.png?width=794&format=png&auto=webp&s=b2dcadbe4b84b8dd99376cc70b629c2aebd3d860

There clearly is no connection to the device but I do not know why. I assume the node is configured incorrectly since the relay is online and it is possible to switch on/off from the Home Assistant dashboard.

https://preview.redd.it/xt02o0w4iduc1.png?width=399&format=png&auto=webp&s=3489ab1bc5a0e4f3470b29be8cca163a17a2102a

5 Comments
2024/04/14
04:34 UTC

2

Counter with Constant?

Hi Folks.

I have this counter.

https://preview.redd.it/bpl2fprllauc1.png?width=894&format=png&auto=webp&s=fe2467cd7b15d9f30891d48cefc3e2bd772660b2

+1 adds one. -1 subtracts one.

https://preview.redd.it/8s03blv7mauc1.png?width=1053&format=png&auto=webp&s=75d1fba784029733455a876ea6d6adf47752d063

I now have a constant of 22.

where I add either +1 or -1 with each press of the counter, depending on which button I press.

How do I do that?

Thx for your help

7 Comments
2024/04/13
18:50 UTC

2

Thermostat Communication

Hi does anyone know of an off the shelf decent looking touch screen thermostat with or without schedules that will pass and accept this data from node red, at the moment the plan is to use a tablet as interface but I've just tried a nice looking meross stat the only issue is the node red module doesn't support thermostats just plugs and garage door equipment. I am going to try and add to the existing project and see if I can get a solution but I'm not sure I will have any success and time is limited.

2 Comments
2024/04/13
16:35 UTC

0

Node Red - PiPhi Network

Have you guys heard about this project PiPHI Network yet? I think they are interested in what Node Red is doing and will be integrating Node Red and incentivizing developers, tinkerers and DIY enthusiasts in the future for contributing to their software. Pretty cool concept. I think the website is https://piphi.network

3 Comments
2024/04/11
22:16 UTC

0

Setting variable value to last operation

I have a flow which runs action 1, 2 or 3 based on which door is open. How can I set the value of a new node to the action number that was last ran?

9 Comments
2024/04/11
05:52 UTC

12

Node-RED Multiplayer Mode

🚀 Exciting Update By Node-RED Co-creator and CTO of FlowFuse

https://flowfuse.com/blog/2024/04/node-red-multiplayer/

👥 Introducing Multiplayer Mode! Collaborate in real-time✨ See who's editing alongside you! 🔍 Were you waiting for this feature? Give us a 💙 if you were!

0 Comments
2024/04/10
18:01 UTC

0

Help Again

So, I'm trying to create a hint system that displays on a different tab on the node-red dashboard - that I have working properly, however an issue I have is that I need to also have a system for images to show as a hint as well. I also need to have it be in a dropdown menu to select different options for the pictures as well. I have the images but I just don't have it switching between the images like I would like it to. Any help? I will also DM the JSON for the code that I have right now to anyone that would like to help

0 Comments
2024/04/10
02:54 UTC

6

Role-Based Access for your Node-RED applications

Check our latest blog post on Securing your Node-RED Environment with RBAC

https://flowfuse.com/blog/2024/04/role-based-access-control-rbac-for-node-red-with-flowfuse/

0 Comments
2024/04/09
19:34 UTC

3

Webinar: FlowFuse Platform Update

Hey everyone. We are hosting a webinar looking back on the last 3 years of FlowFuse and doing a platform update highlighting some of the latest features at the end of the month on April 30th.

https://flowfuse.com/webinars/2024/elevating-nodered-a-flowfuse-platform-update/

0 Comments
2024/04/08
14:29 UTC

3

MS Teams

Does anyone know how to integrate with Microsoft Teams? I know of sending emails to a channel from the email address but I wanted to send it to a chat/group chat. Also want to be able to read a teams channel messages.

4 Comments
2024/04/07
22:37 UTC

1

Dynamic Link Out msg.target...where do I put this?

Sorry if it's a dumb question, but I have in my flow a Link Out which on static times out. I want to set it to Dynamic but it's asking to place a msg.target with the name of the Link In node....but when I change the Link Call node to dynamic, all the fields disappear. Am I to set the msg.target on the initial State Change node?

example flow:

[

{

"id": "783299beae7a3e26",

"type": "server-state-changed",

"z": "5d9ef4efc1666033",

"g": "6649b9da953f2da0",

"name": "Samsung TV Turns Off",

"server": "b3afb4a3.474b18",

"version": 5,

"outputs": 2,

"exposeAsEntityConfig": "",

"entityId": "media_player.samsung_frame_tv",

"entityIdType": "exact",

"outputInitially": false,

"stateType": "str",

"ifState": "off",

"ifStateType": "str",

"ifStateOperator": "is",

"outputOnlyOnStateChange": true,

"for": "0",

"forType": "num",

"forUnits": "minutes",

"ignorePrevStateNull": true,

"ignorePrevStateUnknown": true,

"ignorePrevStateUnavailable": true,

"ignoreCurrentStateUnknown": true,

"ignoreCurrentStateUnavailable": true,

"outputProperties": [

{

"property": "payload",

"propertyType": "msg",

"value": "",

"valueType": "entityState"

},

{

"property": "data",

"propertyType": "msg",

"value": "",

"valueType": "eventData"

},

{

"property": "topic",

"propertyType": "msg",

"value": "",

"valueType": "triggerId"

}

],

"x": 140,

"y": 640,

"wires": [

[

"c0abd9fd3c4bc46f"

],

[]

]

},

{

"id": "c0abd9fd3c4bc46f",

"type": "link call",

"z": "5d9ef4efc1666033",

"g": "6649b9da953f2da0",

"name": "Dreamview Off",

"links": [

"7a2d461729543fc6"

],

"linkType": "dynamic",

"timeout": "",

"x": 360,

"y": 640,

"wires": [

[]

]

},

{

"id": "b3afb4a3.474b18",

"type": "server",

"name": "Home Assistant",

"addon": true,

"rejectUnauthorizedCerts": true,

"ha_boolean": "",

"connectionDelay": true,

"cacheJson": true,

"heartbeat": true,

"heartbeatInterval": "25",

"areaSelector": "friendlyName",

"deviceSelector": "friendlyName",

"entitySelector": "friendlyName",

"statusSeparator": "",

"statusYear": "hidden",

"statusMonth": "hidden",

"statusDay": "numeric",

"statusHourCycle": "default",

"statusTimeFormat": "h:m",

"enableGlobalContextStore": true

}

]

1 Comment
2024/04/07
08:22 UTC

2

Switch blocks when msg.payload is an Array

Evening All,

Can someone please explain how switch blocks work?I am attempting to split based on the element position of an array.

As an example, I am trying to use a simple array [1,2,3,4] with those values going to the corresponding outputs. Is it the switch node property that is wrong?

Thanks

https://preview.redd.it/l1ks21nkftsc1.jpg?width=848&format=pjpg&auto=webp&s=7c24f668c07c23931072c4a4e52ad308de35f170

https://preview.redd.it/oy7hr2nkftsc1.jpg?width=515&format=pjpg&auto=webp&s=73558069537b9df5fb3250c6a897c77ed8d5ed30

3 Comments
2024/04/06
07:55 UTC

1

None of my nodes have an Old State in msg data...how do I add?

I'm trying to make a flow based on previous state...but when I go into debug, none of my sensors have an old state...what did I miss?

https://imgur.com/a/SB45kCK

5 Comments
2024/04/05
04:53 UTC

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!

1 Comment
2024/04/03
15:01 UTC

2

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

3

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

Back To Top