# Latest

**URL:** https://discourse.nodered.org/latest.md?page=744

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

**Page:** 745

---

## [What is the proper way to require a module for use in httpNodeMiddleware?](https://discourse.nodered.org/t/what-is-the-proper-way-to-require-a-module-for-use-in-httpnodemiddleware/50319)

<div class="topic-metadata">

**Author:** [@itheemonk](https://discourse.nodered.org/u/itheemonk)\
**Replies:** 5\
**Last updated:** [28 August 2021 22:04 UTC](https://discourse.nodered.org/t/what-is-the-proper-way-to-require-a-module-for-use-in-httpnodemiddleware/50319 "2021-08-28T22:04:10Z")

</div>

I have the this declaration in my httpNodeMiddleware function: var jwt = require('jsonwebtoken'); Where can I move this too so that I don't have to load the module every time a request comes in? cheers,

---

## ["node-red admin login" fails with enabled https](https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336)

<div class="topic-metadata">

**Author:** [@rko](https://discourse.nodered.org/u/rko)\
**Replies:** 1\
**Last updated:** [28 August 2021 22:03 UTC](https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336 "2021-08-28T22:03:47Z")

</div>

Just wanted to explore the node-red admin commands and got the "usual" certificate error: Error: self signed certificate We could invest some time to get rid of the error but as soon as the device is out in the wild (a…

---

## [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…

---

## [Uibuilder - Declaration of Each Input in Data](https://discourse.nodered.org/t/uibuilder-declaration-of-each-input-in-data/50312)

<div class="topic-metadata">

**Author:** [@Paulf007](https://discourse.nodered.org/u/Paulf007)\
**Replies:** 3\
**Last updated:** [28 August 2021 20:45 UTC](https://discourse.nodered.org/t/uibuilder-declaration-of-each-input-in-data/50312 "2021-08-28T20:45:26Z")

</div>

I am taking the plunge into Ui-Builder and from most of the templates and example's out here I managed to get something resembling a dash going but I want to check some thing. in the Index.js file variables is linked vi…

---

## [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 …

---

## [RE: Updating a Node-RED flow from the file system](https://discourse.nodered.org/t/re-updating-a-node-red-flow-from-the-file-system/50169)

<div class="topic-metadata">

**Author:** [@awneil](https://discourse.nodered.org/u/awneil)\
**Replies:** 12\
**Last updated:** [28 August 2021 15:48 UTC](https://discourse.nodered.org/t/re-updating-a-node-red-flow-from-the-file-system/50169 "2021-08-28T15:48:53Z")

</div>

Ref: The thread established that it is, indeed, possible. But it seems a bit risky - allowing to upload any arbitrary file which just happens to have the "json" file type. Some sort of "signature" would seem benefi…

---

## [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…

---

## [Opc da server and opc da client issues](https://discourse.nodered.org/t/opc-da-server-and-opc-da-client-issues/50324)

<div class="topic-metadata">

**Author:** [@venkateshbokka232](https://discourse.nodered.org/u/venkateshbokka232)\
**Replies:** 1\
**Last updated:** [28 August 2021 11:48 UTC](https://discourse.nodered.org/t/opc-da-server-and-opc-da-client-issues/50324 "2021-08-28T11:48:53Z")

</div>

Continuing the discussion from Opc da server and opc da client:

---

## [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…

---

## [Dashboard, ui\_media problem, with node code (cont.)](https://discourse.nodered.org/t/dashboard-ui-media-problem-with-node-code-cont/50102)

<div class="topic-metadata">

**Author:** [@magnusso](https://discourse.nodered.org/u/magnusso)\
**Replies:** 3\
**Last updated:** [27 August 2021 21:11 UTC](https://discourse.nodered.org/t/dashboard-ui-media-problem-with-node-code-cont/50102 "2021-08-27T21:11:39Z")

</div>

Cont. to thred https://discourse.nodered.org/t/dashboard-ui-media-problem-with-node-code/42567, @Steve-Mcl, many thanks for your code, it works. \[{"id":"16302fa9.75087","type":"function","z":"5d3f964c.fef898","name":"to…

---

## [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…

---

## [Varta memory - convert Modbus TCP value to watt](https://discourse.nodered.org/t/varta-memory-convert-modbus-tcp-value-to-watt/50255)

<div class="topic-metadata">

**Author:** [@plaxtika](https://discourse.nodered.org/u/plaxtika)\
**Replies:** 3\
**Last updated:** [27 August 2021 18:35 UTC](https://discourse.nodered.org/t/varta-memory-convert-modbus-tcp-value-to-watt/50255 "2021-08-27T18:35:18Z")

</div>

Hi there, can someone help me how to correctly convert the payload of a ModbusTCP return? I need the value in watts. Currently, a value of 65123 (from register 1066) or similar comes from the register. Unit is UNIT16. A…

---

## [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…

---

## [Adding extra modules-specific class to update button](https://discourse.nodered.org/t/adding-extra-modules-specific-class-to-update-button/50276)

<div class="topic-metadata">

**Author:** [@dirkjanfaber](https://discourse.nodered.org/u/dirkjanfaber)\
**Replies:** 1\
**Last updated:** [27 August 2021 13:32 UTC](https://discourse.nodered.org/t/adding-extra-modules-specific-class-to-update-button/50276 "2021-08-27T13:32:08Z")

</div>

On our Venus OS, we have started to include Node-RED. Next to Node-RED, we also provide the node-red-contrib-victron module. On our devices, this all resides on a read-only filesystem; updating versions goes via complete…

---

## [Dashboard: Disable but don't dim a button?](https://discourse.nodered.org/t/dashboard-disable-but-dont-dim-a-button/50220)

<div class="topic-metadata">

**Author:** [@awneil](https://discourse.nodered.org/u/awneil)\
**Replies:** 9\
**Last updated:** [27 August 2021 12:15 UTC](https://discourse.nodered.org/t/dashboard-disable-but-dont-dim-a-button/50220 "2021-08-27T12:15:51Z")

</div>

Is there a way to disable a Dashboard button without also dimming it? I'm using a button as an indicator: setting its background to red or green and label to 'on' or 'off' So modelling an indicator which lights up …

[Previous page](https://discourse.nodered.org/latest.md?page=743)

[Next page](https://discourse.nodered.org/latest.md?page=745)
