# General

**URL:** https://discourse.nodered.org/c/general/7.md?page=79

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

**Page:** 80

---

## [JS, people still use var?](https://discourse.nodered.org/t/js-people-still-use-var/92258)

<div class="topic-metadata">

**Author:** [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)\
**Replies:** 24\
**Last updated:** [10 October 2024 18:51 UTC](https://discourse.nodered.org/t/js-people-still-use-var/92258 "2024-10-10T18:51:19Z")

</div>

Looking at javascript examples and source code for node red palette packages, the use of "var" to declare variables is rampant. I can only see a few reasons for this: People who write this code doesn't know any better. …

---

## [How to set a global variable in a function node base on an svg event](https://discourse.nodered.org/t/how-to-set-a-global-variable-in-a-function-node-base-on-an-svg-event/92297)

<div class="topic-metadata">

**Author:** [@Desmond-Zeh](https://discourse.nodered.org/u/Desmond-Zeh)\
**Replies:** 2\
**Last updated:** [10 October 2024 16:18 UTC](https://discourse.nodered.org/t/how-to-set-a-global-variable-in-a-function-node-base-on-an-svg-event/92297 "2024-10-10T16:18:34Z")

</div>

Hello, I am trying to set a global variable in a function node base on an svg js event. I want that the variable should only be set when an event occur in the svg node (when the user click on a button in the svg node).…

---

## [Multiple address in function node or mc protocol node](https://discourse.nodered.org/t/multiple-address-in-function-node-or-mc-protocol-node/92294)

<div class="topic-metadata">

**Author:** [@akshayjain](https://discourse.nodered.org/u/akshayjain)\
**Replies:** 1\
**Last updated:** [10 October 2024 14:11 UTC](https://discourse.nodered.org/t/multiple-address-in-function-node-or-mc-protocol-node/92294 "2024-10-10T14:11:30Z")

</div>

I am taking 3 mc protocol node for 3 address,but I have 100 address so not possible every address assigned single node , please help how to get multiple address in one function or how to managed?

---

## [AWS Elastic Beanstalk setup issue](https://discourse.nodered.org/t/aws-elastic-beanstalk-setup-issue/92295)

<div class="topic-metadata">

**Author:** [@kborch](https://discourse.nodered.org/u/kborch)\
**Replies:** 0\
**Last updated:** [10 October 2024 13:57 UTC](https://discourse.nodered.org/t/aws-elastic-beanstalk-setup-issue/92295 "2024-10-10T13:57:08Z")

</div>

Hey, I am getting some errors when trying to follow the setup guide for AWS Elastic Beanstalk. When I run 'eb create' I get these errors: ERROR Creating Auto Scaling launch configuration failed Reason: Resource hand…

---

## [Resetting the default debug node name](https://discourse.nodered.org/t/resetting-the-default-debug-node-name/92285)

<div class="topic-metadata">

**Author:** [@vaderag](https://discourse.nodered.org/u/vaderag)\
**Replies:** 5\
**Last updated:** [10 October 2024 13:01 UTC](https://discourse.nodered.org/t/resetting-the-default-debug-node-name/92285 "2024-10-10T13:01:58Z")

</div>

This is really not that important, but my debug notes were at around 50 so when I created a new debug node it was named "debug 55" or whatever I coped someone's very helpful flow from here, and it must have bought in th…

---

## [Manage palette is missing through remote connections](https://discourse.nodered.org/t/manage-palette-is-missing-through-remote-connections/92283)

<div class="topic-metadata">

**Author:** [@j2002](https://discourse.nodered.org/u/j2002)\
**Replies:** 4\
**Last updated:** [10 October 2024 10:39 UTC](https://discourse.nodered.org/t/manage-palette-is-missing-through-remote-connections/92283 "2024-10-10T10:39:33Z")

</div>

I have Node-RED running in a Raspberry Pi. If I connect with my laptop web browser through Wi-Fi I can see Manage palette, but, if I open local web browser I can´t. My web browser is Chrome and, local one, Chromium. Any…

---

## [Node-red-contrib-pid delete I-contribution](https://discourse.nodered.org/t/node-red-contrib-pid-delete-i-contribution/90260)

<div class="topic-metadata">

**Author:** [@jan-garfield](https://discourse.nodered.org/u/jan-garfield)\
**Replies:** 10\
**Last updated:** [10 October 2024 08:09 UTC](https://discourse.nodered.org/t/node-red-contrib-pid-delete-i-contribution/90260 "2024-10-10T08:09:22Z")

</div>

Hi everyone, I'm using the node-red-contrib-pid and that works quite well. My heating system has long heat up times (20min to 2hr). During the heating period, the I-contribution gets summed up and while reaching the s…

---

## [Requirements for putting HomeAssistant, Node RED and Victron Venus OS together](https://discourse.nodered.org/t/requirements-for-putting-homeassistant-node-red-and-victron-venus-os-together/92211)

<div class="topic-metadata">

**Author:** [@eibdoktor](https://discourse.nodered.org/u/eibdoktor)\
**Replies:** 9\
**Last updated:** [10 October 2024 04:23 UTC](https://discourse.nodered.org/t/requirements-for-putting-homeassistant-node-red-and-victron-venus-os-together/92211 "2024-10-10T04:23:22Z")

</div>

I am a newcomer and thus have no idea so far how to deploy all the required tools for establishing a home energy storage system using a victron battery inverter. I am running home assistant already on an RPI 4 ; for the …

---

## [How to write a DateTime with an Action Node](https://discourse.nodered.org/t/how-to-write-a-datetime-with-an-action-node/92250)

<div class="topic-metadata">

**Author:** [@steerage250](https://discourse.nodered.org/u/steerage250)\
**Replies:** 5\
**Last updated:** [10 October 2024 00:24 UTC](https://discourse.nodered.org/t/how-to-write-a-datetime-with-an-action-node/92250 "2024-10-10T00:24:46Z")

</div>

I'm trying to write to a input\_datetime helper with an Action node - but keep getting "HomeAssistantError: extra keys not allowed @ data\['value'\]". I really don't get JavaScript. The data coming from the node prior to …

---

## [Having problems with mqtt response](https://discourse.nodered.org/t/having-problems-with-mqtt-response/92271)

<div class="topic-metadata">

**Author:** [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)\
**Replies:** 4\
**Last updated:** [9 October 2024 20:25 UTC](https://discourse.nodered.org/t/having-problems-with-mqtt-response/92271 "2024-10-09T20:25:56Z")

</div>

Trying to get a simple mqtt subscribe-and-respond flow up. I can receive with mqtt-in from remote thingsboard server. But when I add mqtt-out (with same server config), both in & out disconnects when the message goes thr…

---

## [Rounding numbers in array with jsonata through change node](https://discourse.nodered.org/t/rounding-numbers-in-array-with-jsonata-through-change-node/92253)

<div class="topic-metadata">

**Author:** [@sonificator](https://discourse.nodered.org/u/sonificator)\
**Replies:** 9\
**Last updated:** [9 October 2024 17:46 UTC](https://discourse.nodered.org/t/rounding-numbers-in-array-with-jsonata-through-change-node/92253 "2024-10-09T17:46:42Z")

</div>

Hi all. I need to round certain variables in a data feed that's coming in the following format: For instance the "gap" variable to 2 decimal places. It seems this can be done simply using jsonata's $round functio…

---

## [Deploying a node (Modified Nodes) and its impact on running flows](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261)

<div class="topic-metadata">

**Author:** [@venomancer](https://discourse.nodered.org/u/venomancer)\
**Replies:** 4\
**Last updated:** [9 October 2024 15:34 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261 "2024-10-09T15:34:55Z")

</div>

Hello! I have a question regarding the deployment of nodes. Let's say I have a flow and at some point there are running instances of those flows. If I change a node that is part of this flow and deploy (using the Modif…

---

## [Projects in the menue](https://discourse.nodered.org/t/projects-in-the-menue/92263)

<div class="topic-metadata">

**Author:** [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Replies:** 2\
**Last updated:** [9 October 2024 15:28 UTC](https://discourse.nodered.org/t/projects-in-the-menue/92263 "2024-10-09T15:28:48Z")

</div>

Hi, i usually use linux mint for my work and install NR with the usual script. Today i installed a TrueNas, which has NodeRed as an app, that can be installed. This NR installation has a feature, that i would like to …

---

## [Inject node doesnt execute properly](https://discourse.nodered.org/t/inject-node-doesnt-execute-properly/92234)

<div class="topic-metadata">

**Author:** [@verkerkGIT](https://discourse.nodered.org/u/verkerkGIT)\
**Replies:** 8\
**Last updated:** [9 October 2024 11:47 UTC](https://discourse.nodered.org/t/inject-node-doesnt-execute-properly/92234 "2024-10-09T11:47:03Z")

</div>

Hi all, I am running into a problem I haven't seen before. I am using an inject node to trigger every 4 seconds, however the inject node triggers at seemingly random intervals, I included a screenshot to show the timest…

---

## [Restoring a newer flow over an old one](https://discourse.nodered.org/t/restoring-a-newer-flow-over-an-old-one/92243)

<div class="topic-metadata">

**Author:** [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Replies:** 3\
**Last updated:** [9 October 2024 08:42 UTC](https://discourse.nodered.org/t/restoring-a-newer-flow-over-an-old-one/92243 "2024-10-09T08:42:30Z")

</div>

Edit: suggested topics appear to have am answer that didn't come up in a search earlier. I had to restore a VM running Node-Red, and it has an old version of my flows. Upon trying to import the current version of flows,…

---

## [Stuck with how to resolve this problem (Global context testing)](https://discourse.nodered.org/t/stuck-with-how-to-resolve-this-problem-global-context-testing/91323)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 39\
**Last updated:** [9 October 2024 05:25 UTC](https://discourse.nodered.org/t/stuck-with-how-to-resolve-this-problem-global-context-testing/91323 "2024-10-09T05:25:07Z")

</div>

Ok, so I have this bit of code: const dividor = 4; const x = parseInt(global.get("SCAN\_TIME")/dividor); msg.payload = "start"; msg.delay = x; Which works nice if the global is set. So how to I catch it so if it isn't …

---

## [Error from node-red-contrib-nordpool-api-plus](https://discourse.nodered.org/t/error-from-node-red-contrib-nordpool-api-plus/92247)

<div class="topic-metadata">

**Author:** [@raias](https://discourse.nodered.org/u/raias)\
**Replies:** 2\
**Last updated:** [8 October 2024 18:39 UTC](https://discourse.nodered.org/t/error-from-node-red-contrib-nordpool-api-plus/92247 "2024-10-08T18:39:42Z")

</div>

Hi, My home automation project has been using node-red-contrib-nordpool-api-plus successfully for some time now. However roughly 12 hours it stopped working and I now get "Error getting data" error message. Anyone else …

---

## [Inject enhanced, how often will be evaluated a offset variable (global variable)](https://discourse.nodered.org/t/inject-enhanced-how-often-will-be-evaluated-a-offset-variable-global-variable/92240)

<div class="topic-metadata">

**Author:** [@n300home](https://discourse.nodered.org/u/n300home)\
**Replies:** 1\
**Last updated:** [8 October 2024 15:25 UTC](https://discourse.nodered.org/t/inject-enhanced-how-often-will-be-evaluated-a-offset-variable-global-variable/92240 "2024-10-08T15:25:12Z")

</div>

Hi there, I'm using the inject enhanced node + dashboard time selector to make the point in time injection parameterizable. The inject node is setup on a daily execution at 0:00. With a time selector I can manipulate t…

---

## [How to turn on a MQTT switch?](https://discourse.nodered.org/t/how-to-turn-on-a-mqtt-switch/92237)

<div class="topic-metadata">

**Author:** [@AndKe](https://discourse.nodered.org/u/AndKe)\
**Replies:** 7\
**Last updated:** [8 October 2024 14:59 UTC](https://discourse.nodered.org/t/how-to-turn-on-a-mqtt-switch/92237 "2024-10-08T14:59:55Z")

</div>

This are the properties of the switch in MQTT: In "MQTT out node", what should I set as the topic? Currently it is: zigbee2mqtt/bar\_switch And what do I set the payload to, in order to toggle it for test purposes? …

---

## [Problems with Sensehat on Pi4 with Bookworm (Python3) and NR 4.0.3](https://discourse.nodered.org/t/problems-with-sensehat-on-pi4-with-bookworm-python3-and-nr-4-0-3/92220)

<div class="topic-metadata">

**Author:** [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Replies:** 4\
**Last updated:** [8 October 2024 14:55 UTC](https://discourse.nodered.org/t/problems-with-sensehat-on-pi4-with-bookworm-python3-and-nr-4-0-3/92220 "2024-10-08T14:55:40Z")

</div>

My smarthome still uses a Pi3, Sensehat, NR 3.x with buster (with Python 2.7.16). Here the Sensehat out node works without problems. In my test environment on a Pi4 with Bookworm (Python3) and NR 4.0.3 the Sensehat no…

---

## [Stores data in a table even when it isn’t visible](https://discourse.nodered.org/t/stores-data-in-a-table-even-when-it-isn-t-visible/92229)

<div class="topic-metadata">

**Author:** [@Desmond-Zeh](https://discourse.nodered.org/u/Desmond-Zeh)\
**Replies:** 9\
**Last updated:** [8 October 2024 14:31 UTC](https://discourse.nodered.org/t/stores-data-in-a-table-even-when-it-isn-t-visible/92229 "2024-10-08T14:31:36Z")

</div>

Hello! I’ve used a ui-table node to display incoming data from my Gensets. Data are only display when the table is active. When I switch to another tab, the data previously filled up in the table will disappeared. I wi…

---

## [Node-red communication codesys 2.3](https://discourse.nodered.org/t/node-red-communication-codesys-2-3/92231)

<div class="topic-metadata">

**Author:** [@Peng](https://discourse.nodered.org/u/Peng)\
**Replies:** 0\
**Last updated:** [7 October 2024 22:43 UTC](https://discourse.nodered.org/t/node-red-communication-codesys-2-3/92231 "2024-10-07T22:43:41Z")

</div>

I am new here. I just learn Node-red. (less than one week.) I want communication with my Home PLC. PLC is Berghof DC1005D. Now running codesys 2.3 (connot updated to 3.5) How i communication to it. link is my PLC. …

---

## [Converting Pandas DataFrame to JSON to Array](https://discourse.nodered.org/t/converting-pandas-dataframe-to-json-to-array/92226)

<div class="topic-metadata">

**Author:** [@sonificator](https://discourse.nodered.org/u/sonificator)\
**Replies:** 11\
**Last updated:** [7 October 2024 22:11 UTC](https://discourse.nodered.org/t/converting-pandas-dataframe-to-json-to-array/92226 "2024-10-07T22:11:24Z")

</div>

Hi there, I am sourcing external (stock market) data via Python, which initially comes in Pandas DataFrame format, which I managed to convert into what seems like the correct JSON format, yet the debug panes continues t…

---

## [USB COM port number assignment](https://discourse.nodered.org/t/usb-com-port-number-assignment/92192)

<div class="topic-metadata">

**Author:** [@MichaelBreytenbach](https://discourse.nodered.org/u/MichaelBreytenbach)\
**Replies:** 10\
**Last updated:** [7 October 2024 08:55 UTC](https://discourse.nodered.org/t/usb-com-port-number-assignment/92192 "2024-10-07T08:55:38Z")

</div>

I have several arduinos connected via USB COM ports to a Pi running node-red. The arduinos send and receive JSON strings to node-red. The assigned com port numbers are not guaranteed to remain the same on reboot. I kn…

---

## [Ftp into /.node-red](https://discourse.nodered.org/t/ftp-into-node-red/92200)

<div class="topic-metadata">

**Author:** [@richiep](https://discourse.nodered.org/u/richiep)\
**Replies:** 3\
**Last updated:** [7 October 2024 08:54 UTC](https://discourse.nodered.org/t/ftp-into-node-red/92200 "2024-10-07T08:54:04Z")

</div>

Hey All, I'm moving to a new raspberry pi and have backup files from my current installation of node red. Is it possible to ftp these files to the new machine? I've got the ftp set up but I don't know how to navigate …

---

## [Best way to populate many ui-gauges-Classic](https://discourse.nodered.org/t/best-way-to-populate-many-ui-gauges-classic/92169)

<div class="topic-metadata">

**Author:** [@chuckf201](https://discourse.nodered.org/u/chuckf201)\
**Replies:** 11\
**Last updated:** [7 October 2024 08:41 UTC](https://discourse.nodered.org/t/best-way-to-populate-many-ui-gauges-classic/92169 "2024-10-07T08:41:54Z")

</div>

I have a sql server with 10 columns of weather related information (Temperature, BarrPress, Humidity, outside\_temp, outside\_humid,...etc) and I want to use UI-gauge-classic. I'll windup with many gauges but at least it…

---

## [AI integration and N8N](https://discourse.nodered.org/t/ai-integration-and-n8n/92202)

<div class="topic-metadata">

**Author:** [@Slyke](https://discourse.nodered.org/u/Slyke)\
**Replies:** 1\
**Last updated:** [7 October 2024 05:55 UTC](https://discourse.nodered.org/t/ai-integration-and-n8n/92202 "2024-10-07T05:55:45Z")

</div>

I wasn't sure if I should put this in Core Development or Node Development, but I moved it to General. On Youtube, I've noticed a surprising amount of AI development type videos talking about N8N and how awesome it is t…

---

## [Question about NR 4.x (debug nodes)](https://discourse.nodered.org/t/question-about-nr-4-x-debug-nodes/92198)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [7 October 2024 06:00 UTC](https://discourse.nodered.org/t/question-about-nr-4-x-debug-nodes/92198 "2024-10-07T06:00:47Z")

</div>

(Me again) Sorry if it is covered in the what's new part, but I'm thinking SOD's LAW applies. A while back I was doing some testing on my main machine and have the debug set for current flow. I was doing things and th…

---

## [Handling the statusCode](https://discourse.nodered.org/t/handling-the-statuscode/92142)

<div class="topic-metadata">

**Author:** [@AdrianoOPereira](https://discourse.nodered.org/u/AdrianoOPereira)\
**Replies:** 3\
**Last updated:** [6 October 2024 19:36 UTC](https://discourse.nodered.org/t/handling-the-statuscode/92142 "2024-10-06T19:36:06Z")

</div>

Hello Guys! I'm using a Siemens clp to call an endpoint on the http request node, but I need to turn on a lamp on the clp when the statusCode is not 200. Could anyone help how to handle a statusCode output?

---

## [Possible to listen to debug console and wait until no more messages?](https://discourse.nodered.org/t/possible-to-listen-to-debug-console-and-wait-until-no-more-messages/92182)

<div class="topic-metadata">

**Author:** [@AleXSR700](https://discourse.nodered.org/u/AleXSR700)\
**Replies:** 30\
**Last updated:** [6 October 2024 19:24 UTC](https://discourse.nodered.org/t/possible-to-listen-to-debug-console-and-wait-until-no-more-messages/92182 "2024-10-06T19:24:40Z")

</div>

Hi everyone, I am sending a bunch of MQTT messages using Node-RED and would like to make sure that each new batch is delayed until the previous batch is finished. I tried with a manual delay msg.payload = ""; msg.topi…

[Previous page](https://discourse.nodered.org/c/general/7.md?page=78)

[Next page](https://discourse.nodered.org/c/general/7.md?page=80)
