# Developing Nodes

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

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

**Page:** 24

---

## [Creating User Authentication for Node Red UI Dashboards](https://discourse.nodered.org/t/creating-user-authentication-for-node-red-ui-dashboards/56000)

<div class="topic-metadata">

**Author:** [@saxenaramesh](https://discourse.nodered.org/u/saxenaramesh)\
**Replies:** 8\
**Last updated:** [9 January 2022 16:42 UTC](https://discourse.nodered.org/t/creating-user-authentication-for-node-red-ui-dashboards/56000 "2022-01-09T16:42:54Z")

</div>

I have a dashboard for an application. Few tabs / Groups need to be accessed by "Manager" Role ONLY while other should be visible / accessible to all roles. I created a flow where I can create this option using the "ui-c…

---

## [Logging from html oneditprepare](https://discourse.nodered.org/t/logging-from-html-oneditprepare/56246)

<div class="topic-metadata">

**Author:** [@Fredrik](https://discourse.nodered.org/u/Fredrik)\
**Replies:** 2\
**Last updated:** [7 January 2022 11:13 UTC](https://discourse.nodered.org/t/logging-from-html-oneditprepare/56246 "2022-01-07T11:13:31Z")

</div>

Hi. I'd like to be able to log error messages from the oneditprepare function, but I'm having some problems figuring out how. Console.log seems to work but I can't find the message, it doesn't show up in the node-red ou…

---

## [How to integrate a self cooked node and subflows into single package](https://discourse.nodered.org/t/how-to-integrate-a-self-cooked-node-and-subflows-into-single-package/56194)

<div class="topic-metadata">

**Author:** [@alsak0de](https://discourse.nodered.org/u/alsak0de)\
**Replies:** 1\
**Last updated:** [6 January 2022 20:01 UTC](https://discourse.nodered.org/t/how-to-integrate-a-self-cooked-node-and-subflows-into-single-package/56194 "2022-01-06T20:01:53Z")

</div>

Hello there, I am struggling to decide between having a single .js where the main node is defined and add into the .js the subflows read/import and register or if, otherwise, it is better to have each subflow aside with…

---

## [Predefined node field input types](https://discourse.nodered.org/t/predefined-node-field-input-types/55959)

<div class="topic-metadata">

**Author:** [@borpin](https://discourse.nodered.org/u/borpin)\
**Replies:** 8\
**Last updated:** [3 January 2022 14:12 UTC](https://discourse.nodered.org/t/predefined-node-field-input-types/55959 "2022-01-03T14:12:30Z")

</div>

Is there a list of the available input types somewhere so these can be included in an input definition? This is from the inject node so I suspect it includes all the predefined ones.

---

## [typedInput API type/types query](https://discourse.nodered.org/t/typedinput-api-type-types-query/55962)

<div class="topic-metadata">

**Author:** [@borpin](https://discourse.nodered.org/u/borpin)\
**Replies:** 6\
**Last updated:** [1 January 2022 23:07 UTC](https://discourse.nodered.org/t/typedinput-api-type-types-query/55962 "2022-01-01T23:07:47Z")

</div>

https://nodered.org/docs/api/ui/typedInput/ In the docs it lists 3 Options; But in the examples is has type which is not listed as an option. Is type the default for this input? Could I replace type:'str' with typ…

---

## [Custom node not showing up in Manage Pallette](https://discourse.nodered.org/t/custom-node-not-showing-up-in-manage-pallette/55946)

<div class="topic-metadata">

**Author:** [@shanajira](https://discourse.nodered.org/u/shanajira)\
**Replies:** 7\
**Last updated:** [1 January 2022 21:36 UTC](https://discourse.nodered.org/t/custom-node-not-showing-up-in-manage-pallette/55946 "2022-01-01T21:36:52Z")

</div>

Hello I have been struggling with this problem for a while. Here is the summary: -I have created a very small custom node. Updated the package.json file -followed the instructions to create a custom node. -I have …

---

## [Beginner create a test node Circular dependency issue](https://discourse.nodered.org/t/beginner-create-a-test-node-circular-dependency-issue/55958)

<div class="topic-metadata">

**Author:** [@bbartling](https://discourse.nodered.org/u/bbartling)\
**Replies:** 9\
**Last updated:** [1 January 2022 17:50 UTC](https://discourse.nodered.org/t/beginner-create-a-test-node-circular-dependency-issue/55958 "2022-01-01T17:50:31Z")

</div>

I'm experimenting trying to learn how to create nodes with installing them locally with npm install on the package.json file. For learning purposes & experimentation, I have very generic node called msg-recycler where a…

---

## [Move from using request to alternative for HTTP](https://discourse.nodered.org/t/move-from-using-request-to-alternative-for-http/55892)

<div class="topic-metadata">

**Author:** [@borpin](https://discourse.nodered.org/u/borpin)\
**Replies:** 19\
**Last updated:** [31 December 2021 10:22 UTC](https://discourse.nodered.org/t/move-from-using-request-to-alternative-for-http/55892 "2021-12-31T10:22:13Z")

</div>

On the basis that request is deprecated, as part of looking at the fitbit node (Fitbit nodes - working? - #4 by borpin), I thought the first step might be to move the module away from request and to node-fetch (looking a…

---

## [Creating a node with a drop down menu](https://discourse.nodered.org/t/creating-a-node-with-a-drop-down-menu/55844)

<div class="topic-metadata">

**Author:** [@bbartling](https://discourse.nodered.org/u/bbartling)\
**Replies:** 3\
**Last updated:** [29 December 2021 15:35 UTC](https://discourse.nodered.org/t/creating-a-node-with-a-drop-down-menu/55844 "2021-12-29T15:35:18Z")

</div>

Would anyone have any advice for how to start researching on how to create a Node that someone could install and pull out of the pallet? I understand the basics at a high level of installing a package locally with an np…

---

## [How to reload modified module](https://discourse.nodered.org/t/how-to-reload-modified-module/55878)

<div class="topic-metadata">

**Author:** [@borpin](https://discourse.nodered.org/u/borpin)\
**Replies:** 2\
**Last updated:** [30 December 2021 15:17 UTC](https://discourse.nodered.org/t/how-to-reload-modified-module/55878 "2021-12-30T15:17:23Z")

</div>

What is the quickest way to force Node-RED to reload a module that has been modified on disk? Previously I have found I needed to restart Node-RED and refresh the browser, but I am wondering if there is an easier/quicke…

---

## [Error: "Node not available"](https://discourse.nodered.org/t/error-node-not-available/55732)

<div class="topic-metadata">

**Author:** [@bsailer2510](https://discourse.nodered.org/u/bsailer2510)\
**Replies:** 11\
**Last updated:** [29 December 2021 09:50 UTC](https://discourse.nodered.org/t/error-node-not-available/55732 "2021-12-29T09:50:29Z")

</div>

Since i've updated Node-Red, NVM and NodeJS today i'm getting an Errormessage on all my existing Flows: "Node not available". Anyone any idea? -Raspberry Pi 4 -nodeJS v10.24.0 -node-red v2.1.4

---

## [Unable to manipulate values in Editor control via oneditsave()](https://discourse.nodered.org/t/unable-to-manipulate-values-in-editor-control-via-oneditsave/55681)

<div class="topic-metadata">

**Author:** [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Replies:** 4\
**Last updated:** [27 December 2021 09:46 UTC](https://discourse.nodered.org/t/unable-to-manipulate-values-in-editor-control-via-oneditsave/55681 "2021-12-27T09:46:57Z")

</div>

With a custom node's parameter configuration editor, I'd like to convert a multi-line textarea's content from a single string to a list of strings, one per line. Here is how I tried it with mynode.html oneditsa…

---

## [Project - take control over XML based electrical system (Nordic-Systems)](https://discourse.nodered.org/t/project-take-control-over-xml-based-electrical-system-nordic-systems/55619)

<div class="topic-metadata">

**Author:** [@Markusbj](https://discourse.nodered.org/u/Markusbj)\
**Replies:** 0\
**Last updated:** [23 December 2021 15:53 UTC](https://discourse.nodered.org/t/project-take-control-over-xml-based-electrical-system-nordic-systems/55619 "2021-12-23T15:53:55Z")

</div>

Goal: Centralize technique via Node-red and HomeAssistant and control ports/switches in electrical central over HTTP XML integration via Node-Red. (Nordic-systems) background I built my house 7 years ago. I chose an s…

---

## [How can I raise error at 'oneditsave' when my credential is empty? (show red triangle sign)](https://discourse.nodered.org/t/how-can-i-raise-error-at-oneditsave-when-my-credential-is-empty-show-red-triangle-sign/55397)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 12\
**Last updated:** [22 December 2021 12:35 UTC](https://discourse.nodered.org/t/how-can-i-raise-error-at-oneditsave-when-my-credential-is-empty-show-red-triangle-sign/55397 "2021-12-22T12:35:16Z")

</div>

Hi, I have some problem about 'credentials' validation. At first, I add credential in my custom node for keep my secret token. I added 'require' and 'validate' properties. See below. credentials: { token: …

---

## [Does an equivalent node exist / what should I call it](https://discourse.nodered.org/t/does-an-equivalent-node-exist-what-should-i-call-it/55459)

<div class="topic-metadata">

**Author:** [@Roaders](https://discourse.nodered.org/u/Roaders)\
**Replies:** 21\
**Last updated:** [21 December 2021 10:11 UTC](https://discourse.nodered.org/t/does-an-equivalent-node-exist-what-should-i-call-it/55459 "2021-12-21T10:11:59Z")

</div>

Hi All I am looking for a node that has an input node and an output node and caches any objects recieved by the input node. The output node would emit these objects (keyed on an object property) each time a new value w…

---

## [Object.assign() throws error!](https://discourse.nodered.org/t/object-assign-throws-error/55378)

<div class="topic-metadata">

**Author:** [@Roaders](https://discourse.nodered.org/u/Roaders)\
**Replies:** 17\
**Last updated:** [20 December 2021 12:40 UTC](https://discourse.nodered.org/t/object-assign-throws-error/55378 "2021-12-20T12:40:11Z")

</div>

Hi All I'm creating my first node in a while and I am using Object.assign() to set default values on a config object. For some reason this throws an error: 18 Dec 08:05:37 - \[error\] TypeError: Cannot read property 'han…

---

## [Apply transformation on nested object fields (based on dot notation)](https://discourse.nodered.org/t/apply-transformation-on-nested-object-fields-based-on-dot-notation/53906)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 9\
**Last updated:** [20 December 2021 06:17 UTC](https://discourse.nodered.org/t/apply-transformation-on-nested-object-fields-based-on-dot-notation/53906 "2021-12-20T06:17:42Z")

</div>

Hi folks, I am searching for a way to transform easily nested object properties, for one of my new nodes. For example the input message of my node could be like this: { "payload": \[ { "someProperty": "A",…

---

## [How to set Node RED editor at runtime?](https://discourse.nodered.org/t/how-to-set-node-red-editor-at-runtime/55287)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 6\
**Last updated:** [17 December 2021 15:50 UTC](https://discourse.nodered.org/t/how-to-set-node-red-editor-at-runtime/55287 "2021-12-17T15:50:05Z")

</div>

Hi all, How to set Node RED editor at runtime? At first I created custom Node. Then I use Node Red editor for "MyText" input value. Then I use validate "MyText" by using function. If validation is invalid, I want to s…

---

## [Possible way to access router api?](https://discourse.nodered.org/t/possible-way-to-access-router-api/55148)

<div class="topic-metadata">

**Author:** [@alpha815](https://discourse.nodered.org/u/alpha815)\
**Replies:** 25\
**Last updated:** [14 December 2021 17:29 UTC](https://discourse.nodered.org/t/possible-way-to-access-router-api/55148 "2021-12-14T17:29:52Z")

</div>

Hi there, hope you guys are doing fine. I am trying to access my LTE modem from node-red, I used the HTTP request node with the basic authentication method but in return, I got an error 125002 which means wrong session …

---

## [Dynamically set required property](https://discourse.nodered.org/t/dynamically-set-required-property/55127)

<div class="topic-metadata">

**Author:** [@danube](https://discourse.nodered.org/u/danube)\
**Replies:** 4\
**Last updated:** [14 December 2021 15:31 UTC](https://discourse.nodered.org/t/dynamically-set-required-property/55127 "2021-12-14T15:31:56Z")

</div>

/me again, probably with another simple question. The node I'm designing has a checkbox ("autoActive") and a configuration field ("configAutomatic"). No science. defaults: { name: {}, autoActive: {}, config…

---

## [How to duplicate flows with different device ID](https://discourse.nodered.org/t/how-to-duplicate-flows-with-different-device-id/55166)

<div class="topic-metadata">

**Author:** [@Shiny](https://discourse.nodered.org/u/Shiny)\
**Replies:** 0\
**Last updated:** [14 December 2021 11:50 UTC](https://discourse.nodered.org/t/how-to-duplicate-flows-with-different-device-id/55166 "2021-12-14T11:50:21Z")

</div>

I'm using /flow API to import a flow with few nodes. I'm looping this API in for loop by which I'm trying to duplicate the flow with few different parameters. But I'm always getting error as {"code":"unexpected\_error","…

---

## [\[ANNOUNCE\] node-red-contrib-inspector: beta](https://discourse.nodered.org/t/announce-node-red-contrib-inspector-beta/54855)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [12 December 2021 10:32 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-inspector-beta/54855 "2021-12-12T10:32:32Z")

</div>

Hi folks, Oh my god... Doing Node-RED developments already a couple of years, so I always need to start my Node-RED via NodeJs in debug mode. Which allows me to connect to NodeJs via a debugger (e.g. Chrome Developer …

---

## [Inserting msg.payload into python script (using pythonshell) from .JS file of custom node to process and get its output](https://discourse.nodered.org/t/inserting-msg-payload-into-python-script-using-pythonshell-from-js-file-of-custom-node-to-process-and-get-its-output/55057)

<div class="topic-metadata">

**Author:** [@Monarch](https://discourse.nodered.org/u/Monarch)\
**Replies:** 0\
**Last updated:** [11 December 2021 18:58 UTC](https://discourse.nodered.org/t/inserting-msg-payload-into-python-script-using-pythonshell-from-js-file-of-custom-node-to-process-and-get-its-output/55057 "2021-12-11T18:58:20Z")

</div>

I have made a custom python node , i want to pass msg.payload from my ' java script ' to the 'python script' using (pythonshell) and get back the processed value and pass them onto the next node as input...(Note: I do…

---

## [Camera motion activated](https://discourse.nodered.org/t/camera-motion-activated/54999)

<div class="topic-metadata">

**Author:** [@steve4063](https://discourse.nodered.org/u/steve4063)\
**Replies:** 0\
**Last updated:** [10 December 2021 11:04 UTC](https://discourse.nodered.org/t/camera-motion-activated/54999 "2021-12-10T11:04:22Z")

</div>

i have HA with noide-red installed. i have a few nest cameras set up what i want it when a camera detectrs motion it shows on my google hub foir a short time until no motion is dected. i am completely new to node-red a…

---

## [Using Monaco editor - monaco branch now in fork (PR#2971)](https://discourse.nodered.org/t/using-monaco-editor-monaco-branch-now-in-fork-pr-2971/26561)

<div class="topic-metadata">

**Author:** [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Replies:** 151\
**Last updated:** [3 December 2021 20:40 UTC](https://discourse.nodered.org/t/using-monaco-editor-monaco-branch-now-in-fork-pr-2971/26561 "2021-12-03T20:40:13Z")

</div>

UPDATE: 1-May-2021 - use monaco2 branch git clone GitHub - Steve-Mcl/node-red: Low-code programming for event-driven applications cd node-red git checkout monaco use monaco2 branch git checkout monaco2 npm install npm …

---

## [Array of configuration nodes](https://discourse.nodered.org/t/array-of-configuration-nodes/54683)

<div class="topic-metadata">

**Author:** [@cloud-rocket](https://discourse.nodered.org/u/cloud-rocket)\
**Replies:** 0\
**Last updated:** [3 December 2021 17:53 UTC](https://discourse.nodered.org/t/array-of-configuration-nodes/54683 "2021-12-03T17:53:40Z")

</div>

What would be the best technique to create a UI Node which will use multiple (dynamic amount of) configuration (hidden) nodes inside. I know it's not a standard requirement, but I can't think of any other idea of how to…

---

## [Communicate between nodes at runtime](https://discourse.nodered.org/t/communicate-between-nodes-at-runtime/54663)

<div class="topic-metadata">

**Author:** [@midhun](https://discourse.nodered.org/u/midhun)\
**Replies:** 0\
**Last updated:** [3 December 2021 10:16 UTC](https://discourse.nodered.org/t/communicate-between-nodes-at-runtime/54663 "2021-12-03T10:16:35Z")

</div>

Hi, I have a config node which collects some data from child nodes in a flow for using it inside a particular function. Currently each node is inspected from the config node at start of flow. Now I need to replace the e…

---

## [Developing external connectivity nodes](https://discourse.nodered.org/t/developing-external-connectivity-nodes/54590)

<div class="topic-metadata">

**Author:** [@cloud-rocket](https://discourse.nodered.org/u/cloud-rocket)\
**Replies:** 3\
**Last updated:** [1 December 2021 18:01 UTC](https://discourse.nodered.org/t/developing-external-connectivity-nodes/54590 "2021-12-01T18:01:31Z")

</div>

Hi, I am developing custom connectivity nodes (database, AMQP and etc.). I am still struggling to understand what should be the best approach to connections reuse. All of the packages I looked into are using "config" n…

---

## [Iterate over config-nodes](https://discourse.nodered.org/t/iterate-over-config-nodes/54554)

<div class="topic-metadata">

**Author:** [@Dunken](https://discourse.nodered.org/u/Dunken)\
**Replies:** 1\
**Last updated:** [1 December 2021 09:31 UTC](https://discourse.nodered.org/t/iterate-over-config-nodes/54554 "2021-12-01T09:31:45Z")

</div>

Does Node-RED provide an API to iterate over the instances of my config-node on all flows in the backend? Any way how to achieve this?

---

## [Can a custom node .html file use values from settings.js?](https://discourse.nodered.org/t/can-a-custom-node-html-file-use-values-from-settings-js/54468)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 4\
**Last updated:** [30 November 2021 19:37 UTC](https://discourse.nodered.org/t/can-a-custom-node-html-file-use-values-from-settings-js/54468 "2021-11-30T19:37:18Z")

</div>

I would like to use the value of nodeMessageBufferMaxLength defined in settings.js in the edit dialog of a custom node. It is available as RED.settings.nodeMessageBufferMaxLength in the .js file, but I don't seem to be a…

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

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