# Developing Nodes

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

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

**Page:** 28

---

## [\[dev\] i2c openSync seems to work async way](https://discourse.nodered.org/t/dev-i2c-opensync-seems-to-work-async-way/51017)

<div class="topic-metadata">

**Author:** [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Replies:** 1\
**Last updated:** [17 September 2021 08:10 UTC](https://discourse.nodered.org/t/dev-i2c-opensync-seems-to-work-async-way/51017 "2021-09-17T08:10:59Z")

</div>

I have a big problem: the compoment I'm developing / fixing is almost finished, but the error handling does not work the proper way. I've opened a ticket at the i2c developer's fork, but I'm not sure if it's a compone…

---

## [Packaging nested subflows](https://discourse.nodered.org/t/packaging-nested-subflows/51101)

<div class="topic-metadata">

**Author:** [@guidone](https://discourse.nodered.org/u/guidone)\
**Replies:** 0\
**Last updated:** [16 September 2021 12:42 UTC](https://discourse.nodered.org/t/packaging-nested-subflows/51101 "2021-09-16T12:42:50Z")

</div>

I'm having troubles packaging nested subflows into the same npm package (packaging the nodes separately is not an option). I've created a proof of concept with three simple subflows: Subflow A thats uses Subflow B which…

---

## [Issue with dynamic Schedules in node-red-contrib-cron-plus](https://discourse.nodered.org/t/issue-with-dynamic-schedules-in-node-red-contrib-cron-plus/51031)

<div class="topic-metadata">

**Author:** [@MartinOHV](https://discourse.nodered.org/u/MartinOHV)\
**Replies:** 1\
**Last updated:** [14 September 2021 18:44 UTC](https://discourse.nodered.org/t/issue-with-dynamic-schedules-in-node-red-contrib-cron-plus/51031 "2021-09-14T18:44:04Z")

</div>

Hi, i have some issues with dynamic Schedules in Cron+... I use a File input to read my schedules from an Textfile /home/pi/schedules. The File contains this: Aussenbeleuchtung morgens an;0 0 7 \* \* \*;kmt004-3=on Aussen…

---

## [Get logged user information in custom node](https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796)

<div class="topic-metadata">

**Author:** [@chiche](https://discourse.nodered.org/u/chiche)\
**Replies:** 3\
**Last updated:** [10 September 2021 11:02 UTC](https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796 "2021-09-10T11:02:47Z")

</div>

How can I get the information of the logged user at myNode.js

---

## [Naming convention regarding custom nodes](https://discourse.nodered.org/t/naming-convention-regarding-custom-nodes/50802)

<div class="topic-metadata">

**Author:** [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Replies:** 4\
**Last updated:** [10 September 2021 08:28 UTC](https://discourse.nodered.org/t/naming-convention-regarding-custom-nodes/50802 "2021-09-10T08:28:54Z")

</div>

I've been playing around with building custom nodes and so far it's been a great experience. However, I'd love to know the naming convention surrounding the js/html and key functions. I haven't fathomed the do's and don…

---

## [Object property becomes undefined](https://discourse.nodered.org/t/object-property-becomes-undefined/50647)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 6\
**Last updated:** [6 September 2021 20:40 UTC](https://discourse.nodered.org/t/object-property-becomes-undefined/50647 "2021-09-06T20:40:45Z")

</div>

Hi folks, I am stuck with an issue in my Onvif Discovery node: An input message arrives. A reference to the input message is stored in node.triggerMsg: Then a discovery is started (via a third-party librar…

---

## [Node-red-contrib-discord-js-drusilla](https://discourse.nodered.org/t/node-red-contrib-discord-js-drusilla/50633)

<div class="topic-metadata">

**Author:** [@get\_joe](https://discourse.nodered.org/u/get_joe)\
**Replies:** 0\
**Last updated:** [5 September 2021 11:39 UTC](https://discourse.nodered.org/t/node-red-contrib-discord-js-drusilla/50633 "2021-09-05T11:39:52Z")

</div>

Hi, Guys! Released my first module a couple of days ago which implements discord 12.5.3 in node-RED. The module supports receiving messages, getting roles, and sending strings using seperate nodes. The node that sends m…

---

## [Is the alert window/dialog accessible form a config dialog?](https://discourse.nodered.org/t/is-the-alert-window-dialog-accessible-form-a-config-dialog/50628)

<div class="topic-metadata">

**Author:** [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Replies:** 2\
**Last updated:** [5 September 2021 09:28 UTC](https://discourse.nodered.org/t/is-the-alert-window-dialog-accessible-form-a-config-dialog/50628 "2021-09-05T09:28:01Z")

</div>

I'm working on a custom node where I want the user to confirm an destructive action. My question is the editors alert box available from a custom node config dialog an how: I like to ask the user first to make sure …

---

## [Node Installing Issue](https://discourse.nodered.org/t/node-installing-issue/50540)

<div class="topic-metadata">

**Author:** [@jeevan03](https://discourse.nodered.org/u/jeevan03)\
**Replies:** 7\
**Last updated:** [2 September 2021 14:46 UTC](https://discourse.nodered.org/t/node-installing-issue/50540 "2021-09-02T14:46:31Z")

</div>

Hello, Im not able to install node-red-contrib-cip-ethernet-ip node. 2021-09-02T13:23:20.750Z Install : node-red-contrib-cip-ethernet-ip 1.1.2 2021-09-02T13:28:44.408Z npm install --no-audit --no-update-notifier --no-…

---

## [Creating flows and connections via (function-)node](https://discourse.nodered.org/t/creating-flows-and-connections-via-function-node/49378)

<div class="topic-metadata">

**Author:** [@Zizou](https://discourse.nodered.org/u/Zizou)\
**Replies:** 1\
**Last updated:** [31 August 2021 21:06 UTC](https://discourse.nodered.org/t/creating-flows-and-connections-via-function-node/49378 "2021-08-31T21:06:26Z")

</div>

Hello dear NodeRED community, first of all, i'm excited about the software and this forum where people help each other where they can. If my question does not belong in this category, please bring it to my attention. I…

---

## [Retain connections to re-ordered outputs](https://discourse.nodered.org/t/retain-connections-to-re-ordered-outputs/50379)

<div class="topic-metadata">

**Author:** [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Replies:** 8\
**Last updated:** [31 August 2021 19:28 UTC](https://discourse.nodered.org/t/retain-connections-to-re-ordered-outputs/50379 "2021-08-31T19:28:55Z")

</div>

So, I am using the editableList UI widget, that is also responsible for spawning output pins. This all works well, I can add/remove/re-order so on and so forth. I have a function for outputLabels that returns the name…

---

## [Set max length for node description](https://discourse.nodered.org/t/set-max-length-for-node-description/50323)

<div class="topic-metadata">

**Author:** [@chiche](https://discourse.nodered.org/u/chiche)\
**Replies:** 11\
**Last updated:** [31 August 2021 07:11 UTC](https://discourse.nodered.org/t/set-max-length-for-node-description/50323 "2021-08-31T07:11:22Z")

</div>

Can I set max length for description of node?

---

## [Inheritance of custom nodes (contd.)](https://discourse.nodered.org/t/inheritance-of-custom-nodes-contd/50104)

<div class="topic-metadata">

**Author:** [@giampiero7](https://discourse.nodered.org/u/giampiero7)\
**Replies:** 8\
**Last updated:** [30 August 2021 14:44 UTC](https://discourse.nodered.org/t/inheritance-of-custom-nodes-contd/50104 "2021-08-30T14:44:02Z")

</div>

I'm continuing on this topic by @H3llsing: Other than the .js file, it would be nice to have the possibility to extend the .html sections too. Is there anything that could be done as of now to reuse, for instance, on…

---

## [Can I set the initialization value of node properties through environment variables?](https://discourse.nodered.org/t/can-i-set-the-initialization-value-of-node-properties-through-environment-variables/50325)

<div class="topic-metadata">

**Author:** [@chiche](https://discourse.nodered.org/u/chiche)\
**Replies:** 11\
**Last updated:** [30 August 2021 09:12 UTC](https://discourse.nodered.org/t/can-i-set-the-initialization-value-of-node-properties-through-environment-variables/50325 "2021-08-30T09:12:53Z")

</div>

Can I set the initialization value of node properties through environment variables?

---

## [Use mqtt-broker for new other nodes](https://discourse.nodered.org/t/use-mqtt-broker-for-new-other-nodes/50338)

<div class="topic-metadata">

**Author:** [@Thomassorensen](https://discourse.nodered.org/u/Thomassorensen)\
**Replies:** 0\
**Last updated:** [28 August 2021 22:10 UTC](https://discourse.nodered.org/t/use-mqtt-broker-for-new-other-nodes/50338 "2021-08-28T22:10:54Z")

</div>

H All, I'm working on a new node-red-contrib-simple-mqtt-sparkplug node, that will hopefully make it a lot easier to work with Sparkplug B in Node-Red. The work on the node is going pretty well, and I got everything so…

---

## [Http GET with JSON payload?](https://discourse.nodered.org/t/http-get-with-json-payload/50166)

<div class="topic-metadata">

**Author:** [@bbartling](https://discourse.nodered.org/u/bbartling)\
**Replies:** 5\
**Last updated:** [25 August 2021 17:21 UTC](https://discourse.nodered.org/t/http-get-with-json-payload/50166 "2021-08-25T17:21:37Z")

</div>

Can I make a GET request with a JSON payload in the body? For example if I use an inject node with this: { "address": "12345:2", "object\_type": "analogInput", "object\_instance": "2" } And feed this i…

---

## [Node Developers: How To use setMaxListeners() using RED.events](https://discourse.nodered.org/t/node-developers-how-to-use-setmaxlisteners-using-red-events/50154)

<div class="topic-metadata">

**Author:** [@ollix](https://discourse.nodered.org/u/ollix)\
**Replies:** 6\
**Last updated:** [25 August 2021 12:37 UTC](https://discourse.nodered.org/t/node-developers-how-to-use-setmaxlisteners-using-red-events/50154 "2021-08-25T12:37:11Z")

</div>

Hi folks, while working on my nodes, I also saw the "MaxListenersExceededWarning: Possible EventEmitter memory leak detected..." error. After some research on how to finally solve that, I'd like to share that with you, …

---

## [Error Popup while installing module](https://discourse.nodered.org/t/error-popup-while-installing-module/50159)

<div class="topic-metadata">

**Author:** [@KartikI](https://discourse.nodered.org/u/KartikI)\
**Replies:** 1\
**Last updated:** [25 August 2021 11:27 UTC](https://discourse.nodered.org/t/error-popup-while-installing-module/50159 "2021-08-25T11:27:08Z")

</div>

Hello All, My node-red is acting weird since yesterday when I am trying to install any module an error popup is occurring at the top please help me to figure this out. Thanks, Kartik

---

## [How to use addClass in oneditprepare](https://discourse.nodered.org/t/how-to-use-addclass-in-oneditprepare/50136)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [25 August 2021 06:13 UTC](https://discourse.nodered.org/t/how-to-use-addclass-in-oneditprepare/50136 "2021-08-25T06:13:55Z")

</div>

Hi folks, I need to add a red border around an input field, when some conditions are met: if (...) { $('#node-input-myfield').addClass("input-error"); } This works fine when this code snippet is called e.g. in an o…

---

## [Do nodes in a subflow receive NR events?](https://discourse.nodered.org/t/do-nodes-in-a-subflow-receive-nr-events/50012)

<div class="topic-metadata">

**Author:** [@ollix](https://discourse.nodered.org/u/ollix)\
**Replies:** 6\
**Last updated:** [22 August 2021 21:15 UTC](https://discourse.nodered.org/t/do-nodes-in-a-subflow-receive-nr-events/50012 "2021-08-22T21:15:56Z")

</div>

I am the owner of node-red-contrib-components and got a bug report regarding components being used inside subflows. Working on the bugfix I find, that the "component\_in" nodes don't receive custom events, that are sent w…

---

## [Why doesn't RED.nodes.createNode apply the config to this itself?](https://discourse.nodered.org/t/why-doesnt-red-nodes-createnode-apply-the-config-to-this-itself/49962)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 8\
**Last updated:** [20 August 2021 21:41 UTC](https://discourse.nodered.org/t/why-doesnt-red-nodes-createnode-apply-the-config-to-this-itself/49962 "2021-08-20T21:41:21Z")

</div>

I guess this may be one for @knolleary when he is back from his hols but ... When you do RED.nodes.createNode(this, config) for you node instance, why doesn't createNode apply config to this for you? It seems a long-w…

---

## [Destructuring custom node runtime for better clarity and consistency](https://discourse.nodered.org/t/destructuring-custom-node-runtime-for-better-clarity-and-consistency/49967)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 1\
**Last updated:** [20 August 2021 19:26 UTC](https://discourse.nodered.org/t/destructuring-custom-node-runtime-for-better-clarity-and-consistency/49967 "2021-08-20T19:26:36Z")

</div>

Hi all, as previously mentioned, this thread is about having a somewhat different structure to the runtime (.js) component of your custom nodes. The idea being to be able to split complex, monolithic code into smaller f…

---

## [Node-red-contrib-ffmpeg-spawn](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427)

<div class="topic-metadata">

**Author:** [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Replies:** 64\
**Last updated:** [26 July 2021 15:47 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427 "2021-07-26T15:47:45Z")

</div>

The ffmpeg node is ready for testing. It is similar to the exec node to spawn ffmpeg, with additional features. An example flow doing way more than a regular human needs to do: \[{"id":"93d74c4e.4c8fe","type":"ffmpeg-sp…

---

## [Node status Translation](https://discourse.nodered.org/t/node-status-translation/49907)

<div class="topic-metadata">

**Author:** [@Vinzenz](https://discourse.nodered.org/u/Vinzenz)\
**Replies:** 0\
**Last updated:** [19 August 2021 09:43 UTC](https://discourse.nodered.org/t/node-status-translation/49907 "2021-08-19T09:43:13Z")

</div>

Hi, I am trying to translate the status of my node, which worked fine so far until I tried to add some changing information into the status. I am counting sth. in the status of my node and want to display the correspondi…

---

## [How to emit events?](https://discourse.nodered.org/t/how-to-emit-events/49839)

<div class="topic-metadata">

**Author:** [@Daft11](https://discourse.nodered.org/u/Daft11)\
**Replies:** 5\
**Last updated:** [17 August 2021 16:34 UTC](https://discourse.nodered.org/t/how-to-emit-events/49839 "2021-08-17T16:34:52Z")

</div>

Hello! I'm creating custom node and having a hard time understanding how to execute/trigger/emit custom event (with listener in js part) from editor (html part). Is that even possible?

---

## [Backward compatibilty (and embedded systems)](https://discourse.nodered.org/t/backward-compatibilty-and-embedded-systems/49671)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 14\
**Last updated:** [14 August 2021 22:13 UTC](https://discourse.nodered.org/t/backward-compatibilty-and-embedded-systems/49671 "2021-08-14T22:13:47Z")

</div>

I would be interested in hearing from developers of contributed nodes about how much effort they put into maintaining compatibility with older versions of Node-RED and whether there are methods they find helpful. The iss…

---

## [Add new value to last value](https://discourse.nodered.org/t/add-new-value-to-last-value/49698)

<div class="topic-metadata">

**Author:** [@gjones84](https://discourse.nodered.org/u/gjones84)\
**Replies:** 7\
**Last updated:** [14 August 2021 17:29 UTC](https://discourse.nodered.org/t/add-new-value-to-last-value/49698 "2021-08-14T17:29:27Z")

</div>

Hi All, I wonder if someone can help me with a simple solution to my control loop. I have a series on values coming into my control loop and I want add the newest value to the last value. My idea was to set new value as…

---

## [Get-Method to Alexa-TTS](https://discourse.nodered.org/t/get-method-to-alexa-tts/49694)

<div class="topic-metadata">

**Author:** [@NadrojF](https://discourse.nodered.org/u/NadrojF)\
**Replies:** 1\
**Last updated:** [13 August 2021 18:15 UTC](https://discourse.nodered.org/t/get-method-to-alexa-tts/49694 "2021-08-13T18:15:22Z")

</div>

is it possible to send data from get-method to my alexa and let alexa speak via TTS? Sorry for my bad english and this stupid question (i am a beginner)

---

## [The image is not displayed properly](https://discourse.nodered.org/t/the-image-is-not-displayed-properly/49608)

<div class="topic-metadata">

**Author:** [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Replies:** 2\
**Last updated:** [11 August 2021 09:12 UTC](https://discourse.nodered.org/t/the-image-is-not-displayed-properly/49608 "2021-08-11T09:12:51Z")

</div>

Hi, I have just published my very first node. The problem is that, the image that works properly in my GitHub repo, is not properly displayed in the node's Node-RED page. What might be the reason?

---

## [typedInput: is it possible to add a color type?](https://discourse.nodered.org/t/typedinput-is-it-possible-to-add-a-color-type/49606)

<div class="topic-metadata">

**Author:** [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Replies:** 0\
**Last updated:** [11 August 2021 09:00 UTC](https://discourse.nodered.org/t/typedinput-is-it-possible-to-add-a-color-type/49606 "2021-08-11T09:00:11Z")

</div>

Hi, is it possible to add a color type to the typed input widget utilizing the \<input type:"color"\> ? I tried without success $(".node-input-option-fill").typedInput({ …

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

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