# General

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

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

**Page:** 503

---

## [Npm two factor authentication](https://discourse.nodered.org/t/npm-two-factor-authentication/49536)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 34\
**Last updated:** [28 August 2021 21:50 UTC](https://discourse.nodered.org/t/npm-two-factor-authentication/49536 "2021-08-28T21:50:57Z")

</div>

Not strictly a node-red issue, but I had an email today encouraging me to setup 2FA on my npm account. It seems this requires me to install an authentication app on my phone, such as Authy or Google Authenticator, neith…

---

## [Use Rate Limit "one per X" per \*instance\* in a subflow?](https://discourse.nodered.org/t/use-rate-limit-one-per-x-per-instance-in-a-subflow/50331)

<div class="topic-metadata">

**Author:** [@JoshLaseter](https://discourse.nodered.org/u/JoshLaseter)\
**Replies:** 2\
**Last updated:** [28 August 2021 18:04 UTC](https://discourse.nodered.org/t/use-rate-limit-one-per-x-per-instance-in-a-subflow/50331 "2021-08-28T18:04:05Z")

</div>

I have a subflow that I'm calling twice in one workflow but passing in different environment variables. Within the subflow I've got a section that I'd like to only run once per three hours so I've got a Delay Node with R…

---

## [Node-red-contrib-modbus no reconnect](https://discourse.nodered.org/t/node-red-contrib-modbus-no-reconnect/50309)

<div class="topic-metadata">

**Author:** [@larslehman1](https://discourse.nodered.org/u/larslehman1)\
**Replies:** 8\
**Last updated:** [28 August 2021 17:36 UTC](https://discourse.nodered.org/t/node-red-contrib-modbus-no-reconnect/50309 "2021-08-28T17:36:21Z")

</div>

Hi, my Problem my Modbus not reconnect. I want to implement Modbus devices that can fail for 1 to 2 hours at any time. After a short time the Modbus client should try to establish a connection to the device. After …

---

## [Cross platform dynamic file path generation](https://discourse.nodered.org/t/cross-platform-dynamic-file-path-generation/50243)

<div class="topic-metadata">

**Author:** [@keithnz](https://discourse.nodered.org/u/keithnz)\
**Replies:** 3\
**Last updated:** [28 August 2021 13:21 UTC](https://discourse.nodered.org/t/cross-platform-dynamic-file-path-generation/50243 "2021-08-28T13:21:21Z")

</div>

I have searched extensively but I cant find anything about the best / simplest method of dynamically creating file paths within node-red functions that will work on both a linux and a windows host. I am modifying an app…

---

## [SQLite INSERT FUNCTION For random values](https://discourse.nodered.org/t/sqlite-insert-function-for-random-values/50313)

<div class="topic-metadata">

**Author:** [@Mohit](https://discourse.nodered.org/u/Mohit)\
**Replies:** 4\
**Last updated:** [28 August 2021 12:20 UTC](https://discourse.nodered.org/t/sqlite-insert-function-for-random-values/50313 "2021-08-28T12:20:12Z")

</div>

I am using Function node and inside that i am using insert query to insert random values but when using msg.payload for values and description part in debug window it showing values and description but also same time "Er…

---

## [From webcam image to file \[for Telegram bot\]](https://discourse.nodered.org/t/from-webcam-image-to-file-for-telegram-bot/50300)

<div class="topic-metadata">

**Author:** [@bubugian](https://discourse.nodered.org/u/bubugian)\
**Replies:** 5\
**Last updated:** [28 August 2021 11:47 UTC](https://discourse.nodered.org/t/from-webcam-image-to-file-for-telegram-bot/50300 "2021-08-28T11:47:43Z")

</div>

Hi all ! I'm using NR 7.2.10 inside HA and I'd like to send (to Telegram) a snapshopt from my Reolink ipcamera when an event is triggered (MQTT message from BlueIris). I have success configuring the bot and to send Tel…

---

## [Cannot Read property 'on' of undefined (sometimes)](https://discourse.nodered.org/t/cannot-read-property-on-of-undefined-sometimes/50260)

<div class="topic-metadata">

**Author:** [@aytaral](https://discourse.nodered.org/u/aytaral)\
**Replies:** 2\
**Last updated:** [28 August 2021 09:37 UTC](https://discourse.nodered.org/t/cannot-read-property-on-of-undefined-sometimes/50260 "2021-08-28T09:37:49Z")

</div>

Hello there. In a node running 24/7, this error happens from time to time during the day. It doesn't get fixed without restarting nodered. mssql node is updating sql every minute. there is no error but this error occu…

---

## [Within xxx seconds](https://discourse.nodered.org/t/within-xxx-seconds/50279)

<div class="topic-metadata">

**Author:** [@bubugian](https://discourse.nodered.org/u/bubugian)\
**Replies:** 6\
**Last updated:** [28 August 2021 08:51 UTC](https://discourse.nodered.org/t/within-xxx-seconds/50279 "2021-08-28T08:51:27Z")

</div>

Hi all. I'm new to nodered (I'm using NR 7.2.10 inside HA) so please be patient. I need to generate an event, triggered by the reception of two MQTT messages. Regardless of the rx order it's important for me that, in o…

---

## [Node-Red on docker container not able to set username and password on node red editor](https://discourse.nodered.org/t/node-red-on-docker-container-not-able-to-set-username-and-password-on-node-red-editor/50234)

<div class="topic-metadata">

**Author:** [@krish7](https://discourse.nodered.org/u/krish7)\
**Replies:** 7\
**Last updated:** [28 August 2021 08:11 UTC](https://discourse.nodered.org/t/node-red-on-docker-container-not-able-to-set-username-and-password-on-node-red-editor/50234 "2021-08-28T08:11:28Z")

</div>

I am running node red on a docker container, need to secure the node red editor with username and password. I went inside the docker container using exec command and edited settings.js file with username and password. Re…

---

## [Node-red on VMware ubuntu server websocket not working](https://discourse.nodered.org/t/node-red-on-vmware-ubuntu-server-websocket-not-working/50291)

<div class="topic-metadata">

**Author:** [@stingone](https://discourse.nodered.org/u/stingone)\
**Replies:** 1\
**Last updated:** [28 August 2021 06:23 UTC](https://discourse.nodered.org/t/node-red-on-vmware-ubuntu-server-websocket-not-working/50291 "2021-08-28T06:23:43Z")

</div>

Hi Everyone. i am running a ubuntu server version 20. Installerd node-red. The GUI is working en flows created. however im not able to create a websocket for instance with the samsung tv module. it gives me the error bel…

---

## [Save email image attached and send it by telegram](https://discourse.nodered.org/t/save-email-image-attached-and-send-it-by-telegram/50241)

<div class="topic-metadata">

**Author:** [@federicobalm](https://discourse.nodered.org/u/federicobalm)\
**Replies:** 1\
**Last updated:** [28 August 2021 07:00 UTC](https://discourse.nodered.org/t/save-email-image-attached-and-send-it-by-telegram/50241 "2021-08-28T07:00:32Z")

</div>

Hi friends. I was trying to find a solution to this but it was impossible. this problem i am having: I have a security camera installed to which I configure email alarm. the camera sends to my email inbox (gmail) the im…

---

## [Filter by name in payload](https://discourse.nodered.org/t/filter-by-name-in-payload/50257)

<div class="topic-metadata">

**Author:** [@simda](https://discourse.nodered.org/u/simda)\
**Replies:** 8\
**Last updated:** [28 August 2021 05:53 UTC](https://discourse.nodered.org/t/filter-by-name-in-payload/50257 "2021-08-28T05:53:59Z")

</div>

Hello, i am new in node red Node (MQTT IN) is connected to the things network (TTN), ELSYS ERS Eye registered in TTN, HTTP GET request configured to external application works payload is: v3/motiondetection@ttn/device…

---

## [How to setup secret for Signed Cookies?](https://discourse.nodered.org/t/how-to-setup-secret-for-signed-cookies/50305)

<div class="topic-metadata">

**Author:** [@itheemonk](https://discourse.nodered.org/u/itheemonk)\
**Replies:** 0\
**Last updated:** [27 August 2021 23:39 UTC](https://discourse.nodered.org/t/how-to-setup-secret-for-signed-cookies/50305 "2021-08-27T23:39:34Z")

</div>

Hi, I'm trying to get cookie signing working with my flow. When I try to create a signed cookie I get an error "Error: cookieParser("secret") required for signed cookies" So my question is how do I get access to the c…

---

## [Toshiba Inverter mooring engine Control](https://discourse.nodered.org/t/toshiba-inverter-mooring-engine-control/50289)

<div class="topic-metadata">

**Author:** [@dio](https://discourse.nodered.org/u/dio)\
**Replies:** 1\
**Last updated:** [27 August 2021 21:11 UTC](https://discourse.nodered.org/t/toshiba-inverter-mooring-engine-control/50289 "2021-08-27T21:11:43Z")

</div>

Hi, new in this word and trying to approach the automation word. I just started an automation project on a yacht, and it's quite difficult, i think i will use node red with signal k. The system will control all the ele…

---

## [Upload a file from Node-RED into Ninox](https://discourse.nodered.org/t/upload-a-file-from-node-red-into-ninox/49101)

<div class="topic-metadata">

**Author:** [@tfuchs1987](https://discourse.nodered.org/u/tfuchs1987)\
**Replies:** 1\
**Last updated:** [27 August 2021 13:51 UTC](https://discourse.nodered.org/t/upload-a-file-from-node-red-into-ninox/49101 "2021-08-27T13:51:00Z")

</div>

To upload data into the Ninox database I use the following msg.payload which works perfecly fine for strings but files are not properly uploading to the ninox image fields - at least with my attempts to provide the buffe…

---

## [Modbus TCP client not reconnecting after modbus server goes offline](https://discourse.nodered.org/t/modbus-tcp-client-not-reconnecting-after-modbus-server-goes-offline/50264)

<div class="topic-metadata">

**Author:** [@krish7](https://discourse.nodered.org/u/krish7)\
**Replies:** 4\
**Last updated:** [27 August 2021 20:20 UTC](https://discourse.nodered.org/t/modbus-tcp-client-not-reconnecting-after-modbus-server-goes-offline/50264 "2021-08-27T20:20:42Z")

</div>

I am running a modbus TCP client (node-red-contrib-modbus) on a node red inside a docker container. However, when the server goes offline and comes online - it's not reconnecting - it shows "reconnecting after 2000 msec…

---

## [Today this has started to happen](https://discourse.nodered.org/t/today-this-has-started-to-happen/50142)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 3\
**Last updated:** [25 August 2021 21:35 UTC](https://discourse.nodered.org/t/today-this-has-started-to-happen/50142 "2021-08-25T21:35:22Z")

</div>

NR 2.0.1 O/S Ubuntu 21.04 Dashboard 2.28.1 I have LINT installed. Further digging I am seeing an error: node not assigned to grid (from lint)

---

## [Populate dropdown from MQTT](https://discourse.nodered.org/t/populate-dropdown-from-mqtt/50281)

<div class="topic-metadata">

**Author:** [@nocsspecop](https://discourse.nodered.org/u/nocsspecop)\
**Replies:** 6\
**Last updated:** [27 August 2021 19:49 UTC](https://discourse.nodered.org/t/populate-dropdown-from-mqtt/50281 "2021-08-27T19:49:47Z")

</div>

Hello all, I'd like to populate the dashboard dropdown by using an "mqtt-in" element: So the idea is to send mqtt messages from my ESP32 to fill up the dropdown with new elements. Is something like that possible? T…

---

## [Need help decoding these packets](https://discourse.nodered.org/t/need-help-decoding-these-packets/49973)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 12\
**Last updated:** [27 August 2021 16:33 UTC](https://discourse.nodered.org/t/need-help-decoding-these-packets/49973 "2021-08-27T16:33:22Z")

</div>

Guys, Just in the middle of commissioning our new Battery system and trying to work out the information being returned by the inverter. At this stage there is little/no data on the internet regarding this inverter and …

---

## [Node-Red and exchangelib](https://discourse.nodered.org/t/node-red-and-exchangelib/50253)

<div class="topic-metadata">

**Author:** [@EliMZ](https://discourse.nodered.org/u/EliMZ)\
**Replies:** 1\
**Last updated:** [27 August 2021 16:32 UTC](https://discourse.nodered.org/t/node-red-and-exchangelib/50253 "2021-08-27T16:32:28Z")

</div>

Dear forum members, i'm verry new to Node-Red. I'm wondering if there is a node for exchangelib connection. I want to retreive how many unread mails are in a particular folder in exchange on premise mail server. Could…

---

## [Serial node strangeness](https://discourse.nodered.org/t/serial-node-strangeness/50232)

<div class="topic-metadata">

**Author:** [@SteveDonie](https://discourse.nodered.org/u/SteveDonie)\
**Replies:** 6\
**Last updated:** [27 August 2021 15:00 UTC](https://discourse.nodered.org/t/serial-node-strangeness/50232 "2021-08-27T15:00:19Z")

</div>

I have a flow running on a Raspberry Pi that has two serial nodes that communicate with an Arduino - one for reading from the Arduino, one for writing back to it. Most of the time both nodes work properly, but for some r…

---

## [Randomly increase a value](https://discourse.nodered.org/t/randomly-increase-a-value/50268)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 1\
**Last updated:** [27 August 2021 11:28 UTC](https://discourse.nodered.org/t/randomly-increase-a-value/50268 "2021-08-27T11:28:02Z")

</div>

Hello! Is it possible to randomly increase a value from an array and pass it on? I have an array with 150-200 values (number and name) and that he then chooses one at random.

---

## [Deploy vs. restart Node-RED](https://discourse.nodered.org/t/deploy-vs-restart-node-red/50227)

<div class="topic-metadata">

**Author:** [@rko](https://discourse.nodered.org/u/rko)\
**Replies:** 10\
**Last updated:** [27 August 2021 09:19 UTC](https://discourse.nodered.org/t/deploy-vs-restart-node-red/50227 "2021-08-27T09:19:31Z")

</div>

Not sure if this came up before. We have a small problem because a restart of Node-RED does not behave the same way as a deploy when it comes to ui elements. Restart: msg will pass through node-red-dashboard : ui\_slider …

---

## [How to run INSERT SQL query depending upon the result of SELECT query?](https://discourse.nodered.org/t/how-to-run-insert-sql-query-depending-upon-the-result-of-select-query/50200)

<div class="topic-metadata">

**Author:** [@Nirajan](https://discourse.nodered.org/u/Nirajan)\
**Replies:** 4\
**Last updated:** [27 August 2021 07:33 UTC](https://discourse.nodered.org/t/how-to-run-insert-sql-query-depending-upon-the-result-of-select-query/50200 "2021-08-27T07:33:25Z")

</div>

Hello Everyone, Is there a possibility to write more than one query in a function node and execute it on single instance of mysql node?. First, i would like to run a select query and then run an insert query only if the…

---

## [Output and delay until condition](https://discourse.nodered.org/t/output-and-delay-until-condition/50181)

<div class="topic-metadata">

**Author:** [@scargill](https://discourse.nodered.org/u/scargill)\
**Replies:** 9\
**Last updated:** [27 August 2021 05:43 UTC](https://discourse.nodered.org/t/output-and-delay-until-condition/50181 "2021-08-27T05:43:42Z")

</div>

Hi guys - looking for help - something I can't get my head around - can anyone help... I've an OPPLE switch which sends "HOLD" as payload then when you let go of the button, sends "RELEASE". I want an NR function that …

---

## [How to access mulitple payloads from function node?](https://discourse.nodered.org/t/how-to-access-mulitple-payloads-from-function-node/50214)

<div class="topic-metadata">

**Author:** [@markush1](https://discourse.nodered.org/u/markush1)\
**Replies:** 5\
**Last updated:** [26 August 2021 18:30 UTC](https://discourse.nodered.org/t/how-to-access-mulitple-payloads-from-function-node/50214 "2021-08-26T18:30:18Z")

</div>

Hi folks, i read a very interesting thing about storing multiple values in one payload with using a function node. It is described here. But how can i access this multiple values e.g. show it values on a dashboard with…

---

## [Write on modbus node](https://discourse.nodered.org/t/write-on-modbus-node/50223)

<div class="topic-metadata">

**Author:** [@jlqautomacao](https://discourse.nodered.org/u/jlqautomacao)\
**Replies:** 2\
**Last updated:** [26 August 2021 17:55 UTC](https://discourse.nodered.org/t/write-on-modbus-node/50223 "2021-08-26T17:55:44Z")

</div>

Hi, how do i write in modbus node with function 16, 4 bytes? Can someone help me? I'm only able to read the modules, but I can't write.

---

## [Catch editors 'access\_token' from httpAdminMiddleware](https://discourse.nodered.org/t/catch-editors-access-token-from-httpadminmiddleware/50193)

<div class="topic-metadata">

**Author:** [@Daft11](https://discourse.nodered.org/u/Daft11)\
**Replies:** 1\
**Last updated:** [26 August 2021 17:10 UTC](https://discourse.nodered.org/t/catch-editors-access-token-from-httpadminmiddleware/50193 "2021-08-26T17:10:30Z")

</div>

Good day, ladies and gentlemen. Need your expertise. With help of other topics from this forum I managed to configure my adminAuth module. It's working great! I chose as an option to pass access\_token through editor url…

---

## [Iot2040 - opcua error](https://discourse.nodered.org/t/iot2040-opcua-error/50216)

<div class="topic-metadata">

**Author:** [@CaioTech](https://discourse.nodered.org/u/CaioTech)\
**Replies:** 0\
**Last updated:** [26 August 2021 15:08 UTC](https://discourse.nodered.org/t/iot2040-opcua-error/50216 "2021-08-26T15:08:19Z")

</div>

Good afternoon. I have a SIEMENS device ( IOT2040 - 6ES7 647-0AA0-1YA2) I performed its settings according to its manual from page 10 After installing the image on the SD we tried to install the module "node-red-cont…

---

## [Design pattern for restarting a message loop (which should contain only one message at the time) with multiple dynamic delays](https://discourse.nodered.org/t/design-pattern-for-restarting-a-message-loop-which-should-contain-only-one-message-at-the-time-with-multiple-dynamic-delays/49128)

<div class="topic-metadata">

**Author:** [@rko](https://discourse.nodered.org/u/rko)\
**Replies:** 18\
**Last updated:** [26 August 2021 13:25 UTC](https://discourse.nodered.org/t/design-pattern-for-restarting-a-message-loop-which-should-contain-only-one-message-at-the-time-with-multiple-dynamic-delays/49128 "2021-08-26T13:25:51Z")

</div>

We are struggling with this for quite a while now. I found a cool way here by @dceejay (see first example flow below). However, because we are using link in and link out nodes, the messages arrive in wrong order at the d…

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

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