# General

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

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

**Page:** 352

---

## [Followup: How to make money from a Node-RED node?](https://discourse.nodered.org/t/followup-how-to-make-money-from-a-node-red-node/65034)

<div class="topic-metadata">

**Author:** [@wolfred](https://discourse.nodered.org/u/wolfred)\
**Replies:** 2\
**Last updated:** [13 July 2022 18:09 UTC](https://discourse.nodered.org/t/followup-how-to-make-money-from-a-node-red-node/65034 "2022-07-13T18:09:44Z")

</div>

Two years ago I posted the thread How to make money from a Node-RED node?. Do we have any progress here? Maybe some experiences in licensing nodes or professional services around nodes? I have seen just one approach to…

---

## [Array parsing question](https://discourse.nodered.org/t/array-parsing-question/65049)

<div class="topic-metadata">

**Author:** [@mobamoba](https://discourse.nodered.org/u/mobamoba)\
**Replies:** 8\
**Last updated:** [13 July 2022 17:33 UTC](https://discourse.nodered.org/t/array-parsing-question/65049 "2022-07-13T17:33:14Z")

</div>

Is there a way parse an array without a function node? For example, if the data I'm receiving is in the form: msg.payload.value\[0-9\].anothervalue, can I split it and grab the 10 anothervalues without doing a for loop in …

---

## [How to debug performance issues](https://discourse.nodered.org/t/how-to-debug-performance-issues/64693)

<div class="topic-metadata">

**Author:** [@tsknightstorm](https://discourse.nodered.org/u/tsknightstorm)\
**Replies:** 28\
**Last updated:** [13 July 2022 17:16 UTC](https://discourse.nodered.org/t/how-to-debug-performance-issues/64693 "2022-07-13T17:16:02Z")

</div>

For my home automation I have the following system. HW: RPi 3 OS: Raspbian V11 Node-Red: v2.2.2 NodeRed Dashboard: v3.1.6 I started with my project years ago and builded it up step by step. In the beginning the syst…

---

## [How to pull a variable from an array in payload](https://discourse.nodered.org/t/how-to-pull-a-variable-from-an-array-in-payload/65057)

<div class="topic-metadata">

**Author:** [@jaimmor](https://discourse.nodered.org/u/jaimmor)\
**Replies:** 6\
**Last updated:** [13 July 2022 16:08 UTC](https://discourse.nodered.org/t/how-to-pull-a-variable-from-an-array-in-payload/65057 "2022-07-13T16:08:10Z")

</div>

Hi all Hoping someone can help me. I am trying to pull sensor information from a device (MQTT), but having trouble extracting just what I need from the payload. Debug output looks like this: 7/13/2022, 10:24:01 AM no…

---

## [Node-red-node-dropbox token expiration](https://discourse.nodered.org/t/node-red-node-dropbox-token-expiration/65008)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 22\
**Last updated:** [13 July 2022 14:31 UTC](https://discourse.nodered.org/t/node-red-node-dropbox-token-expiration/65008 "2022-07-13T14:31:33Z")

</div>

Since the Dropbox API was changed about a year ago, users have found that they need to continually apply for new tokens for the node Auth to work. This topic is to discuss the issue, and try and find a resolution to res…

---

## [Measurements average](https://discourse.nodered.org/t/measurements-average/65054)

<div class="topic-metadata">

**Author:** [@Nobbody](https://discourse.nodered.org/u/Nobbody)\
**Replies:** 1\
**Last updated:** [13 July 2022 14:23 UTC](https://discourse.nodered.org/t/measurements-average/65054 "2022-07-13T14:23:09Z")

</div>

I want to read 100 values from an I2C chip. This is supposed to happen as follows. read value Write value to the array read value Write value to the array after the 100 measurements, the average should then be forme…

---

## [Sending Node-Red Injection Value to Variable in a Python File on my Computer](https://discourse.nodered.org/t/sending-node-red-injection-value-to-variable-in-a-python-file-on-my-computer/65050)

<div class="topic-metadata">

**Author:** [@ukhan](https://discourse.nodered.org/u/ukhan)\
**Replies:** 1\
**Last updated:** [13 July 2022 13:37 UTC](https://discourse.nodered.org/t/sending-node-red-injection-value-to-variable-in-a-python-file-on-my-computer/65050 "2022-07-13T13:37:42Z")

</div>

Hi! I'm trying to send the value of an injection to a variable that I defined in a python file stored locally on my computer so I can use the value in my program, but I'm unsure on how to go about doing this. Any help is…

---

## [Kafka compression not implemented](https://discourse.nodered.org/t/kafka-compression-not-implemented/65051)

<div class="topic-metadata">

**Author:** [@pfe](https://discourse.nodered.org/u/pfe)\
**Replies:** 0\
**Last updated:** [13 July 2022 13:21 UTC](https://discourse.nodered.org/t/kafka-compression-not-implemented/65051 "2022-07-13T13:21:15Z")

</div>

Hello i'm trying to use Kafka flows to consume some datas from a kafka broker. If I publish data and consume the same data , every thing is ok. If I consume a data produced by a another client as node red it makes an err…

---

## [TCP Out node closes all connections when a client disconnects](https://discourse.nodered.org/t/tcp-out-node-closes-all-connections-when-a-client-disconnects/65042)

<div class="topic-metadata">

**Author:** [@polrodoreda](https://discourse.nodered.org/u/polrodoreda)\
**Replies:** 1\
**Last updated:** [13 July 2022 12:56 UTC](https://discourse.nodered.org/t/tcp-out-node-closes-all-connections-when-a-client-disconnects/65042 "2022-07-13T12:56:35Z")

</div>

A TCP out node closses all the connections at once when a client disconnects. Is this a bug from the node? Is there any way to solve this issue?

---

## [How not to change the msg when switching tabs?](https://discourse.nodered.org/t/how-not-to-change-the-msg-when-switching-tabs/64552)

<div class="topic-metadata">

**Author:** [@HuOliveiraWork](https://discourse.nodered.org/u/HuOliveiraWork)\
**Replies:** 10\
**Last updated:** [13 July 2022 11:21 UTC](https://discourse.nodered.org/t/how-not-to-change-the-msg-when-switching-tabs/64552 "2022-07-13T11:21:07Z")

</div>

Good afternoon, Does anyone know how I can change tabs without changing my msg variable, I needed to access some data that I had in the msg inside a new tab. But allways reset the variable properties. I'm changing the …

---

## [How to find certain text inside an object or a string?](https://discourse.nodered.org/t/how-to-find-certain-text-inside-an-object-or-a-string/64354)

<div class="topic-metadata">

**Author:** [@network\_potato](https://discourse.nodered.org/u/network_potato)\
**Replies:** 7\
**Last updated:** [13 July 2022 11:14 UTC](https://discourse.nodered.org/t/how-to-find-certain-text-inside-an-object-or-a-string/64354 "2022-07-13T11:14:56Z")

</div>

I am pulling data from a package tracking API. Specifically, the data I'm interested in is the "Last mile" tracking number. The output looks like this: Each object in the array is an event in the package's tracking…

---

## [Running node-red in a docker container with sqlite3](https://discourse.nodered.org/t/running-node-red-in-a-docker-container-with-sqlite3/64974)

<div class="topic-metadata">

**Author:** [@Wd6fie](https://discourse.nodered.org/u/Wd6fie)\
**Replies:** 5\
**Last updated:** [13 July 2022 10:37 UTC](https://discourse.nodered.org/t/running-node-red-in-a-docker-container-with-sqlite3/64974 "2022-07-13T10:37:07Z")

</div>

Hello Gurus of Node-Red! I downloaded the 13 colonies flow by Kyle into my node-red container and realized that I must create a 13 colonies database and qsos table somewhere. Where should the database be created using …

---

## [Node creation request - RasPi Argon hat](https://discourse.nodered.org/t/node-creation-request-raspi-argon-hat/65028)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 14\
**Last updated:** [13 July 2022 10:31 UTC](https://discourse.nodered.org/t/node-creation-request-raspi-argon-hat/65028 "2022-07-13T10:31:20Z")

</div>

I'm not sure how many people who have one, but there is a nice "hat" for the RasPi which has a fan on it. Seems support isn't too good (not a problem) but I was wondering if it would be possible to make a node (for no…

---

## [node-RED won't start, Failed with result 'exit-code'](https://discourse.nodered.org/t/node-red-wont-start-failed-with-result-exit-code/64964)

<div class="topic-metadata">

**Author:** [@maru](https://discourse.nodered.org/u/maru)\
**Replies:** 28\
**Last updated:** [13 July 2022 10:11 UTC](https://discourse.nodered.org/t/node-red-wont-start-failed-with-result-exit-code/64964 "2022-07-13T10:11:59Z")

</div>

Hi, I don't know if deploying a new flow is the cause but from then on node-RED won't start anymore but stays in a start-restart loop. I see an error in the log file but have no idea how to solve it from the command lin…

---

## [Image comparison flow (or node)](https://discourse.nodered.org/t/image-comparison-flow-or-node/65041)

<div class="topic-metadata">

**Author:** [@syoma755](https://discourse.nodered.org/u/syoma755)\
**Replies:** 0\
**Last updated:** [13 July 2022 09:56 UTC](https://discourse.nodered.org/t/image-comparison-flow-or-node/65041 "2022-07-13T09:56:01Z")

</div>

Hi there This might be similar to Image analysis and comparison I have following Idea. I want to use a Node-RED on Raspberry Pi for some functional visual inspection of a PCB where different LEDs are lit in some order.…

---

## [How to declare and use the variable in Node-Red](https://discourse.nodered.org/t/how-to-declare-and-use-the-variable-in-node-red/65030)

<div class="topic-metadata">

**Author:** [@JackJackTan414](https://discourse.nodered.org/u/JackJackTan414)\
**Replies:** 2\
**Last updated:** [13 July 2022 06:53 UTC](https://discourse.nodered.org/t/how-to-declare-and-use-the-variable-in-node-red/65030 "2022-07-13T06:53:52Z")

</div>

Hi all , I am doing a simple test which consist of a button node to send the "msg.topic" to the function node when it is pressed via the dashboard UI. Code is shown in the first picture and the second picture shows the e…

---

## [NR\_NODE\_NAME in 2.2.0 does not appear to be set](https://discourse.nodered.org/t/nr-node-name-in-2-2-0-does-not-appear-to-be-set/64975)

<div class="topic-metadata">

**Author:** [@chrisn-au](https://discourse.nodered.org/u/chrisn-au)\
**Replies:** 2\
**Last updated:** [12 July 2022 20:48 UTC](https://discourse.nodered.org/t/nr-node-name-in-2-2-0-does-not-appear-to-be-set/64975 "2022-07-12T20:48:09Z")

</div>

Guys, thanks I am loving the new capability in 2.2.0 (we are currently pinned to 2.1.3 for our prod instances and need to upgrade) to get the node and flow details from the env object have a function msg.nrNodeId = en…

---

## [Falling edge detection with JSON payload](https://discourse.nodered.org/t/falling-edge-detection-with-json-payload/64920)

<div class="topic-metadata">

**Author:** [@bkenobi](https://discourse.nodered.org/u/bkenobi)\
**Replies:** 2\
**Last updated:** [12 July 2022 20:37 UTC](https://discourse.nodered.org/t/falling-edge-detection-with-json-payload/64920 "2022-07-12T20:37:13Z")

</div>

I have some sensors that are set up to send their data via MQTT to NR in JSON format. When they detect, they appear similar to: I want to send an email notification when the battery drops below the warn threshold. B…

---

## [How to send messages by telegram when a condition is met](https://discourse.nodered.org/t/how-to-send-messages-by-telegram-when-a-condition-is-met/64981)

<div class="topic-metadata">

**Author:** [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Replies:** 2\
**Last updated:** [12 July 2022 19:30 UTC](https://discourse.nodered.org/t/how-to-send-messages-by-telegram-when-a-condition-is-met/64981 "2022-07-12T19:30:09Z")

</div>

hello guys I have this project, but I want to add a function that sends me a message by telegram when the capacity is full I'm a newbie in this I hope you can help me

---

## [Node-red-contrib-bcrypt - Password hashing](https://discourse.nodered.org/t/node-red-contrib-bcrypt-password-hashing/64851)

<div class="topic-metadata">

**Author:** [@awneil](https://discourse.nodered.org/u/awneil)\
**Replies:** 6\
**Last updated:** [12 July 2022 18:02 UTC](https://discourse.nodered.org/t/node-red-contrib-bcrypt-password-hashing/64851 "2022-07-12T18:02:00Z")

</div>

It's well-established that running the command-line password hash utility will give a different hash each time; eg, https://discourse.nodered.org/t/hashing-password But the node-red-contrib-bcrypt node seems to give th…

---

## [Multiple Messages with setTimeout](https://discourse.nodered.org/t/multiple-messages-with-settimeout/65007)

<div class="topic-metadata">

**Author:** [@ninja\_007](https://discourse.nodered.org/u/ninja_007)\
**Replies:** 5\
**Last updated:** [12 July 2022 15:44 UTC](https://discourse.nodered.org/t/multiple-messages-with-settimeout/65007 "2022-07-12T15:44:49Z")

</div>

How can i push settimeout function value as output in function node ? I want to send O1 as output-1 and O2/rest messages as output-2 Things I've tried var O1=({payload: "hello1"}); var O2=({payload: "hello2"}); setTim…

---

## [How to use a message variable to navigate an array that is also a message variable, in a change node?](https://discourse.nodered.org/t/how-to-use-a-message-variable-to-navigate-an-array-that-is-also-a-message-variable-in-a-change-node/65005)

<div class="topic-metadata">

**Author:** [@janedoe123](https://discourse.nodered.org/u/janedoe123)\
**Replies:** 2\
**Last updated:** [12 July 2022 15:27 UTC](https://discourse.nodered.org/t/how-to-use-a-message-variable-to-navigate-an-array-that-is-also-a-message-variable-in-a-change-node/65005 "2022-07-12T15:27:20Z")

</div>

Hey there, I'm struggling trying to use a message variable to navigate an array that is also a message variable, in a change node, as follows: I tried the following, but nothing works: msg.months\[msg.index\] msg.mon…

---

## [Detect immediately when a global variable becomes true](https://discourse.nodered.org/t/detect-immediately-when-a-global-variable-becomes-true/64876)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 9\
**Last updated:** [12 July 2022 14:29 UTC](https://discourse.nodered.org/t/detect-immediately-when-a-global-variable-becomes-true/64876 "2022-07-12T14:29:58Z")

</div>

I would like detect immediately when a global variable beomes true...a sort of Listening of a variable. this is possible?

---

## [Timestamps in Influx differ by minutes (vs those loaded in NR)](https://discourse.nodered.org/t/timestamps-in-influx-differ-by-minutes-vs-those-loaded-in-nr/65004)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 1\
**Last updated:** [12 July 2022 13:21 UTC](https://discourse.nodered.org/t/timestamps-in-influx-differ-by-minutes-vs-those-loaded-in-nr/65004 "2022-07-12T13:21:54Z")

</div>

I am using the InfluxDB out node to populate some values with an associated timestamp. The timestamp is exactly on the hour, every hour. In the debug pane, it appears fine: but in InfluxDB, the timestamp (\_time) va…

---

## [Refresh a static page](https://discourse.nodered.org/t/refresh-a-static-page/64971)

<div class="topic-metadata">

**Author:** [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Replies:** 18\
**Last updated:** [12 July 2022 11:12 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971 "2022-07-12T11:12:21Z")

</div>

Hi guys. I need to show a web page content on a screen. I use a raspberry pi connected to a screen. I want to use node-red for this purpose because the page is not dynamic need to refresh it every 10 min . Can you please…

---

## [AND condition in node-red block](https://discourse.nodered.org/t/and-condition-in-node-red-block/64994)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 1\
**Last updated:** [12 July 2022 08:53 UTC](https://discourse.nodered.org/t/and-condition-in-node-red-block/64994 "2022-07-12T08:53:29Z")

</div>

Hi all, I would like create AND condition with many node input. If all are true then pass to node after. I'm trying using SWITCH function but i think it is not usefull for this application. Do you have some suggestions…

---

## [Donate or paid version](https://discourse.nodered.org/t/donate-or-paid-version/64973)

<div class="topic-metadata">

**Author:** [@Waz](https://discourse.nodered.org/u/Waz)\
**Replies:** 2\
**Last updated:** [12 July 2022 06:40 UTC](https://discourse.nodered.org/t/donate-or-paid-version/64973 "2022-07-12T06:40:56Z")

</div>

I love Node-RED so much I'd like to support the development team by donating or would be happy to pay a subscription. Is this possible? Would it actually help ensure the future of Node-RED?

---

## [First Project TypeError](https://discourse.nodered.org/t/first-project-typeerror/64965)

<div class="topic-metadata">

**Author:** [@HannesLN](https://discourse.nodered.org/u/HannesLN)\
**Replies:** 3\
**Last updated:** [11 July 2022 21:28 UTC](https://discourse.nodered.org/t/first-project-typeerror/64965 "2022-07-11T21:28:09Z")

</div>

Hi there. I have a little problem. I've created a small project (see picture). I can connect to the created server from another client, but I don't get any usefull data but an error message. I'm new to all of this, so I …

---

## [Request for Best Practice: triggering flows based on new entries in a database](https://discourse.nodered.org/t/request-for-best-practice-triggering-flows-based-on-new-entries-in-a-database/64960)

<div class="topic-metadata">

**Author:** [@Taylor](https://discourse.nodered.org/u/Taylor)\
**Replies:** 5\
**Last updated:** [11 July 2022 20:20 UTC](https://discourse.nodered.org/t/request-for-best-practice-triggering-flows-based-on-new-entries-in-a-database/64960 "2022-07-11T20:20:19Z")

</div>

I've been using new entries in a database to initiate flows in my project but I'm afraid my current strategy is a silly workaround due to my lack of knowledge/experience. I'm looking for advice on how to improve my flow …

---

## [Node-Red switch logic not working](https://discourse.nodered.org/t/node-red-switch-logic-not-working/64956)

<div class="topic-metadata">

**Author:** [@yxqzme2](https://discourse.nodered.org/u/yxqzme2)\
**Replies:** 6\
**Last updated:** [11 July 2022 18:58 UTC](https://discourse.nodered.org/t/node-red-switch-logic-not-working/64956 "2022-07-11T18:58:54Z")

</div>

I am trying to do a simple holiday lights automation using binary sensors, but I do not seem to be getting the right output from the switch. I have the 6 holidays input to the switch. If I make it a holiday, I get the c…

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

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