# Developing Nodes

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

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

**Page:** 6

---

## [Documentation for methods used by the switch node (basing a custom node on switch)](https://discourse.nodered.org/t/documentation-for-methods-used-by-the-switch-node-basing-a-custom-node-on-switch/90741)

<div class="topic-metadata">

**Author:** [@dsteinfeld](https://discourse.nodered.org/u/dsteinfeld)\
**Replies:** 9\
**Last updated:** [10 September 2024 11:13 UTC](https://discourse.nodered.org/t/documentation-for-methods-used-by-the-switch-node-basing-a-custom-node-on-switch/90741 "2024-09-10T11:13:26Z")

</div>

I'm a Node-RED (v4.0.0) novice trying to develop a custom node that has elements of the switch and function nodes. In trying to understand the HTML of the switch node to modify the editor panel, I've come across a coupl…

---

## [Create node that runs a docker while node-red is also running in docker](https://discourse.nodered.org/t/create-node-that-runs-a-docker-while-node-red-is-also-running-in-docker/90659)

<div class="topic-metadata">

**Author:** [@seb](https://discourse.nodered.org/u/seb)\
**Replies:** 9\
**Last updated:** [7 September 2024 17:03 UTC](https://discourse.nodered.org/t/create-node-that-runs-a-docker-while-node-red-is-also-running-in-docker/90659 "2024-09-07T17:03:26Z")

</div>

Hello, I’m running Node-RED in Docker (and it will be running in Kubernetes soon). I’d like to add custom nodes that are Docker containers themselves. For example, one node will be a local LLM, and another will have som…

---

## [Build nodes using modern javascript with the nrg cli!](https://discourse.nodered.org/t/build-nodes-using-modern-javascript-with-the-nrg-cli/90720)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 1\
**Last updated:** [5 September 2024 03:51 UTC](https://discourse.nodered.org/t/build-nodes-using-modern-javascript-with-the-nrg-cli/90720 "2024-09-05T03:51:40Z")

</div>

You can now try nrg in this project template! I would like you to try it out and give feedback! Is there a node you can't built with it? Besides enabling you to write nodes using modern js and in a modular way, it a…

---

## [Output from custom node](https://discourse.nodered.org/t/output-from-custom-node/90646)

<div class="topic-metadata">

**Author:** [@mr-jaffery](https://discourse.nodered.org/u/mr-jaffery)\
**Replies:** 4\
**Last updated:** [3 September 2024 10:28 UTC](https://discourse.nodered.org/t/output-from-custom-node/90646 "2024-09-03T10:28:49Z")

</div>

I'm sending data from custom node output. In local setup it works perfectly fine but when i deploy this on docker it does not output anything. What could be the reason? for reference the .js file code module.exports = …

---

## [Created subflownode not in in wanted category and color](https://discourse.nodered.org/t/created-subflownode-not-in-in-wanted-category-and-color/90638)

<div class="topic-metadata">

**Author:** [@sander16091992](https://discourse.nodered.org/u/sander16091992)\
**Replies:** 0\
**Last updated:** [2 September 2024 10:53 UTC](https://discourse.nodered.org/t/created-subflownode-not-in-in-wanted-category-and-color/90638 "2024-09-02T10:53:21Z")

</div>

I have packed a subflow into a package after installing the package the node does not go to the correct category below the packed json \[ { "id": "bde86d20a9dcf656", "type": "subflow", "name"…

---

## [Some help appreciated for new ui node](https://discourse.nodered.org/t/some-help-appreciated-for-new-ui-node/90597)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 0\
**Last updated:** [1 September 2024 06:51 UTC](https://discourse.nodered.org/t/some-help-appreciated-for-new-ui-node/90597 "2024-09-01T06:51:09Z")

</div>

Hi folks, Last week I have been trying to develop a successor of the ui-mp4frag node for dashboard D2, which can be found here: It is a general video playing node, which also supports Http Live Streaming (HLS) of m3u…

---

## [Where is the doc page that tells the available events I can register in the server part of a node?](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 3\
**Last updated:** [1 September 2024 06:36 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588 "2024-09-01T06:36:54Z")

</div>

This is a continuation of Are there any more events than "input" and "close"? In the whole thread, there are many mentions saying "the doc is complete". However, there is no link to this exactly page where it says all p…

---

## [Encrypted credentials show in clear text in flows.json](https://discourse.nodered.org/t/encrypted-credentials-show-in-clear-text-in-flows-json/90525)

<div class="topic-metadata">

**Author:** [@omrid](https://discourse.nodered.org/u/omrid)\
**Replies:** 6\
**Last updated:** [30 August 2024 22:56 UTC](https://discourse.nodered.org/t/encrypted-credentials-show-in-clear-text-in-flows-json/90525 "2024-08-30T22:56:09Z")

</div>

In have set an encryption key in settings.js, and my credentials are being encrypted properly into flows\_cred.json. However, I can still see the password value in clear text in the flows.json file. Only after some time i…

---

## [How to change the name of a config field without breaking old flows](https://discourse.nodered.org/t/how-to-change-the-name-of-a-config-field-without-breaking-old-flows/90476)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 19\
**Last updated:** [29 August 2024 16:35 UTC](https://discourse.nodered.org/t/how-to-change-the-name-of-a-config-field-without-breaking-old-flows/90476 "2024-08-29T16:35:22Z")

</div>

In a contrib node I need to change the name of a field. Can anyone suggest how I go about doing that such that config from old nodes is updated to use the new field name automatically? It is ok if the user has to open …

---

## [Documentation for node-red internals](https://discourse.nodered.org/t/documentation-for-node-red-internals/90481)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 1\
**Last updated:** [27 August 2024 13:23 UTC](https://discourse.nodered.org/t/documentation-for-node-red-internals/90481 "2024-08-27T13:23:26Z")

</div>

Hello all I've come across a situation where RED.nodes.getNode(nodeID) is returning null for a nodeID that is known to be correct. I was looking for some documentation which might tell me more about the method and what…

---

## [How to Determine if a Node is Disabled in the Runtime?](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425)

<div class="topic-metadata">

**Author:** [@zachowj](https://discourse.nodered.org/u/zachowj)\
**Replies:** 2\
**Last updated:** [25 August 2024 14:07 UTC](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425 "2024-08-25T14:07:02Z")

</div>

I'm using RED.nodes.eachNode to inspect nodes at runtime, which returns the node definitions. However, I can't find a property or method to check if a node is disabled. Is there a way to access this information within th…

---

## [Tracking Memory Leak or Consumption](https://discourse.nodered.org/t/tracking-memory-leak-or-consumption/90403)

<div class="topic-metadata">

**Author:** [@JpEncausse](https://discourse.nodered.org/u/JpEncausse)\
**Replies:** 0\
**Last updated:** [24 August 2024 22:48 UTC](https://discourse.nodered.org/t/tracking-memory-leak-or-consumption/90403 "2024-08-24T22:48:15Z")

</div>

Hello, I'm working on a Framework (that will probably be opensource) to display a WebChat / LLM / ... I have 20 Nodes. In some test I have a Prompt that produce a Huge JSON. I mean by huge it can be more than the 4K to…

---

## [Custom node: comms between html and js files](https://discourse.nodered.org/t/custom-node-comms-between-html-and-js-files/90319)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 2\
**Last updated:** [22 August 2024 10:32 UTC](https://discourse.nodered.org/t/custom-node-comms-between-html-and-js-files/90319 "2024-08-22T10:32:54Z")

</div>

is the config object shared bi-directionally between the runtime js and the associated html file? for example a runtime script needs to instantiate an object and fire up a server and return a qr code to the editor. can…

---

## [Developing custom node in visual studio code](https://discourse.nodered.org/t/developing-custom-node-in-visual-studio-code/90232)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 5\
**Last updated:** [17 August 2024 13:50 UTC](https://discourse.nodered.org/t/developing-custom-node-in-visual-studio-code/90232 "2024-08-17T13:50:32Z")

</div>

Hello all I'd like some assistance with getting an editor set up so that I can use auto-completion etc in visual studio code. I'm using mac OS. I have my dev folder in home (~/nodeDev/matter). I've installed the deve…

---

## [Call C++ from Node-Red (Node.js)](https://discourse.nodered.org/t/call-c-from-node-red-node-js/90217)

<div class="topic-metadata">

**Author:** [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Replies:** 6\
**Last updated:** [16 August 2024 17:14 UTC](https://discourse.nodered.org/t/call-c-from-node-red-node-js/90217 "2024-08-16T17:14:51Z")

</div>

Hello, Node-Red and Node.js are essentially written in C++. Therefore, there is a C++ interface to Node.js. Most of my nodes are written with it. I wanted to share a document with you on how it works. Have fun. cal…

---

## [Registering to Hook "viewRedrawNode" from view.js](https://discourse.nodered.org/t/registering-to-hook-viewredrawnode-from-view-js/90191)

<div class="topic-metadata">

**Author:** [@GuyZou](https://discourse.nodered.org/u/GuyZou)\
**Replies:** 6\
**Last updated:** [15 August 2024 20:41 UTC](https://discourse.nodered.org/t/registering-to-hook-viewredrawnode-from-view-js/90191 "2024-08-15T20:41:20Z")

</div>

I'm writing a component ( displaymsg) that displays information taken from message sent to it without requiring a complete dashboard. I use that because I would like not to have to create a full dashboard as the hardwar…

---

## [Connection to database via node mysql-r2 does not work. But connection with node mysql does](https://discourse.nodered.org/t/connection-to-database-via-node-mysql-r2-does-not-work-but-connection-with-node-mysql-does/90130)

<div class="topic-metadata">

**Author:** [@chuckf201](https://discourse.nodered.org/u/chuckf201)\
**Replies:** 3\
**Last updated:** [12 August 2024 17:05 UTC](https://discourse.nodered.org/t/connection-to-database-via-node-mysql-r2-does-not-work-but-connection-with-node-mysql-does/90130 "2024-08-12T17:05:49Z")

</div>

Blockquote \[ { "id": "595824d334f50ad0", "type": "tab", "label": "db test", "disabled": false, "info": "", "env": }, { "id": "193246244b0ceb0a", "type": "function", "z": "595824d334f50ad0", "name": "testi…

---

## [Updating node config on deploy](https://discourse.nodered.org/t/updating-node-config-on-deploy/90087)

<div class="topic-metadata">

**Author:** [@TacticalNudge](https://discourse.nodered.org/u/TacticalNudge)\
**Replies:** 6\
**Last updated:** [10 August 2024 11:59 UTC](https://discourse.nodered.org/t/updating-node-config-on-deploy/90087 "2024-08-10T11:59:44Z")

</div>

Hi Everyone. I am having a little difficulty with a scenario where we're interfacing with a third party system. The first time we deploy our node it does a considerable amount of setup and configuration that we have to …

---

## [Node-RED lints when developing nodes](https://discourse.nodered.org/t/node-red-lints-when-developing-nodes/89946)

<div class="topic-metadata">

**Author:** [@SpieringsAE](https://discourse.nodered.org/u/SpieringsAE)\
**Replies:** 15\
**Last updated:** [2 August 2024 12:26 UTC](https://discourse.nodered.org/t/node-red-lints-when-developing-nodes/89946 "2024-08-02T12:26:34Z")

</div>

Is there a way to get proper linting when developing nodes? I have no type information about the 'RED' variable that is used with the Node-RED functions. Is there some dev dependency I can add? Or something else I need…

---

## [Standardising authorised user details across dashboards and uibuilder](https://discourse.nodered.org/t/standardising-authorised-user-details-across-dashboards-and-uibuilder/89798)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 2\
**Last updated:** [26 July 2024 18:53 UTC](https://discourse.nodered.org/t/standardising-authorised-user-details-across-dashboards-and-uibuilder/89798 "2024-07-26T18:53:56Z")

</div>

Hi all, there has been some work done by FlowFuse @joepavitt and a couple of other contribotors @fullmetal-fred and @kitori on standardising authorised client information for Dashboard 2. Having seen this, I thought i…

---

## [Custom Node Dynamic Behaviour](https://discourse.nodered.org/t/custom-node-dynamic-behaviour/89753)

<div class="topic-metadata">

**Author:** [@mr-jaffery](https://discourse.nodered.org/u/mr-jaffery)\
**Replies:** 2\
**Last updated:** [25 July 2024 13:00 UTC](https://discourse.nodered.org/t/custom-node-dynamic-behaviour/89753 "2024-07-25T13:00:44Z")

</div>

Hi all, I am creating a custom nod-red node. In which there is a select tag. I want its options to populate and change on runtime based on the input this node receives from any other node. How can i do this?

---

## ["Return" path in a node](https://discourse.nodered.org/t/return-path-in-a-node/89630)

<div class="topic-metadata">

**Author:** [@triblondon](https://discourse.nodered.org/u/triblondon)\
**Replies:** 3\
**Last updated:** [22 July 2024 08:06 UTC](https://discourse.nodered.org/t/return-path-in-a-node/89630 "2024-07-22T08:06:05Z")

</div>

I'm trying to make a set of nodes for working with an HTTP proxy, allowing the proxy to be configured to perform various operations on requests that come through it all in a low-code way. My question is, can I have a no…

---

## [How to get the update prompt in the palette manager for privately published npm node](https://discourse.nodered.org/t/how-to-get-the-update-prompt-in-the-palette-manager-for-privately-published-npm-node/89515)

<div class="topic-metadata">

**Author:** [@IoTGreenbelt](https://discourse.nodered.org/u/IoTGreenbelt)\
**Replies:** 3\
**Last updated:** [19 July 2024 12:54 UTC](https://discourse.nodered.org/t/how-to-get-the-update-prompt-in-the-palette-manager-for-privately-published-npm-node/89515 "2024-07-19T12:54:58Z")

</div>

I have a privately published node that is updated correctly with the new version on npm, however I'm unable to update it via the palette manager 'update' button. I've gone through the publish instructions but still not …

---

## [Why searching only node\_modules?](https://discourse.nodered.org/t/why-searching-only-node-modules/89569)

<div class="topic-metadata">

**Author:** [@deostroll](https://discourse.nodered.org/u/deostroll)\
**Replies:** 0\
**Last updated:** [17 July 2024 11:12 UTC](https://discourse.nodered.org/t/why-searching-only-node-modules/89569 "2024-07-17T11:12:12Z")

</div>

Seeking comments from the team on node-red intended use/design. Version used: 4.0.2 Node-runtime - 20.14.0 & 18.x os: windows, linux Steps: Setup a new nodejs project and install node-red as dependency Author a cus…

---

## [Config node context and persistency after deployment](https://discourse.nodered.org/t/config-node-context-and-persistency-after-deployment/89354)

<div class="topic-metadata">

**Author:** [@Thomassorensen](https://discourse.nodered.org/u/Thomassorensen)\
**Replies:** 5\
**Last updated:** [13 July 2024 19:45 UTC](https://discourse.nodered.org/t/config-node-context-and-persistency-after-deployment/89354 "2024-07-13T19:45:02Z")

</div>

I’m seeing some strange behaviour when using context on a config node.. If I set a value in node context from custom configuration node using: this.context().set("s", "Hello") Then I can read the value back using this…

---

## [Internationalization in package with multipe custom nodes](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369)

<div class="topic-metadata">

**Author:** [@igoodwin](https://discourse.nodered.org/u/igoodwin)\
**Replies:** 2\
**Last updated:** [9 July 2024 11:33 UTC](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369 "2024-07-09T11:33:36Z")

</div>

I've created a package with custom nodes and am trying to add internationalization. Published package structure is: root/ ├── locales/ │ ├── en-US │ │ ├── node-1.html │ │ ├── node-1.json │ │ ├── node-…

---

## [Use credentials from env from the subflow](https://discourse.nodered.org/t/use-credentials-from-env-from-the-subflow/89264)

<div class="topic-metadata">

**Author:** [@NetHans](https://discourse.nodered.org/u/NetHans)\
**Replies:** 1\
**Last updated:** [4 July 2024 12:34 UTC](https://discourse.nodered.org/t/use-credentials-from-env-from-the-subflow/89264 "2024-07-04T12:34:36Z")

</div>

Hello, credentials can now be specified in the environment variables of the subflows. How must my self-created node be structured so that these credentials can be taken from the ENV of the subflow? Is there any possibi…

---

## [Creating a never-ending listener and type error](https://discourse.nodered.org/t/creating-a-never-ending-listener-and-type-error/89172)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 15\
**Last updated:** [4 July 2024 10:58 UTC](https://discourse.nodered.org/t/creating-a-never-ending-listener-and-type-error/89172 "2024-07-04T10:58:29Z")

</div>

dear all i'm pondering what the right way is to create a node that listens (ideally async) for output from a python script that never ends (it is monitoring GPIO interrupts)? the code, as it stands, is below. This is …

---

## [Leer variables reales desde un plc m580 de schneider electric](https://discourse.nodered.org/t/leer-variables-reales-desde-un-plc-m580-de-schneider-electric/89111)

<div class="topic-metadata">

**Author:** [@deivisd](https://discourse.nodered.org/u/deivisd)\
**Replies:** 0\
**Last updated:** [30 June 2024 14:56 UTC](https://discourse.nodered.org/t/leer-variables-reales-desde-un-plc-m580-de-schneider-electric/89111 "2024-06-30T14:56:02Z")

</div>

Buenos días, estoy tratando de leer una variable REAL creada en un plc m580 de schneider con el módulo funtion pero no he podido, como puedo crear la función correcta he intentado con lagunas que he encontrado por intern…

---

## [Stop execution of a function node when calling it again](https://discourse.nodered.org/t/stop-execution-of-a-function-node-when-calling-it-again/88883)

<div class="topic-metadata">

**Author:** [@Arixto09](https://discourse.nodered.org/u/Arixto09)\
**Replies:** 3\
**Last updated:** [27 June 2024 19:04 UTC](https://discourse.nodered.org/t/stop-execution-of-a-function-node-when-calling-it-again/88883 "2024-06-27T19:04:16Z")

</div>

Hello, I am trying to create a custom node based on the function node, as a parameter two groups of initial RGBW and final RGBW color are passed, in addition to two values ​​(time and cycles). Its basic operation is tha…

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

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