# Developing Nodes

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

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

**Page:** 5

---

## [Changing the icon based on an attribute value](https://discourse.nodered.org/t/changing-the-icon-based-on-an-attribute-value/93053)

<div class="topic-metadata">

**Author:** [@DrT7007](https://discourse.nodered.org/u/DrT7007)\
**Replies:** 3\
**Last updated:** [11 November 2024 13:47 UTC](https://discourse.nodered.org/t/changing-the-icon-based-on-an-attribute-value/93053 "2024-11-11T13:47:33Z")

</div>

+++++++++++++++++ Node-RED v4.0.5 Node.js v18.20.4 +++++++++++++++++ I want to change the node's icon, depending on the TYPE attribute. \<script type="text/javascript"\> RED.nodes.registerType('ussd-menu', { …

---

## [Star rating @ flows.nodered.org - how useful is it?](https://discourse.nodered.org/t/star-rating-flows-nodered-org-how-useful-is-it/93010)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 20\
**Last updated:** [10 November 2024 17:15 UTC](https://discourse.nodered.org/t/star-rating-flows-nodered-org-how-useful-is-it/93010 "2024-11-10T17:15:32Z")

</div>

Hi There, I recently noticed that one my packages has a 4.3 rating from four people: And it made me think: why did someone down vote the package? I have no idea. What did they not like about the package? I have no i…

---

## [Write a variable from the vue file in the msg-variable](https://discourse.nodered.org/t/write-a-variable-from-the-vue-file-in-the-msg-variable/92967)

<div class="topic-metadata">

**Author:** [@greenDog](https://discourse.nodered.org/u/greenDog)\
**Replies:** 14\
**Last updated:** [8 November 2024 09:25 UTC](https://discourse.nodered.org/t/write-a-variable-from-the-vue-file-in-the-msg-variable/92967 "2024-11-08T09:25:11Z")

</div>

I have defined an array variable in the data() function in my vue file in 'export default()' and assigned a value in the processMsg function. I would now like to assign this to the msg variable in the js file so that I c…

---

## [Node library conflict variables on html file](https://discourse.nodered.org/t/node-library-conflict-variables-on-html-file/92964)

<div class="topic-metadata">

**Author:** [@APXc](https://discourse.nodered.org/u/APXc)\
**Replies:** 4\
**Last updated:** [7 November 2024 12:14 UTC](https://discourse.nodered.org/t/node-library-conflict-variables-on-html-file/92964 "2024-11-07T12:14:59Z")

</div>

Hi! I reelected the following problem in Node-Red 3.0.2 Node v18, I developed three similar libraries (circumstances made it necessary for them to be three libraries) we detected in these libraries upon installation o…

---

## [How to set up VSCode for developing Node-RED Nodes?](https://discourse.nodered.org/t/how-to-set-up-vscode-for-developing-node-red-nodes/92853)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 9\
**Last updated:** [3 November 2024 22:17 UTC](https://discourse.nodered.org/t/how-to-set-up-vscode-for-developing-node-red-nodes/92853 "2024-11-03T22:17:42Z")

</div>

For GitHub stuff, it is MUCH more comfortable doing edits in VSCode where you can also add a spell checker (try the "Code Spell Checker extension). :slight\_smile: As VSCode understands Git (though the GitLens extension …

---

## [Grpc-js extra logging](https://discourse.nodered.org/t/grpc-js-extra-logging/92834)

<div class="topic-metadata">

**Author:** [@PversusNP](https://discourse.nodered.org/u/PversusNP)\
**Replies:** 0\
**Last updated:** [31 October 2024 15:45 UTC](https://discourse.nodered.org/t/grpc-js-extra-logging/92834 "2024-10-31T15:45:08Z")

</div>

grpc-node/TROUBLESHOOTING.md at master · grpc/grpc-node · GitHub says extra logging and traces are available on stderr setting GRPC\_VERBOSITY and GRPC\_TRACE environment variable. I set them in my node Node.js module, bu…

---

## [When using vue to edit custom nodes, the rendered DOM cannot be saved normally](https://discourse.nodered.org/t/when-using-vue-to-edit-custom-nodes-the-rendered-dom-cannot-be-saved-normally/92826)

<div class="topic-metadata">

**Author:** [@lyliang1216](https://discourse.nodered.org/u/lyliang1216)\
**Replies:** 7\
**Last updated:** [31 October 2024 14:31 UTC](https://discourse.nodered.org/t/when-using-vue-to-edit-custom-nodes-the-rendered-dom-cannot-be-saved-normally/92826 "2024-10-31T14:31:43Z")

</div>

I would like to ask, I used vue to write the node panel configuration, why after saving, when I click the node again to open the panel, the modified content is not echoed. However, I used native html to write the input t…

---

## [Reacting to UI configuration node changes - solved](https://discourse.nodered.org/t/reacting-to-ui-configuration-node-changes-solved/92784)

<div class="topic-metadata">

**Author:** [@Vahdettin](https://discourse.nodered.org/u/Vahdettin)\
**Replies:** 0\
**Last updated:** [30 October 2024 02:13 UTC](https://discourse.nodered.org/t/reacting-to-ui-configuration-node-changes-solved/92784 "2024-10-30T02:13:05Z")

</div>

Hi all, I finally got around to fixing an issue that I posted about some time ago. Reacting to central config node change The issue was when a "regular" node from a collection is opened up and then the common config n…

---

## [Pi Keyboard in case of two Keyboards are mounted on Raspberry Pi](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705)

<div class="topic-metadata">

**Author:** [@averino](https://discourse.nodered.org/u/averino)\
**Replies:** 3\
**Last updated:** [27 October 2024 09:17 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705 "2024-10-27T09:17:02Z")

</div>

Hello, I'm Stuck ! My flow manage the input from two Keyboards (actually one is a real keyboard, the second one is a presenter that emulates a set of keyboard keys such ad "page up", "page down", etc). My flow work per…

---

## [Node status not working what an i missing](https://discourse.nodered.org/t/node-status-not-working-what-an-i-missing/92668)

<div class="topic-metadata">

**Author:** [@sander16091992](https://discourse.nodered.org/u/sander16091992)\
**Replies:** 1\
**Last updated:** [25 October 2024 13:47 UTC](https://discourse.nodered.org/t/node-status-not-working-what-an-i-missing/92668 "2024-10-25T13:47:59Z")

</div>

i am creating a custom node that talks to a api i want to add some status to see what is happening but it wont work any help please module.exports = function(RED) { function CabinetAction(config) { RED.nodes…

---

## [How to realize encrypt rsa and decryped hex?](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628)

<div class="topic-metadata">

**Author:** [@rpa](https://discourse.nodered.org/u/rpa)\
**Replies:** 2\
**Last updated:** [25 October 2024 06:15 UTC](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628 "2024-10-25T06:15:33Z")

</div>

The information from the nitifire: The Challenge-String is a random generated secret string that is encrypted via RSA using the pre-installed Public Key and then hex-encoded for transmission. To Solve the Challenge, the …

---

## [Limiting config node to one instance](https://discourse.nodered.org/t/limiting-config-node-to-one-instance/92244)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 14\
**Last updated:** [18 October 2024 19:59 UTC](https://discourse.nodered.org/t/limiting-config-node-to-one-instance/92244 "2024-10-18T19:59:39Z")

</div>

is there a method to ensure that the editor is limited to only one config node of a type? The specific use case sets up a listener on a specific port so creating more than one instance of the config node makes little se…

---

## [🎉 nrg-cli v2 released](https://discourse.nodered.org/t/nrg-cli-v2-released/92333)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 0\
**Last updated:** [12 October 2024 00:16 UTC](https://discourse.nodered.org/t/nrg-cli-v2-released/92333 "2024-10-12T00:16:10Z")

</div>

BREAKING CHANGES all @allanoricil/node-red-node imports must be renamed to @allanoricil/nrg-nodes BEFORE import { Node } from "@allanoricil/node-red-node"; export default class MyNode extends Node { constructor(co…

---

## [Message tracing for beginners](https://discourse.nodered.org/t/message-tracing-for-beginners/92287)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 10\
**Last updated:** [11 October 2024 12:27 UTC](https://discourse.nodered.org/t/message-tracing-for-beginners/92287 "2024-10-11T12:27:52Z")

</div>

Hi there, I want to trace messages through a flow as an aid for beginners to understand how messages are passed through NR flows. I have already done this on the headless in-browser only NR but now I want to build a plu…

---

## [Using Node Red to configure and monitor Asterisk](https://discourse.nodered.org/t/using-node-red-to-configure-and-monitor-asterisk/91253)

<div class="topic-metadata">

**Author:** [@davidevans](https://discourse.nodered.org/u/davidevans)\
**Replies:** 6\
**Last updated:** [2 October 2024 16:06 UTC](https://discourse.nodered.org/t/using-node-red-to-configure-and-monitor-asterisk/91253 "2024-10-02T16:06:22Z")

</div>

I have been thinking about whether Node Red could be used to configure an Asterisk server. Asterisk is a mature and fully-featured PBX software that's open source. However, configuring it is notoriously complicated and t…

---

## [🎉 nrg-cli v1.2.4 released](https://discourse.nodered.org/t/nrg-cli-v1-2-4-released/92103)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 0\
**Last updated:** [1 October 2024 13:32 UTC](https://discourse.nodered.org/t/nrg-cli-v1-2-4-released/92103 "2024-10-01T13:32:46Z")

</div>

In this patch, all vulnerabilities were addressed. @allanoricil/nrg-cli @allanoricil/nrg-core

---

## [Assistance with Creating a Custom Node for Real-Time Data Processing](https://discourse.nodered.org/t/assistance-with-creating-a-custom-node-for-real-time-data-processing/92055)

<div class="topic-metadata">

**Author:** [@salac64365](https://discourse.nodered.org/u/salac64365)\
**Replies:** 2\
**Last updated:** [29 September 2024 21:12 UTC](https://discourse.nodered.org/t/assistance-with-creating-a-custom-node-for-real-time-data-processing/92055 "2024-09-29T21:12:31Z")

</div>

Hello Everyone :hugs:, I’ve been working on a project where I’m using Node-RED to process real-time data streams from multiple IoT sensors. The flow involves receiving data, performing some transformations, and then pus…

---

## [🎉 nrg-cli v1.2.1 released](https://discourse.nodered.org/t/nrg-cli-v1-2-1-released/91847)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 1\
**Last updated:** [29 September 2024 16:40 UTC](https://discourse.nodered.org/t/nrg-cli-v1-2-1-released/91847 "2024-09-29T16:40:27Z")

</div>

I've just released @allanoricil/nrg-cli@v1.2.1 In this new version, the following commands were added This new version also enabled the cli to be used globally. Install it now using npm install -g @allanoricil…

---

## [clearInterval() not working](https://discourse.nodered.org/t/clearinterval-not-working/91169)

<div class="topic-metadata">

**Author:** [@wangenkuesse](https://discourse.nodered.org/u/wangenkuesse)\
**Replies:** 14\
**Last updated:** [22 September 2024 08:54 UTC](https://discourse.nodered.org/t/clearinterval-not-working/91169 "2024-09-22T08:54:33Z")

</div>

Hello everyone... I am working on a project with a countdown/timer. I call a function every second via setInterval(). When I edit the node in the editor an deploy, cleaInterval() is not stopping the function. The functi…

---

## [The nrg cli was released!](https://discourse.nodered.org/t/the-nrg-cli-was-released/90872)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 8\
**Last updated:** [21 September 2024 22:54 UTC](https://discourse.nodered.org/t/the-nrg-cli-was-released/90872 "2024-09-21T22:54:37Z")

</div>

I would like to share with you that I released the first iteration of the nrg cli. https://www.npmjs.com/package/@allanoricil/nrg-cli This is a template you can use to test the cli, and later use to create your own no…

---

## [Debugging "Missing" nodes](https://discourse.nodered.org/t/debugging-missing-nodes/91161)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 9\
**Last updated:** [21 September 2024 15:36 UTC](https://discourse.nodered.org/t/debugging-missing-nodes/91161 "2024-09-21T15:36:08Z")

</div>

I've been rewriting a large set of custom JS nodes into typescript to improve maintainability with some dependencies. In doing so I'm faced with a situation where the nodes load up OK on a blank flow and can be dropped …

---

## [How to Secure API Endpoints with RED.auth.needsPermission('flows.write') in HomeAssistant Node-RED?](https://discourse.nodered.org/t/how-to-secure-api-endpoints-with-red-auth-needspermission-flows-write-in-homeassistant-node-red/91138)

<div class="topic-metadata">

**Author:** [@fdecourt](https://discourse.nodered.org/u/fdecourt)\
**Replies:** 2\
**Last updated:** [20 September 2024 12:07 UTC](https://discourse.nodered.org/t/how-to-secure-api-endpoints-with-red-auth-needspermission-flows-write-in-homeassistant-node-red/91138 "2024-09-20T12:07:35Z")

</div>

Hello everyone, I'm currently working on a Node-RED custom node that involves interacting with Google Calendar's API. In standalone Node-RED installations, I use RED.auth.needsPermission('flows.write') to secure the API…

---

## [A server-side getProperty for dashboard D2](https://discourse.nodered.org/t/a-server-side-getproperty-for-dashboard-d2/91091)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [20 September 2024 06:11 UTC](https://discourse.nodered.org/t/a-server-side-getproperty-for-dashboard-d2/91091 "2024-09-20T06:11:59Z")

</div>

Hi folks, Some months ago the getProperty function has been introduced in dashboard D2. That allows ui node developers to get easily the value of a property. That property can have its value from the config screen, bu…

---

## [New in developing Nodes](https://discourse.nodered.org/t/new-in-developing-nodes/91045)

<div class="topic-metadata">

**Author:** [@fdecourt](https://discourse.nodered.org/u/fdecourt)\
**Replies:** 8\
**Last updated:** [19 September 2024 19:11 UTC](https://discourse.nodered.org/t/new-in-developing-nodes/91045 "2024-09-19T19:11:19Z")

</div>

Hi the community, I am trying to develop my own nodes (and I am not a dev) when I find exactly what I want in the repository. The first one I created is one that allow me toretreive all the events between 2 dates / tim…

---

## [The catalogue update seems to be stuck](https://discourse.nodered.org/t/the-catalogue-update-seems-to-be-stuck/91088)

<div class="topic-metadata">

**Author:** [@RvG](https://discourse.nodered.org/u/RvG)\
**Replies:** 2\
**Last updated:** [19 September 2024 07:25 UTC](https://discourse.nodered.org/t/the-catalogue-update-seems-to-be-stuck/91088 "2024-09-19T07:25:49Z")

</div>

The https://catalogue.nodered.org/catalogue.json nodes catalogue hasn't been updated for half a day. Latest one is 2024-09-18T11:07:25.956Z. Not sure what update speed should be expected, but it seems to be stuck now. H…

---

## [Upgrading node Properties after module updated](https://discourse.nodered.org/t/upgrading-node-properties-after-module-updated/90921)

<div class="topic-metadata">

**Author:** [@AGhorab](https://discourse.nodered.org/u/AGhorab)\
**Replies:** 4\
**Last updated:** [16 September 2024 15:39 UTC](https://discourse.nodered.org/t/upgrading-node-properties-after-module-updated/90921 "2024-09-16T15:39:48Z")

</div>

During my node development, after a breaking change version is released a new properties are either being added or removed. On the Node side after upgrade i can simply modify the properties i have in the memory to the n…

---

## [RED.util.encodeObject & TypeError: Converting circular structure to JSON](https://discourse.nodered.org/t/red-util-encodeobject-typeerror-converting-circular-structure-to-json/90978)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 4\
**Last updated:** [14 September 2024 19:42 UTC](https://discourse.nodered.org/t/red-util-encodeobject-typeerror-converting-circular-structure-to-json/90978 "2024-09-14T19:42:29Z")

</div>

Hi There, I just experienced a strange situation whereby my websocket connection to Node-RED dies and I get no more debug messages but Node-RED continues to work. Similar to this question. How did I manage to do this? …

---

## [Type error: RED.comms.subscribe](https://discourse.nodered.org/t/type-error-red-comms-subscribe/90957)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 6\
**Last updated:** [14 September 2024 07:20 UTC](https://discourse.nodered.org/t/type-error-red-comms-subscribe/90957 "2024-09-14T07:20:21Z")

</div>

Hello I am getting an error that Property 'subscribe' does not exist on type 'NodeAPIComms'. when trying to subscribe to notifications. RED.comms.subscribe("notification/#", (topic, payload) =\> { looking at the typ…

---

## [Ui\_mp4frag for DB2 - how to continue](https://discourse.nodered.org/t/ui-mp4frag-for-db2-how-to-continue/90241)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 6\
**Last updated:** [13 September 2024 08:22 UTC](https://discourse.nodered.org/t/ui-mp4frag-for-db2-how-to-continue/90241 "2024-09-13T08:22:31Z")

</div>

Hi folks, I have been implementing some pull requests for dashboard D2, but now I finally would like to continue migrating some old ui nodes. I have some questions about another discussion: To be able to migrate my …

---

## [New structure for building node-red nodes](https://discourse.nodered.org/t/new-structure-for-building-node-red-nodes/90538)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 19\
**Last updated:** [11 September 2024 21:51 UTC](https://discourse.nodered.org/t/new-structure-for-building-node-red-nodes/90538 "2024-09-11T21:51:55Z")

</div>

I've been trying to improve my developer experience while creating nodes for node-red. Could you guys give me some feedback and help me to improve it? Features: clear separation of client and server pieces of a node…

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

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