# Developing Nodes

**URL:** https://discourse.nodered.org/c/developing-nodes/15.md?page=21

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

**Page:** 22

---

## [Woes with typedInput field and boolean default value](https://discourse.nodered.org/t/woes-with-typedinput-field-and-boolean-default-value/59825)

<div class="topic-metadata">

**Author:** [@tve](https://discourse.nodered.org/u/tve)\
**Replies:** 2\
**Last updated:** [14 March 2022 15:13 UTC](https://discourse.nodered.org/t/woes-with-typedinput-field-and-boolean-default-value/59825 "2022-03-14T15:13:51Z")

</div>

I'm trying to initialize a typedInput field with a boolean value of false, and I'm not managing. I prepared a minimal test-case to show the issue. The node HTML defines falsy values for 4 flags and then creates a typedIn…

---

## [Merge/Join 2 messages](https://discourse.nodered.org/t/merge-join-2-messages/59840)

<div class="topic-metadata">

**Author:** [@SplitSecComp](https://discourse.nodered.org/u/SplitSecComp)\
**Replies:** 2\
**Last updated:** [14 March 2022 13:09 UTC](https://discourse.nodered.org/t/merge-join-2-messages/59840 "2022-03-14T13:09:18Z")

</div>

Hi. I am trying to merge or join the 2 messages in to one but one is an object and one is a string. The join nodes does not work. How can i join merge these two messages i have tried everything but no success. The f…

---

## [How can I change an output to the MQTT](https://discourse.nodered.org/t/how-can-i-change-an-output-to-the-mqtt/59511)

<div class="topic-metadata">

**Author:** [@chrisausat](https://discourse.nodered.org/u/chrisausat)\
**Replies:** 6\
**Last updated:** [14 March 2022 11:22 UTC](https://discourse.nodered.org/t/how-can-i-change-an-output-to-the-mqtt/59511 "2022-03-14T11:22:10Z")

</div>

How can I change an output to the MQTT. The Payload from Node Red to the MQTT is: {"Device":"0x88DA","Send":{"Color":\[15932,14999\]}} But i Need it so: {"Device":"0x88DA","Send":{"Color":"15932,14999"}} The two numbe…

---

## [Where to save persistent data in a published node](https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544)

<div class="topic-metadata">

**Author:** [@tve](https://discourse.nodered.org/u/tve)\
**Replies:** 23\
**Last updated:** [13 March 2022 07:09 UTC](https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544 "2022-03-13T07:09:05Z")

</div>

I need to save a pile of JSON in a node I'm publishing (this is for FlexDash and the data is the configuration of the dashboard). I'm a bit at a loss about the best method for saving. I've contemplated three options: U…

---

## [Rasperry PI OS 64bit with Node-Red?](https://discourse.nodered.org/t/rasperry-pi-os-64bit-with-node-red/59760)

<div class="topic-metadata">

**Author:** [@fugit185](https://discourse.nodered.org/u/fugit185)\
**Replies:** 2\
**Last updated:** [12 March 2022 18:06 UTC](https://discourse.nodered.org/t/rasperry-pi-os-64bit-with-node-red/59760 "2022-03-12T18:06:06Z")

</div>

Rasperry PI 64bit OS is now officially launched. Is there any concerns or benefit for Node-Red?

---

## [HTML request via Function node](https://discourse.nodered.org/t/html-request-via-function-node/59545)

<div class="topic-metadata">

**Author:** [@StrongTown](https://discourse.nodered.org/u/StrongTown)\
**Replies:** 5\
**Last updated:** [8 March 2022 23:16 UTC](https://discourse.nodered.org/t/html-request-via-function-node/59545 "2022-03-08T23:16:30Z")

</div>

Full disclosure, I'm not very adept at HTML, I don't even like it (nothing intuitive about it). I'm trying to set up access to the Ecobee server to read / control thermostats. This "may" become my first attempt at cre…

---

## [Recursive treeList](https://discourse.nodered.org/t/recursive-treelist/59543)

<div class="topic-metadata">

**Author:** [@cloud-rocket](https://discourse.nodered.org/u/cloud-rocket)\
**Replies:** 1\
**Last updated:** [8 March 2022 18:26 UTC](https://discourse.nodered.org/t/recursive-treelist/59543 "2022-03-08T18:26:31Z")

</div>

I'd like to use treeList widget to allow a user to select nodes from a huge data tree (file system). A specific node content can be loaded dynamically using $.getJSON with a "path" argument. I noticed that treeList supp…

---

## [Docker to test out my feature branch of my node in docker?](https://discourse.nodered.org/t/docker-to-test-out-my-feature-branch-of-my-node-in-docker/59508)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 4\
**Last updated:** [8 March 2022 13:09 UTC](https://discourse.nodered.org/t/docker-to-test-out-my-feature-branch-of-my-node-in-docker/59508 "2022-03-08T13:09:47Z")

</div>

My goal is to use the latest node-red in docker to test out my feature branch of my node in docker. I scarfed up the latest minimal docker container with: docker run -it -p 2880:1880 -v node\_red\_data:/data --name mynod…

---

## [Bug in multi-line editor docs](https://discourse.nodered.org/t/bug-in-multi-line-editor-docs/59499)

<div class="topic-metadata">

**Author:** [@tve](https://discourse.nodered.org/u/tve)\
**Replies:** 14\
**Last updated:** [7 March 2022 18:43 UTC](https://discourse.nodered.org/t/bug-in-multi-line-editor-docs/59499 "2022-03-07T18:43:16Z")

</div>

There's a bug in the multiline editor doc Node edit dialog : Node-RED, specifically, it shows: oneditsave: function() { this.exampleText = this.editor.getValue(); this.editor.destroy(); delete this.editor; }…

---

## [Wrong date format?](https://discourse.nodered.org/t/wrong-date-format/59449)

<div class="topic-metadata">

**Author:** [@fugit185](https://discourse.nodered.org/u/fugit185)\
**Replies:** 7\
**Last updated:** [7 March 2022 13:49 UTC](https://discourse.nodered.org/t/wrong-date-format/59449 "2022-03-07T13:49:25Z")

</div>

Hi, I have this in Function node var d = new Date(); //var dt = d.toLocaleString("fi-FI", { timeZone: 'Europe/Helsinki' }); var dt = d.toLocaleString("fi-FI"); msg.payload = dt + "," + msg.payload; return msg; accrodi…

---

## [Postgresql with nodered - Error: connect ECONNREFUSED 192.168.0.27:5432](https://discourse.nodered.org/t/postgresql-with-nodered-error-connect-econnrefused-192-168-0-27-5432/59408)

<div class="topic-metadata">

**Author:** [@retegi](https://discourse.nodered.org/u/retegi)\
**Replies:** 3\
**Last updated:** [6 March 2022 14:48 UTC](https://discourse.nodered.org/t/postgresql-with-nodered-error-connect-econnrefused-192-168-0-27-5432/59408 "2022-03-06T14:48:40Z")

</div>

Hi! I am trying to connect PostgreSQL with nodered, but: Error: connect ECONNREFUSED 192.168.0.27:5432 Nodered is inside a virtual machine (ip: 192.168.0.28) PostgreSQL isinside virtual machine (192.168.0.27) db\_ins…

---

## [What is event name of Configuration nodes update?](https://discourse.nodered.org/t/what-is-event-name-of-configuration-nodes-update/59340)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 2\
**Last updated:** [4 March 2022 10:28 UTC](https://discourse.nodered.org/t/what-is-event-name-of-configuration-nodes-update/59340 "2022-03-04T10:28:16Z")

</div>

Hi all, I had created my main created node, and it call configuration nodes. Now configuration node can open and editable. But I want to control configuration when \[Update\] button of configuration node is clicked. I …

---

## [How to Change Color of Node Lable?](https://discourse.nodered.org/t/how-to-change-color-of-node-lable/59267)

<div class="topic-metadata">

**Author:** [@Aurorealise](https://discourse.nodered.org/u/Aurorealise)\
**Replies:** 1\
**Last updated:** [3 March 2022 06:07 UTC](https://discourse.nodered.org/t/how-to-change-color-of-node-lable/59267 "2022-03-03T06:07:52Z")

</div>

Is there a way to change the color of the node label? For a custom node I'm making, I'm planning to give it a dark background color, so I would like the label to be white to contrast with the dark background. I'm thinkin…

---

## [Supported Node-RED Version in package.json](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097)

<div class="topic-metadata">

**Author:** [@JsBergbau](https://discourse.nodered.org/u/JsBergbau)\
**Replies:** 3\
**Last updated:** [1 March 2022 20:42 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097 "2022-03-01T20:42:48Z")

</div>

Hallo, I've uploaded here a Node node-red-contrib-sds011-dust-sensor (node) - Node-RED and scorecard complains about missing Node-RED version. package.json is { "name": "node-red-contrib-sds011-dust-sensor", "vers…

---

## [Issues on flows.nodered.org for new version of my node](https://discourse.nodered.org/t/issues-on-flows-nodered-org-for-new-version-of-my-node/58966)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 9\
**Last updated:** [28 February 2022 09:15 UTC](https://discourse.nodered.org/t/issues-on-flows-nodered-org-for-new-version-of-my-node/58966 "2022-02-28T09:15:17Z")

</div>

Hi folks, I have published version 1.0.1 of my node-red-contrib-xterm node, but I have some issues with it: On flows.nodered.org my readme page is empty for some reason. The scorecard reports issues with my depend…

---

## [I am aiming to create a node with multiple selection generated dynamically from an HTTP request](https://discourse.nodered.org/t/i-am-aiming-to-create-a-node-with-multiple-selection-generated-dynamically-from-an-http-request/58883)

<div class="topic-metadata">

**Author:** [@GianniCeleste](https://discourse.nodered.org/u/GianniCeleste)\
**Replies:** 13\
**Last updated:** [25 February 2022 14:57 UTC](https://discourse.nodered.org/t/i-am-aiming-to-create-a-node-with-multiple-selection-generated-dynamically-from-an-http-request/58883 "2022-02-25T14:57:38Z")

</div>

Hi everyone, This is my first post here and I'm new to NodeRED and to js/HTML in general - I'm usually a backend guy -. I therefore have zero experience so please, forgive me :slight\_smile:. I followed the tutorial on …

---

## [Installation/update problems due to WARN deprecated?](https://discourse.nodered.org/t/installation-update-problems-due-to-warn-deprecated/58241)

<div class="topic-metadata">

**Author:** [@windkh](https://discourse.nodered.org/u/windkh)\
**Replies:** 13\
**Last updated:** [24 February 2022 11:47 UTC](https://discourse.nodered.org/t/installation-update-problems-due-to-warn-deprecated/58241 "2022-02-24T11:47:22Z")

</div>

Hi tomall professionals some people complain that updating is not possible anylonger. I just added two things in package.json to meet all scoreboard requirements … after that release people started reporting issues se…

---

## [How to find out URL of node-red inside a node?](https://discourse.nodered.org/t/how-to-find-out-url-of-node-red-inside-a-node/58893)

<div class="topic-metadata">

**Author:** [@windkh](https://discourse.nodered.org/u/windkh)\
**Replies:** 6\
**Last updated:** [24 February 2022 06:58 UTC](https://discourse.nodered.org/t/how-to-find-out-url-of-node-red-inside-a-node/58893 "2022-02-24T06:58:20Z")

</div>

Hi, I want to receive a HTTP GET inside my own node like the HTTP-in does it as follows: RED.httpNode.get('/myprivateroute', cookieParser(), httpMiddleware, corsHandler, metricsHandler, callback, errorHandler); My que…

---

## [Save HTML select tag selection for reload value in config screen](https://discourse.nodered.org/t/save-html-select-tag-selection-for-reload-value-in-config-screen/58731)

<div class="topic-metadata">

**Author:** [@NicoloToscani](https://discourse.nodered.org/u/NicoloToscani)\
**Replies:** 6\
**Last updated:** [21 February 2022 13:58 UTC](https://discourse.nodered.org/t/save-html-select-tag-selection-for-reload-value-in-config-screen/58731 "2022-02-21T13:58:27Z")

</div>

Hi, in my node I need to store the value of the selected select tag to be able to set the value when I re-open config screen. Now when I open config display after first configuration, the first value in the list is alw…

---

## [Referencing common entries from message catalog for packages with scoped name](https://discourse.nodered.org/t/referencing-common-entries-from-message-catalog-for-packages-with-scoped-name/58681)

<div class="topic-metadata">

**Author:** [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)\
**Replies:** 2\
**Last updated:** [20 February 2022 14:20 UTC](https://discourse.nodered.org/t/referencing-common-entries-from-message-catalog-for-packages-with-scoped-name/58681 "2022-02-20T14:20:52Z")

</div>

Hi, I'm currently implementing a new node package having a scoped name according to the new naming conventions. Now I noticed that Node-RED seems to have problems referencing common entries from the message catalog for …

---

## [Can credentials variable keep array value?](https://discourse.nodered.org/t/can-credentials-variable-keep-array-value/58612)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 0\
**Last updated:** [18 February 2022 15:59 UTC](https://discourse.nodered.org/t/can-credentials-variable-keep-array-value/58612 "2022-02-18T15:59:01Z")

</div>

Hi all, Normally, credential keep one variable per one value. credentials: { token: { type: "text" } Is it posible keep credential one variable per array value? credentials: { token: \[{ ty…

---

## [Is there any editable-list example in Node-Red document?](https://discourse.nodered.org/t/is-there-any-editable-list-example-in-node-red-document/58591)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 2\
**Last updated:** [18 February 2022 13:10 UTC](https://discourse.nodered.org/t/is-there-any-editable-list-example-in-node-red-document/58591 "2022-02-18T13:10:40Z")

</div>

Hi all, I want to add editable-list in my created node. Is there any editable-list example in Node-Red document? :sweat:

---

## [Read settings.js within custom node](https://discourse.nodered.org/t/read-settings-js-within-custom-node/58401)

<div class="topic-metadata">

**Author:** [@LGaam](https://discourse.nodered.org/u/LGaam)\
**Replies:** 7\
**Last updated:** [16 February 2022 17:28 UTC](https://discourse.nodered.org/t/read-settings-js-within-custom-node/58401 "2022-02-16T17:28:04Z")

</div>

Hello, We would like to backup the flows.json through mqtt to the broker. The task itself is working perfect. For different platforms we would like to read the settings.js to find the correct path to the flows.json. I…

---

## [Calling JSON file using ajax](https://discourse.nodered.org/t/calling-json-file-using-ajax/57980)

<div class="topic-metadata">

**Author:** [@hussain044](https://discourse.nodered.org/u/hussain044)\
**Replies:** 9\
**Last updated:** [16 February 2022 09:08 UTC](https://discourse.nodered.org/t/calling-json-file-using-ajax/57980 "2022-02-16T09:08:02Z")

</div>

Hello Node-RED community Normally when we call a JSON file while doing web development, it exist in the same folder and we use get method to access it. So, when i want to call it via node red html, how can i call it? A…

---

## [Responding to a node's 'send' event](https://discourse.nodered.org/t/responding-to-a-nodes-send-event/58421)

<div class="topic-metadata">

**Author:** [@EJSRobinson](https://discourse.nodered.org/u/EJSRobinson)\
**Replies:** 1\
**Last updated:** [16 February 2022 11:49 UTC](https://discourse.nodered.org/t/responding-to-a-nodes-send-event/58421 "2022-02-16T11:49:31Z")

</div>

Hi all, I am currently using a common library in which I keep common functionality for a large set of node types. I obviously do this to avoid repeated code and to promote code maintainability. As it stands, all my nod…

---

## [Is there a way to pass variable to node-screenshot?](https://discourse.nodered.org/t/is-there-a-way-to-pass-variable-to-node-screenshot/58412)

<div class="topic-metadata">

**Author:** [@Hitesh](https://discourse.nodered.org/u/Hitesh)\
**Replies:** 0\
**Last updated:** [15 February 2022 18:25 UTC](https://discourse.nodered.org/t/is-there-a-way-to-pass-variable-to-node-screenshot/58412 "2022-02-15T18:25:05Z")

</div>

For example I want to take n webpages screenshot back to back. Is that possible through node-red?

---

## [Error Handling - Issues with Unhandled promise rejection](https://discourse.nodered.org/t/error-handling-issues-with-unhandled-promise-rejection/58163)

<div class="topic-metadata">

**Author:** [@Chromag](https://discourse.nodered.org/u/Chromag)\
**Replies:** 5\
**Last updated:** [11 February 2022 21:36 UTC](https://discourse.nodered.org/t/error-handling-issues-with-unhandled-promise-rejection/58163 "2022-02-11T21:36:07Z")

</div>

So I'm creating a node that's using Axios to make a call to an API. I've created an async function to make that call. I'm catching any exceptions thrown by that function but it is still throwing unhandled promise rejec…

---

## [Package help page internationalization](https://discourse.nodered.org/t/package-help-page-internationalization/57973)

<div class="topic-metadata">

**Author:** [@gcaza](https://discourse.nodered.org/u/gcaza)\
**Replies:** 1\
**Last updated:** [11 February 2022 08:42 UTC](https://discourse.nodered.org/t/package-help-page-internationalization/57973 "2022-02-11T08:42:31Z")

</div>

Hi, I have a hard time making the help page internationalization from the package i'm currently working on to work. I tried using the nodesDir directory to deploy my package, and also tried packaging my nodes using npm…

---

## [Build custom node with complex React UI in edit mode](https://discourse.nodered.org/t/build-custom-node-with-complex-react-ui-in-edit-mode/58074)

<div class="topic-metadata">

**Author:** [@Rydmark](https://discourse.nodered.org/u/Rydmark)\
**Replies:** 1\
**Last updated:** [10 February 2022 20:58 UTC](https://discourse.nodered.org/t/build-custom-node-with-complex-react-ui-in-edit-mode/58074 "2022-02-10T20:58:41Z")

</div>

Hi all, I wanted to check if this is at all doable in any good fashion. The need is to have a very complex UI for editing a template, think report designer in complexity. This can't be on the dashboard, but when editing…

---

## [How to set previous node's output/payload as an input in .html file of a current custom node?](https://discourse.nodered.org/t/how-to-set-previous-nodes-output-payload-as-an-input-in-html-file-of-a-current-custom-node/57912)

<div class="topic-metadata">

**Author:** [@chaudharigr17.is](https://discourse.nodered.org/u/chaudharigr17.is)\
**Replies:** 1\
**Last updated:** [7 February 2022 13:52 UTC](https://discourse.nodered.org/t/how-to-set-previous-nodes-output-payload-as-an-input-in-html-file-of-a-current-custom-node/57912 "2022-02-07T13:52:04Z")

</div>

I am creating a custom node, in which I need to use the previous node's output as input in the current node. for that, I was trying to set "msg.payload" as a value at line number 6, but its not working.

[Previous page](https://discourse.nodered.org/c/developing-nodes/15.md?page=20)

[Next page](https://discourse.nodered.org/c/developing-nodes/15.md?page=22)
