# Latest

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

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

**Page:** 1151

---

## [Is there a simple way to generate a custom node from .js file](https://discourse.nodered.org/t/is-there-a-simple-way-to-generate-a-custom-node-from-js-file/22096)

<div class="topic-metadata">

**Author:** [@josekavunkal](https://discourse.nodered.org/u/josekavunkal)\
**Replies:** 23\
**Last updated:** [26 February 2020 14:27 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-generate-a-custom-node-from-js-file/22096 "2020-02-26T14:27:17Z")

</div>

Is there a simple way to generate a custom node from .js file. I tried node-red-nodegen in vain .getting following error. Error: TypeError: Cannot read property 'match' of undefined My plan is to have a library of nod…

---

## [Using node-red-node-email with local mail server](https://discourse.nodered.org/t/using-node-red-node-email-with-local-mail-server/21927)

<div class="topic-metadata">

**Author:** [@tukru](https://discourse.nodered.org/u/tukru)\
**Replies:** 4\
**Last updated:** [26 February 2020 14:11 UTC](https://discourse.nodered.org/t/using-node-red-node-email-with-local-mail-server/21927 "2020-02-26T14:11:01Z")

</div>

Hi, I want to use node-red-node-email with a local mail server. First I tried with gmail and didn't had any problem but after I tried with the local server and it's returning: Unexpected socket close. What could be th…

---

## [Hpe\_invalid constant](https://discourse.nodered.org/t/hpe-invalid-constant/22255)

<div class="topic-metadata">

**Author:** [@Waynedejager](https://discourse.nodered.org/u/Waynedejager)\
**Replies:** 10\
**Last updated:** [26 February 2020 14:08 UTC](https://discourse.nodered.org/t/hpe-invalid-constant/22255 "2020-02-26T14:08:08Z")

</div>

Hi - Newbie here. ( Go Easy :wink: I have a device which runs a web browser ( ESP8266 ) with sensors collecting electricity values. The device runs a basic http Query API which can be triggered via browser and the paylo…

---

## [Mongodb dynamic access to collection - caused me problems](https://discourse.nodered.org/t/mongodb-dynamic-access-to-collection-caused-me-problems/22262)

<div class="topic-metadata">

**Author:** [@marcpouliot](https://discourse.nodered.org/u/marcpouliot)\
**Replies:** 2\
**Last updated:** [26 February 2020 14:06 UTC](https://discourse.nodered.org/t/mongodb-dynamic-access-to-collection-caused-me-problems/22262 "2020-02-26T14:06:04Z")

</div>

if the field Collection is left empty, msg.collection allowed to contain the collection for that ... .. but... I used it and it crashed my system, node-red would constantly restart.giving mongdb errors So there was no…

---

## [Node-RED startup error: TypeError: Cannot set property 'type' of undefined](https://discourse.nodered.org/t/node-red-startup-error-typeerror-cannot-set-property-type-of-undefined/22285)

<div class="topic-metadata">

**Author:** [@unixneo](https://discourse.nodered.org/u/unixneo)\
**Replies:** 2\
**Last updated:** [26 February 2020 13:24 UTC](https://discourse.nodered.org/t/node-red-startup-error-typeerror-cannot-set-property-type-of-undefined/22285 "2020-02-26T13:24:18Z")

</div>

Hi. I think I made an error in a function node, because I am now getting the error below when I start node-RED, it will not start and throws this error. 26 Feb 07:05:57 - \[red\] Uncaught Exception: 26 Feb 07:05:57 - Typ…

---

## [How to control the frequency of a message in modbus dynamically](https://discourse.nodered.org/t/how-to-control-the-frequency-of-a-message-in-modbus-dynamically/22130)

<div class="topic-metadata">

**Author:** [@smithtek](https://discourse.nodered.org/u/smithtek)\
**Replies:** 3\
**Last updated:** [26 February 2020 12:56 UTC](https://discourse.nodered.org/t/how-to-control-the-frequency-of-a-message-in-modbus-dynamically/22130 "2020-02-26T12:56:43Z")

</div>

Hi. I have searched high and low for a node that could handle this but nothing seemed to be available. Im using the Modbus getter nodes. You can control the polling frequency by injecting the input of the getter nodes …

---

## [Can't load NodeRED after installing alongside HOOBS](https://discourse.nodered.org/t/cant-load-nodered-after-installing-alongside-hoobs/22282)

<div class="topic-metadata">

**Author:** [@Fookes](https://discourse.nodered.org/u/Fookes)\
**Replies:** 6\
**Last updated:** [26 February 2020 12:52 UTC](https://discourse.nodered.org/t/cant-load-nodered-after-installing-alongside-hoobs/22282 "2020-02-26T12:52:11Z")

</div>

Hi, I'm setting up Homebridge for a chum of mine on a RPi 4. Installed HOOBS and they provide a script on their website to run via terminal and installed NodeRED alongside it. I ran that and it went as expected, includin…

---

## [Google IoT connection MQTT to Node-Red using JWT?](https://discourse.nodered.org/t/google-iot-connection-mqtt-to-node-red-using-jwt/22283)

<div class="topic-metadata">

**Author:** [@hsn548](https://discourse.nodered.org/u/hsn548)\
**Replies:** 0\
**Last updated:** [26 February 2020 11:58 UTC](https://discourse.nodered.org/t/google-iot-connection-mqtt-to-node-red-using-jwt/22283 "2020-02-26T11:58:50Z")

</div>

I am using Node-Red and trying to connect to MQTT Broker at mqtt.googleapis.com:8883 using JWT. I am able to connect via python script but i am not able to connect using Node-Red. The problem is I am using a cryptochip …

---

## [Dynamically create dashboard items](https://discourse.nodered.org/t/dynamically-create-dashboard-items/13841)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 5\
**Last updated:** [26 February 2020 12:22 UTC](https://discourse.nodered.org/t/dynamically-create-dashboard-items/13841 "2020-02-26T12:22:20Z")

</div>

I'm redesigning my lighting control from scratch. Previously each light belonged to a "zone" (e.g. bedroom) and each "zone" had a set of presets which were "hard-coded". Here's an example of what I mean by "hard-coded": …

---

## [Set password for node-red on Raspberry Pi](https://discourse.nodered.org/t/set-password-for-node-red-on-raspberry-pi/22244)

<div class="topic-metadata">

**Author:** [@Belgium](https://discourse.nodered.org/u/Belgium)\
**Replies:** 2\
**Last updated:** [26 February 2020 08:33 UTC](https://discourse.nodered.org/t/set-password-for-node-red-on-raspberry-pi/22244 "2020-02-26T08:33:55Z")

</div>

Hello We recently bought a raspberry Pi 4 and we tried to set up a password for node-red. We went to settings.js but this seemed to be empty. Then we filled in this: adminAuth: { type: "credentials", users: \[ { us…

---

## [How do I provide username/password for Kerberos Authentication in JavaScript to be passed into an HTTP Request node?](https://discourse.nodered.org/t/how-do-i-provide-username-password-for-kerberos-authentication-in-javascript-to-be-passed-into-an-http-request-node/22275)

<div class="topic-metadata">

**Author:** [@zainisma](https://discourse.nodered.org/u/zainisma)\
**Replies:** 0\
**Last updated:** [26 February 2020 08:29 UTC](https://discourse.nodered.org/t/how-do-i-provide-username-password-for-kerberos-authentication-in-javascript-to-be-passed-into-an-http-request-node/22275 "2020-02-26T08:29:04Z")

</div>

Node Red version 1.0.3, node 12.16.0, npm 6.13.4. I have a problem with authentication access to retrieve data (in JSON format) from a https://webpage located in a pivision server. The authentication method used is Kerb…

---

## [Windows - Settings.js](https://discourse.nodered.org/t/windows-settings-js/22256)

<div class="topic-metadata">

**Author:** [@spyder0552](https://discourse.nodered.org/u/spyder0552)\
**Replies:** 2\
**Last updated:** [26 February 2020 07:58 UTC](https://discourse.nodered.org/t/windows-settings-js/22256 "2020-02-26T07:58:42Z")

</div>

Question for the group. I am trying to have more then one instance of Node-Red running (which I have). However, I would like to now use the options in the settings.js to get some more control, but can't seem to make it …

---

## [How can I save 100 payloads to a file then send that file via http](https://discourse.nodered.org/t/how-can-i-save-100-payloads-to-a-file-then-send-that-file-via-http/22266)

<div class="topic-metadata">

**Author:** [@hackett91](https://discourse.nodered.org/u/hackett91)\
**Replies:** 1\
**Last updated:** [26 February 2020 07:33 UTC](https://discourse.nodered.org/t/how-can-i-save-100-payloads-to-a-file-then-send-that-file-via-http/22266 "2020-02-26T07:33:31Z")

</div>

Basically, I want to save msg.payloads to a file and then send that file over HTTP? (have http code etc) Plus I want to do this continuously. Batch messages via file

---

## [Node Red Modules tar file download location](https://discourse.nodered.org/t/node-red-modules-tar-file-download-location/22247)

<div class="topic-metadata">

**Author:** [@rajasekharmullangi](https://discourse.nodered.org/u/rajasekharmullangi)\
**Replies:** 4\
**Last updated:** [26 February 2020 06:13 UTC](https://discourse.nodered.org/t/node-red-modules-tar-file-download-location/22247 "2020-02-26T06:13:30Z")

</div>

As part of my node red offline up-gradation i want tar file location for below modules. could you please let me know urls/location. node-red-node-mysql-0.0.19.tgz node-red-contrib-ui-level-0.1.23.tgz node-red-node-ui-…

---

## [Lidar data reading from Node-Red](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175)

<div class="topic-metadata">

**Author:** [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Replies:** 8\
**Last updated:** [25 February 2020 23:48 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175 "2020-02-25T23:48:35Z")

</div>

Is there any Node-red palette to decode and read Lidar sensor data directly?

---

## [Collapse Group using "ui control"](https://discourse.nodered.org/t/collapse-group-using-ui-control/21997)

<div class="topic-metadata">

**Author:** [@Cristiano](https://discourse.nodered.org/u/Cristiano)\
**Replies:** 8\
**Last updated:** [25 February 2020 23:47 UTC](https://discourse.nodered.org/t/collapse-group-using-ui-control/21997 "2020-02-25T23:47:58Z")

</div>

Hello, i don't if exist another topic open similar or equal, i try to search but no success, so if i'm duplicate, sorry So....my question is can i collapse a group using "ui control"? I' not talking about, "hide" or "…

---

## [Can't find function node (z=0)](https://discourse.nodered.org/t/cant-find-function-node-z-0/22248)

<div class="topic-metadata">

**Author:** [@RobP](https://discourse.nodered.org/u/RobP)\
**Replies:** 2\
**Last updated:** [25 February 2020 20:52 UTC](https://discourse.nodered.org/t/cant-find-function-node-z-0/22248 "2020-02-25T20:52:02Z")

</div>

Weird problem. I am searching for nodes with a specific string, and the search results show a function node with no tab name or subflow name. When I check the flows.json it shows as "z": 0. If I click the node from the s…

---

## [Dashboard doesn't render correct size for UI Template - how to fix?](https://discourse.nodered.org/t/dashboard-doesnt-render-correct-size-for-ui-template-how-to-fix/22253)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 2\
**Last updated:** [25 February 2020 18:40 UTC](https://discourse.nodered.org/t/dashboard-doesnt-render-correct-size-for-ui-template-how-to-fix/22253 "2020-02-25T18:40:44Z")

</div>

How do I fix this problem? (see below: it's me hitting F5 repeatedly showing it renders differently each time. The full table is what is desired) For reference, the code is just a very simple table as below: \<h3\>Regis…

---

## [Current State Node doesn´t see Entity ID](https://discourse.nodered.org/t/current-state-node-doesn-t-see-entity-id/11558)

<div class="topic-metadata">

**Author:** [@IsaTTeN](https://discourse.nodered.org/u/IsaTTeN)\
**Replies:** 6\
**Last updated:** [25 February 2020 17:39 UTC](https://discourse.nodered.org/t/current-state-node-doesn-t-see-entity-id/11558 "2020-02-25T17:39:11Z")

</div>

Hi I´m having a problem with this Flow. It was working well in Home Assistant before the last update. Now it isn´t working properly. This is my flow: And this is how should work: With a single click of Aqara switc…

---

## [How to calculate time from now to tomorrow 6 am?](https://discourse.nodered.org/t/how-to-calculate-time-from-now-to-tomorrow-6-am/22241)

<div class="topic-metadata">

**Author:** [@RalfPfitzner](https://discourse.nodered.org/u/RalfPfitzner)\
**Replies:** 6\
**Last updated:** [25 February 2020 16:11 UTC](https://discourse.nodered.org/t/how-to-calculate-time-from-now-to-tomorrow-6-am/22241 "2020-02-25T16:11:24Z")

</div>

Hi there, I've been reading the post on How to calculate time difference now a bit and would like to calculate the number of hours from now until 6 am tomorrow morning. I need that to know, when to start the charging o…

---

## [Configurable chart labels](https://discourse.nodered.org/t/configurable-chart-labels/22234)

<div class="topic-metadata">

**Author:** [@luotope](https://discourse.nodered.org/u/luotope)\
**Replies:** 2\
**Last updated:** [25 February 2020 14:31 UTC](https://discourse.nodered.org/t/configurable-chart-labels/22234 "2020-02-25T14:31:09Z")

</div>

I know this topic has been discussed before but couldn't find a final solution, at least for my case. Following the example by @hotNipi here. I have modified the example for my need. So, the node "gets" a weather/wind d…

---

## [Compare slider with payload value](https://discourse.nodered.org/t/compare-slider-with-payload-value/22200)

<div class="topic-metadata">

**Author:** [@jaguar](https://discourse.nodered.org/u/jaguar)\
**Replies:** 32\
**Last updated:** [25 February 2020 12:21 UTC](https://discourse.nodered.org/t/compare-slider-with-payload-value/22200 "2020-02-25T12:21:33Z")

</div>

I am attempting to set 2 sliders, one maximum temperature, the other minimum temperature, compare the slider settings with the payload value (a numerical value which updates every 2 seconds) and output an approriate mess…

---

## [Systemd start-depencies and network access](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211)

<div class="topic-metadata">

**Author:** [@mkauli](https://discourse.nodered.org/u/mkauli)\
**Replies:** 5\
**Last updated:** [25 February 2020 12:06 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211 "2020-02-25T12:06:40Z")

</div>

I had problems using knx-easy - the problem was that knx-easy did't worked direct after a restart. The KNX access only worked after an node-red-restart. My guess was that node-red starts too fast and wants to access the…

---

## ["Communication send error: Error: WebSocket is not open: readyState 3 (CLOSED)](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172)

<div class="topic-metadata">

**Author:** [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Replies:** 17\
**Last updated:** [25 February 2020 09:40 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172 "2020-02-25T09:40:24Z")

</div>

when I deploy my flow on node-red of raspberry, it always get out ""Communication send error: Error: WebSocket is not open: readyState 3 (CLOSED)", but if I run the same flow on another node-red of raspberry, it doesn't…

---

## [Set Tab and Group dynamically in UI Widgets](https://discourse.nodered.org/t/set-tab-and-group-dynamically-in-ui-widgets/22186)

<div class="topic-metadata">

**Author:** [@dabbelju](https://discourse.nodered.org/u/dabbelju)\
**Replies:** 2\
**Last updated:** [25 February 2020 09:30 UTC](https://discourse.nodered.org/t/set-tab-and-group-dynamically-in-ui-widgets/22186 "2020-02-25T09:30:04Z")

</div>

Hi all, a short summary of what I want: I Have severeal units in my company which are sending data via MQTT In the UI I have three different "views" = tabs. In tabs I have different groups. MOBIL (one TAB cont…

---

## [Msg.payload data writing to Postgres](https://discourse.nodered.org/t/msg-payload-data-writing-to-postgres/22142)

<div class="topic-metadata">

**Author:** [@little\_rich](https://discourse.nodered.org/u/little_rich)\
**Replies:** 15\
**Last updated:** [25 February 2020 07:51 UTC](https://discourse.nodered.org/t/msg-payload-data-writing-to-postgres/22142 "2020-02-25T07:51:01Z")

</div>

Hi, I have Node-Red and PostgreSQL running on a RasPi4. From Node-Red I can Create and Drop tables and I can write data into a db table using a standard INSERT statement, so I'm happy the basics are working. I am pick…

---

## [Dashboard Node to allow loading of files by web user? (Like "Form" node in node-red-dashboard)](https://discourse.nodered.org/t/dashboard-node-to-allow-loading-of-files-by-web-user-like-form-node-in-node-red-dashboard/22169)

<div class="topic-metadata">

**Author:** [@chrisgray13247](https://discourse.nodered.org/u/chrisgray13247)\
**Replies:** 2\
**Last updated:** [25 February 2020 03:56 UTC](https://discourse.nodered.org/t/dashboard-node-to-allow-loading-of-files-by-web-user-like-form-node-in-node-red-dashboard/22169 "2020-02-25T03:56:39Z")

</div>

Is there a node like the "form" node in node-red-dashboard (2.19.4) that will provide a file upload feature that web users of the dashboard can upload a file to for subsequent processing by other nodes as a payload of so…

---

## [RangeError: index out of range error](https://discourse.nodered.org/t/rangeerror-index-out-of-range-error/22220)

<div class="topic-metadata">

**Author:** [@ime011O](https://discourse.nodered.org/u/ime011O)\
**Replies:** 1\
**Last updated:** [25 February 2020 00:02 UTC](https://discourse.nodered.org/t/rangeerror-index-out-of-range-error/22220 "2020-02-25T00:02:44Z")

</div>

I run Noble on the Raspberry Pi 3 (with Bluetooth) and i receive RSSI values from the nearby beacons that i have. However, if noble is ran the whole time i occasionally get the following error. Please help solve this iss…

---

## [UI-List multi users wrong behaviour](https://discourse.nodered.org/t/ui-list-multi-users-wrong-behaviour/15073)

<div class="topic-metadata">

**Author:** [@Andydesjardins](https://discourse.nodered.org/u/Andydesjardins)\
**Replies:** 17\
**Last updated:** [24 February 2020 22:55 UTC](https://discourse.nodered.org/t/ui-list-multi-users-wrong-behaviour/15073 "2020-02-24T22:55:27Z")

</div>

Hello, I found that many UI nodes are synchronized from a Dashboard instance to another, but others are not. The UI-List, for instance, doesn't. Is there an easy way to make it synchronized for multiple instances of Das…

---

## [http request parameters](https://discourse.nodered.org/t/http-request-parameters/22078)

<div class="topic-metadata">

**Author:** [@rex](https://discourse.nodered.org/u/rex)\
**Replies:** 2\
**Last updated:** [24 February 2020 22:16 UTC](https://discourse.nodered.org/t/http-request-parameters/22078 "2020-02-24T22:16:23Z")

</div>

I'm trying to set the right parameters for http request, but I'm not able to do it. The query with curl is this: curl -H "Content-Type: application/json" -X GET -d '{"auth\_key":"xf79rra", "payload":null}' https://retep…

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

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