# \#function-node

**URL:** https://discourse.nodered.org/tag/function-node/20.md?page=1

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

**Page:** 2

---

## [Node red processing slowed](https://discourse.nodered.org/t/node-red-processing-slowed/99060)

<div class="topic-metadata">

**Author:** [@shubhamnodered](https://discourse.nodered.org/u/shubhamnodered)\
**Replies:** 22\
**Last updated:** [6 December 2025 17:21 UTC](https://discourse.nodered.org/t/node-red-processing-slowed/99060 "2025-12-06T17:21:06Z")

</div>

Hi guys, I need some advice on Node-RED performance optimization. My Node-RED environment feels slow — nodes take time to open and became un reponsive for few seconds and deploying a flow takes 3–4 seconds (sometimes mo…

---

## [How to trigger an automatic deploy at a specific time in Node-RED](https://discourse.nodered.org/t/how-to-trigger-an-automatic-deploy-at-a-specific-time-in-node-red/99786)

<div class="topic-metadata">

**Author:** [@karlgotbread](https://discourse.nodered.org/u/karlgotbread)\
**Replies:** 6\
**Last updated:** [27 November 2025 14:54 UTC](https://discourse.nodered.org/t/how-to-trigger-an-automatic-deploy-at-a-specific-time-in-node-red/99786 "2025-11-27T14:54:37Z")

</div>

Hi everyone, I’m looking for a way to perform an automatic deploy of my Node-RED flows at a precise time (for example every day at 08:00 PM). To be clear: I don’t want to use an Inject node (I’m not trying to trigger…

---

## [Help with nested if-then-else please](https://discourse.nodered.org/t/help-with-nested-if-then-else-please/99733)

<div class="topic-metadata">

**Author:** [@DaveK](https://discourse.nodered.org/u/DaveK)\
**Replies:** 11\
**Last updated:** [22 November 2025 13:59 UTC](https://discourse.nodered.org/t/help-with-nested-if-then-else-please/99733 "2025-11-22T13:59:43Z")

</div>

Hi again, I'm slowly learning Node Red and its workings, trying to get a function node working with nested if-then-else statements but despite messing for some hours I just can't grasp it. Could someone kindly have a lo…

---

## [Node thingspeak42](https://discourse.nodered.org/t/node-thingspeak42/99598)

<div class="topic-metadata">

**Author:** [@ohruska](https://discourse.nodered.org/u/ohruska)\
**Replies:** 6\
**Last updated:** [10 November 2025 09:09 UTC](https://discourse.nodered.org/t/node-thingspeak42/99598 "2025-11-10T09:09:58Z")

</div>

Hi, I'm new here. I used node-red for my balcony photovoltaic power plant. I wanted to send the value of the power input to the house and the output of the photovoltaics to Thingspeak.com. For this operation I wanted t…

---

## [Fritz!Box 6490 does not make a call triggered by NodeRed](https://discourse.nodered.org/t/fritz-box-6490-does-not-make-a-call-triggered-by-nodered/99551)

<div class="topic-metadata">

**Author:** [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Replies:** 7\
**Last updated:** [2 November 2025 07:12 UTC](https://discourse.nodered.org/t/fritz-box-6490-does-not-make-a-call-triggered-by-nodered/99551 "2025-11-02T07:12:54Z")

</div>

\[ { "id": "7541bd3e87f03df4", "type": "debug", "z": "7d2047e075cc0d79", "name": "debug 168", "active": true, "tosidebar": true, "console": false, "tosta…

---

## [Tibber Price Reveiver Object not updated to 15 min mode](https://discourse.nodered.org/t/tibber-price-reveiver-object-not-updated-to-15-min-mode/99407)

<div class="topic-metadata">

**Author:** [@jojogommez](https://discourse.nodered.org/u/jojogommez)\
**Replies:** 1\
**Last updated:** [15 October 2025 17:56 UTC](https://discourse.nodered.org/t/tibber-price-reveiver-object-not-updated-to-15-min-mode/99407 "2025-10-15T17:56:08Z")

</div>

Hello im not a programmer but in the Power Save Palette the lowest Price works with 15 minutes but the Price Receiver ist in the old 1 hour mode. Can someone help to update the Prive Receiver to 15 min mode ?

---

## [Problem trying to use a node](https://discourse.nodered.org/t/problem-trying-to-use-a-node/99346)

<div class="topic-metadata">

**Author:** [@ItzGael](https://discourse.nodered.org/u/ItzGael)\
**Replies:** 2\
**Last updated:** [10 October 2025 23:50 UTC](https://discourse.nodered.org/t/problem-trying-to-use-a-node/99346 "2025-10-10T23:50:37Z")

</div>

I'm currently having a problem trying to start node red locally without a connection, I'm currently using node-red-contrib-cip-st-ethernet-ip node And it throws me this error Does anybody know how can I solve it? …

---

## [Enable require() in Node.js Functions on FlowFuse Instance(s)](https://discourse.nodered.org/t/enable-require-in-node-js-functions-on-flowfuse-instance-s/99301)

<div class="topic-metadata">

**Author:** [@JeremyCee](https://discourse.nodered.org/u/JeremyCee)\
**Replies:** 2\
**Last updated:** [7 October 2025 14:59 UTC](https://discourse.nodered.org/t/enable-require-in-node-js-functions-on-flowfuse-instance-s/99301 "2025-10-07T14:59:48Z")

</div>

We're attempting to build a workflow where we need to validate the incoming webhook POST with a hashed value that's calculated from a shared key. We're currently leveraging the node-red-contrib-crypto-js module but it r…

---

## [Help - what am I doing wrong](https://discourse.nodered.org/t/help-what-am-i-doing-wrong/99251)

<div class="topic-metadata">

**Author:** [@Linhey](https://discourse.nodered.org/u/Linhey)\
**Replies:** 6\
**Last updated:** [3 October 2025 14:50 UTC](https://discourse.nodered.org/t/help-what-am-i-doing-wrong/99251 "2025-10-03T14:50:05Z")

</div>

I have a Satellite 2 line Kepler list, which is in a strict format and includes white spaces, which cannot be removed as they form the correct sequence for reading. However the satellite name can have the white spaces …

---

## [Evenly Spaced Chart Axis](https://discourse.nodered.org/t/evenly-spaced-chart-axis/99242)

<div class="topic-metadata">

**Author:** [@CJS](https://discourse.nodered.org/u/CJS)\
**Replies:** 5\
**Last updated:** [2 October 2025 20:29 UTC](https://discourse.nodered.org/t/evenly-spaced-chart-axis/99242 "2025-10-02T20:29:13Z")

</div>

I'm just curious if there's a way to have the X-axis of my chart display the date and time each data point was recorded, while keeping the spacing between points even—so there aren’t large gaps when data is collected irr…

---

## [Kafka Error "argument must be of type string or instance of Buffer ot ArrayBuffer"](https://discourse.nodered.org/t/kafka-error-argument-must-be-of-type-string-or-instance-of-buffer-ot-arraybuffer/99145)

<div class="topic-metadata">

**Author:** [@mrStark](https://discourse.nodered.org/u/mrStark)\
**Replies:** 12\
**Last updated:** [24 September 2025 08:38 UTC](https://discourse.nodered.org/t/kafka-error-argument-must-be-of-type-string-or-instance-of-buffer-ot-arraybuffer/99145 "2025-09-24T08:38:09Z")

</div>

I'm getting below error when i'm passing some payload to the kafkajs node. I'm using a json node before sending the data to the kafkajs node but still getting the error. Can anyone help here? { "level":"ERROR", "tim…

---

## [Bug in function node? pdf-lib](https://discourse.nodered.org/t/bug-in-function-node-pdf-lib/99082)

<div class="topic-metadata">

**Author:** [@christopher-lambe](https://discourse.nodered.org/u/christopher-lambe)\
**Replies:** 8\
**Last updated:** [20 September 2025 22:53 UTC](https://discourse.nodered.org/t/bug-in-function-node-pdf-lib/99082 "2025-09-20T22:53:17Z")

</div>

I have a function node with pdf-lib to extract the first page of a PDF file. The same code works great in VS Code / cmd prompt with Node.js v22.12 but produces this strange error in the Node-Red function node. "TypeErr…

---

## [\[ANNOUNCE\] node-red-contrib-ts – TypeScript Node](https://discourse.nodered.org/t/announce-node-red-contrib-ts-typescript-node/98852)

<div class="topic-metadata">

**Author:** [@benoitadam](https://discourse.nodered.org/u/benoitadam)\
**Replies:** 17\
**Last updated:** [4 September 2025 10:30 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ts-typescript-node/98852 "2025-09-04T10:30:10Z")

</div>

Hi everyone, This is my first post here, so I’m not entirely sure about the usual way of announcing new nodes – apologies if I’m doing it wrong! I’ve just released a new Node-RED node: node-red-contrib-ts. It lets you…

---

## [Node-red-contrib-alexa-home can't add new devices](https://discourse.nodered.org/t/node-red-contrib-alexa-home-cant-add-new-devices/98834)

<div class="topic-metadata">

**Author:** [@taz](https://discourse.nodered.org/u/taz)\
**Replies:** 0\
**Last updated:** [25 August 2025 19:55 UTC](https://discourse.nodered.org/t/node-red-contrib-alexa-home-cant-add-new-devices/98834 "2025-08-25T19:55:47Z")

</div>

I’ve been running this a few years with no issue but I no longer can add new devices. Controller starts OK and got to Setup Requested and gets stuck. I can't pole it from the alexa app as in never responds to the reque…

---

## [Ui\_dropdown, looking for better/faster inputting solution](https://discourse.nodered.org/t/ui-dropdown-looking-for-better-faster-inputting-solution/98541)

<div class="topic-metadata">

**Author:** [@markost](https://discourse.nodered.org/u/markost)\
**Replies:** 5\
**Last updated:** [9 August 2025 12:20 UTC](https://discourse.nodered.org/t/ui-dropdown-looking-for-better-faster-inputting-solution/98541 "2025-08-09T12:20:25Z")

</div>

Hi, I need a few UI dropdowns with a large number of Options (1-900 in steps of 1, 80-150 in steps of 1, etc.). I created this in two different ways, both by inputting an array with the desired Options. The first is: …

---

## [Telegram button problem](https://discourse.nodered.org/t/telegram-button-problem/98546)

<div class="topic-metadata">

**Author:** [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Replies:** 7\
**Last updated:** [7 August 2025 20:05 UTC](https://discourse.nodered.org/t/telegram-button-problem/98546 "2025-08-07T20:05:31Z")

</div>

Hello, I have Telegram running and I can send and receive text messages. I can also send buttons, but nothing comes back to the Telegram receiver when a button is clicked. I have no idea where else to look or what to …

---

## [Node-red-contrib-alexa-remote2-applestrudel 5.0.52 ko](https://discourse.nodered.org/t/node-red-contrib-alexa-remote2-applestrudel-5-0-52-ko/98275)

<div class="topic-metadata">

**Author:** [@franz](https://discourse.nodered.org/u/franz)\
**Replies:** 5\
**Last updated:** [5 August 2025 09:04 UTC](https://discourse.nodered.org/t/node-red-contrib-alexa-remote2-applestrudel-5-0-52-ko/98275 "2025-08-05T09:04:30Z")

</div>

I have node-red-contrib-alexa-remote2-applestrudel 5.0.52 installed on nodered 4.0.9 in docker. Since yesterday it no longer receives voice commands, it warns me vocally for automations but I can't issue commands. Does a…

---

## [How to use DuckDB in Node-RED(just in node-red function)](https://discourse.nodered.org/t/how-to-use-duckdb-in-node-red-just-in-node-red-function/98487)

<div class="topic-metadata">

**Author:** [@hyxdxhb1231](https://discourse.nodered.org/u/hyxdxhb1231)\
**Replies:** 6\
**Last updated:** [5 August 2025 05:31 UTC](https://discourse.nodered.org/t/how-to-use-duckdb-in-node-red-just-in-node-red-function/98487 "2025-08-05T05:31:35Z")

</div>

Hi guys, the existing DuckDB node in Node-RED is broken. How can I do the same with a function node? Here is an example, but when i try it again, the Node-RED will broken down. The log information said that \[error\] Err…

---

## [Problem changing button colors](https://discourse.nodered.org/t/problem-changing-button-colors/98474)

<div class="topic-metadata">

**Author:** [@kburns2](https://discourse.nodered.org/u/kburns2)\
**Replies:** 24\
**Last updated:** [4 August 2025 15:21 UTC](https://discourse.nodered.org/t/problem-changing-button-colors/98474 "2025-08-04T15:21:20Z")

</div>

Hello, I am running the latest version of Node Red. I am trying to create a control interface for a dust collection system for a wood shop. I have the basic functionality working well. I have a relay board HAT for a Ras…

---

## [Data logging simulation using modsim to postgreSQL via nodered](https://discourse.nodered.org/t/data-logging-simulation-using-modsim-to-postgresql-via-nodered/98388)

<div class="topic-metadata">

**Author:** [@hafizhshafi](https://discourse.nodered.org/u/hafizhshafi)\
**Replies:** 18\
**Last updated:** [1 August 2025 01:05 UTC](https://discourse.nodered.org/t/data-logging-simulation-using-modsim-to-postgresql-via-nodered/98388 "2025-08-01T01:05:14Z")

</div>

How to send data from modbus to postgreSQL database via nodered ? i already try to send data manually from querry and its work, but its not working when i send the data which come from modsim

---

## [Node-red and vs-code integration](https://discourse.nodered.org/t/node-red-and-vs-code-integration/97672)

<div class="topic-metadata">

**Author:** [@daniel-payne](https://discourse.nodered.org/u/daniel-payne)\
**Replies:** 47\
**Last updated:** [31 July 2025 14:11 UTC](https://discourse.nodered.org/t/node-red-and-vs-code-integration/97672 "2025-07-31T14:11:41Z")

</div>

I hope this can help anybody having the same issues as I have when writing long functions in node-red editor. Coding anything over 50 lines become difficult to work with, or trying to view multiple functions at the same…

---

## [Disable function code warning](https://discourse.nodered.org/t/disable-function-code-warning/98360)

<div class="topic-metadata">

**Author:** [@remsfn](https://discourse.nodered.org/u/remsfn)\
**Replies:** 2\
**Last updated:** [29 July 2025 14:42 UTC](https://discourse.nodered.org/t/disable-function-code-warning/98360 "2025-07-29T14:42:36Z")

</div>

I am using Node red V4.0.9 and the following code const delta\_ms = new Date() - new Date(machines\_buffer.timestamp); genrate a warning but do work! The left-hand side of an arithmetic operation must be of type 'any'…

---

## [Problem to var require = global.get('require'); - 3 scheet to 1 xlsx](https://discourse.nodered.org/t/problem-to-var-require-global-get-require-3-scheet-to-1-xlsx/98195)

<div class="topic-metadata">

**Author:** [@BaNod-Red](https://discourse.nodered.org/u/BaNod-Red)\
**Replies:** 2\
**Last updated:** [18 July 2025 08:18 UTC](https://discourse.nodered.org/t/problem-to-var-require-global-get-require-3-scheet-to-1-xlsx/98195 "2025-07-18T08:18:00Z")

</div>

Want to use 3 queries and feed 3 sheets in excel all the time I have an error var require = global.get('require'); I corrected in settings file Nothing helped or maybe some quick solution what to change in code ? \[ …

---

## [How can I enter sftp password after connect sftp on a remote host via ssh](https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168)

<div class="topic-metadata">

**Author:** [@okircali](https://discourse.nodered.org/u/okircali)\
**Replies:** 1\
**Last updated:** [17 July 2025 16:14 UTC](https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168 "2025-07-17T16:14:00Z")

</div>

Hello, I want to develop a node that will connect sftp on a remote host via ssh and then enter the sftp password on the prompt. Is there any way to auto fill the password prompt? Best regards

---

## [Function node to manually activate aqara smoke alarm buzzer](https://discourse.nodered.org/t/function-node-to-manually-activate-aqara-smoke-alarm-buzzer/98098)

<div class="topic-metadata">

**Author:** [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)\
**Replies:** 3\
**Last updated:** [16 July 2025 18:09 UTC](https://discourse.nodered.org/t/function-node-to-manually-activate-aqara-smoke-alarm-buzzer/98098 "2025-07-16T18:09:32Z")

</div>

I have an Aqara smoke alarm where I want to use the buzzer as a siren for my alarm. It should be possible to activate the buzzer manually, To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY\_NAME/s…

---

## [Nodered need support email custom From(Nickname)](https://discourse.nodered.org/t/nodered-need-support-email-custom-from-nickname/98031)

<div class="topic-metadata">

**Author:** [@lozn](https://discourse.nodered.org/u/lozn)\
**Replies:** 6\
**Last updated:** [14 July 2025 06:06 UTC](https://discourse.nodered.org/t/nodered-need-support-email-custom-from-nickname/98031 "2025-07-14T06:06:29Z")

</div>

---

## [MQTT vs HTTP request](https://discourse.nodered.org/t/mqtt-vs-http-request/98075)

<div class="topic-metadata">

**Author:** [@John1995](https://discourse.nodered.org/u/John1995)\
**Replies:** 20\
**Last updated:** [13 July 2025 08:35 UTC](https://discourse.nodered.org/t/mqtt-vs-http-request/98075 "2025-07-13T08:35:25Z")

</div>

Hello to everybody, I have got a Raspberry Pi 4 with Node-RED installed. I have set a lot of sensors and I am sending data to my server by means of a HTTP post request. I have on my server both Grafana and Influxdb. I …

---

## [Newbie question: take action at specific time](https://discourse.nodered.org/t/newbie-question-take-action-at-specific-time/97994)

<div class="topic-metadata">

**Author:** [@johanvh83](https://discourse.nodered.org/u/johanvh83)\
**Replies:** 9\
**Last updated:** [6 July 2025 13:43 UTC](https://discourse.nodered.org/t/newbie-question-take-action-at-specific-time/97994 "2025-07-06T13:43:42Z")

</div>

My flow: \[{"id":"9cd9fa2d0d2e7202","type":"tab","label":"Flow 1","disabled":false,"info":"","env":\[\]},{"id":"13d41ac132368021","type":"server-state-changed","z":"9cd9fa2d0d2e7202","name":"Switch on?","server":"c74ca316.…

---

## [How to use OCPP in Node-Red](https://discourse.nodered.org/t/how-to-use-ocpp-in-node-red/95495)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 52\
**Last updated:** [28 June 2025 10:25 UTC](https://discourse.nodered.org/t/how-to-use-ocpp-in-node-red/95495 "2025-06-28T10:25:41Z")

</div>

There has been a few topics on this with some specific questions, but I am afraid I need some support from the very beginning. I want to communicate with OCPP capable EVSEs. There are 3 of them at (my friends) place. I …

---

## [Unable to deploy changes on node red](https://discourse.nodered.org/t/unable-to-deploy-changes-on-node-red/97842)

<div class="topic-metadata">

**Author:** [@Desmond-Zeh](https://discourse.nodered.org/u/Desmond-Zeh)\
**Replies:** 2\
**Last updated:** [27 June 2025 19:13 UTC](https://discourse.nodered.org/t/unable-to-deploy-changes-on-node-red/97842 "2025-06-27T19:13:34Z")

</div>

Hello Team! I am facing difficulties deploying changes made to my project on node-red. Anytime I try to deploy the changes made, the following error message appears in the cmd prompt and blocks the deploy from occurrin…

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

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