# \#function-node

**URL:** https://discourse.nodered.org/tag/function-node/20.md

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

---

## [Browser tools for Node-RED and IIoT](https://discourse.nodered.org/t/browser-tools-for-node-red-and-iiot/101796)

<div class="topic-metadata">

**Author:** [@saurabhholikar](https://discourse.nodered.org/u/saurabhholikar)\
**Replies:** 2\
**Last updated:** [17 September 2026 14:30 UTC](https://discourse.nodered.org/t/browser-tools-for-node-red-and-iiot/101796 "2026-09-17T14:30:54Z")

</div>

I built a collection of free browser tools for Node-RED and IIoT I was repeatedly creating MQTT, REST API, Modbus TCP and JSON flows, so I built some browser-based utilities to speed up the process. Current tools inclu…

---

## [Sekalum workflow idea – shown with n8n as example](https://discourse.nodered.org/t/sekalum-workflow-idea-shown-with-n8n-as-example/101727)

<div class="topic-metadata">

**Author:** [@luiscyphre](https://discourse.nodered.org/u/luiscyphre)\
**Replies:** 0\
**Last updated:** [3 September 2026 17:18 UTC](https://discourse.nodered.org/t/sekalum-workflow-idea-shown-with-n8n-as-example/101727 "2026-09-03T17:18:22Z")

</div>

Hi all, I posted a few things about Sekalum here before, so just a short project update. I made a small video to explain the basic workflow idea. The demo uses n8n because there is already a native Sekalum node there.…

---

## [Node-red-contrib-alexa-remote2-applestrudel - error on amazon login page](https://discourse.nodered.org/t/node-red-contrib-alexa-remote2-applestrudel-error-on-amazon-login-page/100755)

<div class="topic-metadata">

**Author:** [@mssib28](https://discourse.nodered.org/u/mssib28)\
**Replies:** 38\
**Last updated:** [30 July 2026 08:07 UTC](https://discourse.nodered.org/t/node-red-contrib-alexa-remote2-applestrudel-error-on-amazon-login-page/100755 "2026-07-30T08:07:25Z")

</div>

Had anybody the same issue? I follow the instructions in "node-red-contrib-alexa-remote2-applestrudel" and at the amazon login I'll get an error message. Thanks in advance.

---

## [(Async) multiple input for nodes\*](https://discourse.nodered.org/t/async-multiple-input-for-nodes/101476)

<div class="topic-metadata">

**Author:** [@Robert0](https://discourse.nodered.org/u/Robert0)\
**Replies:** 68\
**Last updated:** [22 July 2026 08:33 UTC](https://discourse.nodered.org/t/async-multiple-input-for-nodes/101476 "2026-07-22T08:33:52Z")

</div>

Yes, this works. No, it is not what you think it is. I went on to make an asynchronous subflow, which in reality is a upgrade to the grouping system. Doing so I accidentally allowed myself to mimic existing nodes, b…

---

## [Nodered 5.0 Editor fails open Function Tab](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248)

<div class="topic-metadata">

**Author:** [@Hubertus](https://discourse.nodered.org/u/Hubertus)\
**Replies:** 6\
**Last updated:** [19 June 2026 08:22 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248 "2026-06-19T08:22:45Z")

</div>

Hello. when I reload Node-RED in the browser, I can edit a function node. If I close the node and want to edit it again—or any other function node—the editor doesn't appear. Only after reloading Node-RED in the …

---

## [Linkcall continue flow on timeout](https://discourse.nodered.org/t/linkcall-continue-flow-on-timeout/101270)

<div class="topic-metadata">

**Author:** [@ZTHawk](https://discourse.nodered.org/u/ZTHawk)\
**Replies:** 5\
**Last updated:** [13 June 2026 11:10 UTC](https://discourse.nodered.org/t/linkcall-continue-flow-on-timeout/101270 "2026-06-13T11:10:11Z")

</div>

I would like to have the abillity to continue a flow even if there was a timeout. Best option would be to have the linkcall node to have a second output. First one is success and second one is failure (eg: timeout). Tha…

---

## [Help cleaning up old code. SEARCH seems rather poor](https://discourse.nodered.org/t/help-cleaning-up-old-code-search-seems-rather-poor/101156)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [30 May 2026 11:46 UTC](https://discourse.nodered.org/t/help-cleaning-up-old-code-search-seems-rather-poor/101156 "2026-05-30T11:46:08Z")

</div>

I am not sure it is a good thing, but my past is kind of haunting me. WAY BACK WHEN..... var was used to declare variables used in function node. This has made way to let. So I a thought I would go through and searc…

---

## [Http request payload](https://discourse.nodered.org/t/http-request-payload/101137)

<div class="topic-metadata">

**Author:** [@Philipp-K](https://discourse.nodered.org/u/Philipp-K)\
**Replies:** 5\
**Last updated:** [29 May 2026 06:11 UTC](https://discourse.nodered.org/t/http-request-payload/101137 "2026-05-29T06:11:58Z")

</div>

Hello Somehow I can't get to the solution. Is intended for an IO-Link Device with two analog out. I have two sliders for entering the target output value, adding folders to 16bit Value Topic, merging them into one num…

---

## [Handle json object](https://discourse.nodered.org/t/handle-json-object/101135)

<div class="topic-metadata">

**Author:** [@omni-support](https://discourse.nodered.org/u/omni-support)\
**Replies:** 2\
**Last updated:** [26 May 2026 20:22 UTC](https://discourse.nodered.org/t/handle-json-object/101135 "2026-05-26T20:22:22Z")

</div>

hello, I am pretty new to node-red, now I am working on one project which has mqtt json object as shown below: This object structure comes from 3rd party device, I can't change it, but I would like to change to my j…

---

## [Not understanding what's going on with the code](https://discourse.nodered.org/t/not-understanding-whats-going-on-with-the-code/101081)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 18\
**Last updated:** [22 May 2026 07:15 UTC](https://discourse.nodered.org/t/not-understanding-whats-going-on-with-the-code/101081 "2026-05-22T07:15:11Z")

</div>

Folks, this is a problem which has been hiding for a while. I just found/noticed it now. code: // get existing states const alarm = flow.get("alarm") || null const error = flow.get("error") || null const ip = flow.ge…

---

## [Accessing flow.variables](https://discourse.nodered.org/t/accessing-flow-variables/101076)

<div class="topic-metadata">

**Author:** [@RobinEckermann](https://discourse.nodered.org/u/RobinEckermann)\
**Replies:** 3\
**Last updated:** [19 May 2026 11:05 UTC](https://discourse.nodered.org/t/accessing-flow-variables/101076 "2026-05-19T11:05:43Z")

</div>

I'm a relative newbie, so apologies in advance if I'm framing a stupid question. I am saving a numeric value captured from a dashboard slider as flow.low - and a debug node shows it saved (as expected) with a numeric val…

---

## [Stuck with \`function\` nodes and \`env\` setting up](https://discourse.nodered.org/t/stuck-with-function-nodes-and-env-setting-up/100913)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [5 May 2026 23:58 UTC](https://discourse.nodered.org/t/stuck-with-function-nodes-and-env-setting-up/100913 "2026-05-05T23:58:24Z")

</div>

Sorry folks, but I am stuck. This is the code: let divisor = parseInt(env.get("DIVISOR")) || 2 let counter = context.get("counter") || 0 counter = (counter + 1) % divisor context.set("counter", counter) if (counter =…

---

## [Buffer Parser - Parsing data to Boolean](https://discourse.nodered.org/t/buffer-parser-parsing-data-to-boolean/100501)

<div class="topic-metadata">

**Author:** [@Zulpaedi](https://discourse.nodered.org/u/Zulpaedi)\
**Replies:** 3\
**Last updated:** [12 April 2026 09:32 UTC](https://discourse.nodered.org/t/buffer-parser-parsing-data-to-boolean/100501 "2026-04-12T09:32:44Z")

</div>

Hi, I am trying to parse the modbus read buffer data into separate bolean output by using buffer parser, however the output value it seems not following the correct data as per buffer data. Below is my configuration in…

---

## [Hi everyone,  I’m working on a Node-RED flow where I need to read the same parameter from multiple Modbus slaves (Slave IDs 1 to 100)](https://discourse.nodered.org/t/hi-everyone-i-m-working-on-a-node-red-flow-where-i-need-to-read-the-same-parameter-from-multiple-modbus-slaves-slave-ids-1-to-100/100634)

<div class="topic-metadata">

**Author:** [@adarshi](https://discourse.nodered.org/u/adarshi)\
**Replies:** 6\
**Last updated:** [24 March 2026 17:06 UTC](https://discourse.nodered.org/t/hi-everyone-i-m-working-on-a-node-red-flow-where-i-need-to-read-the-same-parameter-from-multiple-modbus-slaves-slave-ids-1-to-100/100634 "2026-03-24T17:06:26Z")

</div>

Requirements: Read the same register/parameter from each slave (IDs 1 → 100) Optimize the flow for low CPU utilization Ensure efficient polling (avoid unnecessary load or blocking) Insert/store each slave’s data into an…

---

## [How to extract temperature from msg.payload](https://discourse.nodered.org/t/how-to-extract-temperature-from-msg-payload/100583)

<div class="topic-metadata">

**Author:** [@satkey3](https://discourse.nodered.org/u/satkey3)\
**Replies:** 8\
**Last updated:** [19 March 2026 01:49 UTC](https://discourse.nodered.org/t/how-to-extract-temperature-from-msg-payload/100583 "2026-03-19T01:49:00Z")

</div>

Hi, I want to extract temperature from this msg.payload , using buffer parsing node or function node: msg.payload : string\[151\] "{"endpoint":{"serial\_number":"4cea591f-cb62-47b8-8eac-e3bddee155c6","third\_serial\_numbe…

---

## [Node red v 21.0.3. add in Home Assistent](https://discourse.nodered.org/t/node-red-v-21-0-3-add-in-home-assistent/100473)

<div class="topic-metadata">

**Author:** [@EddyCapture](https://discourse.nodered.org/u/EddyCapture)\
**Replies:** 7\
**Last updated:** [2 March 2026 14:29 UTC](https://discourse.nodered.org/t/node-red-v-21-0-3-add-in-home-assistent/100473 "2026-03-02T14:29:13Z")

</div>

After a longer period a looked into node red again. A picked two nodes and wanted couple them. This is from a output I wanted make a line to de debug node. I was not by able to made the connection. After scale up and dow…

---

## [Mysql node : inconsistent data](https://discourse.nodered.org/t/mysql-node-inconsistent-data/100467)

<div class="topic-metadata">

**Author:** [@Th3mis](https://discourse.nodered.org/u/Th3mis)\
**Replies:** 1\
**Last updated:** [27 February 2026 23:40 UTC](https://discourse.nodered.org/t/mysql-node-inconsistent-data/100467 "2026-02-27T23:40:23Z")

</div>

Hi, I'm Th3mis, I'm French and is my first topic. I use node-red-node-mysql 3.0.0 in my nodered instance v4.1.0 to exchanged data with my cluster Gallera 4. I need to perform a select query on a table to extract the p…

---

## [How to get unformatted time](https://discourse.nodered.org/t/how-to-get-unformatted-time/100441)

<div class="topic-metadata">

**Author:** [@scf](https://discourse.nodered.org/u/scf)\
**Replies:** 3\
**Last updated:** [24 February 2026 11:06 UTC](https://discourse.nodered.org/t/how-to-get-unformatted-time/100441 "2026-02-24T11:06:31Z")

</div>

How do I get unformatted time (milliseconds since the Epoch) from Date() or some other function call? I need to do this in a function, injecting a timestamp won't work for this. Thanks!

---

## [VSCode with Node-Red - Deploy Modified Nodes ONLY](https://discourse.nodered.org/t/vscode-with-node-red-deploy-modified-nodes-only/100420)

<div class="topic-metadata">

**Author:** [@Kockainside](https://discourse.nodered.org/u/Kockainside)\
**Replies:** 0\
**Last updated:** [20 February 2026 10:56 UTC](https://discourse.nodered.org/t/vscode-with-node-red-deploy-modified-nodes-only/100420 "2026-02-20T10:56:29Z")

</div>

Hello! Can someone share how to properly setup a VSCode to work with function nodes? I tried: "steveorevo/node-red-flow2src" and "functions-templates-manager". My issue is that both of them do a full deploy on the ser…

---

## [Advice for Modbus?](https://discourse.nodered.org/t/advice-for-modbus/100381)

<div class="topic-metadata">

**Author:** [@Janvi](https://discourse.nodered.org/u/Janvi)\
**Replies:** 2\
**Last updated:** [19 February 2026 11:46 UTC](https://discourse.nodered.org/t/advice-for-modbus/100381 "2026-02-19T11:46:48Z")

</div>

Up on now, my script is using the node-red-contrib-modbus and node-red-contrib-buffer-parser to access several Modbus-TCP solar devices with and without SunSpec. The script runs fine and stable for month with my dashb…

---

## [How i can use (ui-led )node](https://discourse.nodered.org/t/how-i-can-use-ui-led-node/100345)

<div class="topic-metadata">

**Author:** [@sulaiman](https://discourse.nodered.org/u/sulaiman)\
**Replies:** 12\
**Last updated:** [11 February 2026 18:45 UTC](https://discourse.nodered.org/t/how-i-can-use-ui-led-node/100345 "2026-02-11T18:45:25Z")

</div>

I am using flowfuse dashboard 2 in node red from my SCADA system Just I need help to use (ui-led) as a flashing depending on digital value

---

## [🚀 Just released @nagual69/node-red-pgvector v2.0.0!](https://discourse.nodered.org/t/just-released-nagual69-node-red-pgvector-v2-0-0/100320)

<div class="topic-metadata">

**Author:** [@nagual69](https://discourse.nodered.org/u/nagual69)\
**Replies:** 1\
**Last updated:** [5 February 2026 22:35 UTC](https://discourse.nodered.org/t/just-released-nagual69-node-red-pgvector-v2-0-0/100320 "2026-02-05T22:35:38Z")

</div>

Enterprise-grade #NodeRED nodes for #PostgreSQL + #pgvector: :white\_check\_mark: OpenTelemetry observability :white\_check\_mark: Distributed tracing :white\_check\_mark: Auto-retries :white\_check\_mark: Production-ready P…

---

## [Function nodes - How to reuse JS functions in my functions?](https://discourse.nodered.org/t/function-nodes-how-to-reuse-js-functions-in-my-functions/100202)

<div class="topic-metadata">

**Author:** [@aitor](https://discourse.nodered.org/u/aitor)\
**Replies:** 33\
**Last updated:** [24 January 2026 00:25 UTC](https://discourse.nodered.org/t/function-nodes-how-to-reuse-js-functions-in-my-functions/100202 "2026-01-24T00:25:16Z")

</div>

Hi everyone, I wanted to ask about your way of working when using function nodes. I usually code in function nodes, and since they're JavaScript, I use functions inside the function node. The problem I'm facing is that …

---

## [Shutting Down a Windows PC from Node-RED Running in Docker – Best Practices & Deployment Advice](https://discourse.nodered.org/t/shutting-down-a-windows-pc-from-node-red-running-in-docker-best-practices-deployment-advice/100122)

<div class="topic-metadata">

**Author:** [@hipatel93](https://discourse.nodered.org/u/hipatel93)\
**Replies:** 2\
**Last updated:** [9 January 2026 09:50 UTC](https://discourse.nodered.org/t/shutting-down-a-windows-pc-from-node-red-running-in-docker-best-practices-deployment-advice/100122 "2026-01-09T09:50:33Z")

</div>

I am relatively new to Node-RED and have been learning through daily contributions over the past few months. I am now approaching the stage where I can build a partial project, as shown in the attached image. Currently,…

---

## [name.toLowerCase is not a functiom](https://discourse.nodered.org/t/name-tolowercase-is-not-a-functiom/100120)

<div class="topic-metadata">

**Author:** [@ZainH](https://discourse.nodered.org/u/ZainH)\
**Replies:** 3\
**Last updated:** [9 January 2026 01:15 UTC](https://discourse.nodered.org/t/name-tolowercase-is-not-a-functiom/100120 "2026-01-09T01:15:35Z")

</div>

please help. i am trying to get the access token with a http request (post) and the msg.payload has the cfedentials, but I get the error below my flow My credentials the error error name: "TypeError" message: "na…

---

## [State value to set for "s7.1.DBs.DB1.\_2\_0" has to be type "boolean" but received type "string"](https://discourse.nodered.org/t/state-value-to-set-for-s7-1-dbs-db1-2-0-has-to-be-type-boolean-but-received-type-string/100089)

<div class="topic-metadata">

**Author:** [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Replies:** 2\
**Last updated:** [5 January 2026 22:12 UTC](https://discourse.nodered.org/t/state-value-to-set-for-s7-1-dbs-db1-2-0-has-to-be-type-boolean-but-received-type-string/100089 "2026-01-05T22:12:29Z")

</div>

Hi everyone, I’m sending an initialization from Node-RED to ioBroker for a Siemens LOGO. The initialization is sent, but I keep getting this error: State value to set for "s7.1.DBs.DB1.\_2\_0" has to be type "boolean" bu…

---

## [Why is my function text looking like this?](https://discourse.nodered.org/t/why-is-my-function-text-looking-like-this/100085)

<div class="topic-metadata">

**Author:** [@Suso](https://discourse.nodered.org/u/Suso)\
**Replies:** 3\
**Last updated:** [4 January 2026 23:54 UTC](https://discourse.nodered.org/t/why-is-my-function-text-looking-like-this/100085 "2026-01-04T23:54:11Z")

</div>

Hi. I don´t know what happened but when i try to edit my functions the indent of the text is weird. I am using the last version of node-red in windows 11, i tried in 2 different pcs an with chrome, firefox and brave…

---

## [Node-RED Freezing Issue After Running for a Period of Time](https://discourse.nodered.org/t/node-red-freezing-issue-after-running-for-a-period-of-time/99972)

<div class="topic-metadata">

**Author:** [@superaugus](https://discourse.nodered.org/u/superaugus)\
**Replies:** 7\
**Last updated:** [19 December 2025 07:54 UTC](https://discourse.nodered.org/t/node-red-freezing-issue-after-running-for-a-period-of-time/99972 "2025-12-19T07:54:41Z")

</div>

The main operation flow of my Node-RED program is as follows: Act as a client to connect to access control systems and elevators, and conduct command interaction with them. Act as a scheduling center to subscribe to do…

---

## [Replicate CURL -F arguments for plate-recognizer on-prem API call](https://discourse.nodered.org/t/replicate-curl-f-arguments-for-plate-recognizer-on-prem-api-call/99947)

<div class="topic-metadata">

**Author:** [@glossyio](https://discourse.nodered.org/u/glossyio)\
**Replies:** 2\
**Last updated:** [16 December 2025 00:48 UTC](https://discourse.nodered.org/t/replicate-curl-f-arguments-for-plate-recognizer-on-prem-api-call/99947 "2025-12-16T00:48:34Z")

</div>

This should be an easy-ball question for folks, but it's not connecting for me right now, so I would appreciate help. How do I build a node-red message that goes to an http request node that represents the curl below? T…

---

## [How do you securely give credentials to a stand-alone Function node?](https://discourse.nodered.org/t/how-do-you-securely-give-credentials-to-a-stand-alone-function-node/99831)

<div class="topic-metadata">

**Author:** [@hoolahoous](https://discourse.nodered.org/u/hoolahoous)\
**Replies:** 61\
**Last updated:** [8 December 2025 16:45 UTC](https://discourse.nodered.org/t/how-do-you-securely-give-credentials-to-a-stand-alone-function-node/99831 "2025-12-08T16:45:33Z")

</div>

Hi all, I’m stuck on what should be a simple design question: How do you securely provide credentials to a stand-alone Function node without putting them in clear text anywhere in the flow? Most credential handling in…

[Next page](https://discourse.nodered.org/tag/function-node/20.md?match_all_tags=true&page=1&tags%5B%5D=function-node)
