# Developing Nodes

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

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

**Page:** 41

---

## [I want to create my on node module for custom GPIO pin](https://discourse.nodered.org/t/i-want-to-create-my-on-node-module-for-custom-gpio-pin/27089)

<div class="topic-metadata">

**Author:** [@zuhaib446](https://discourse.nodered.org/u/zuhaib446)\
**Replies:** 8\
**Last updated:** [13 July 2020 10:15 UTC](https://discourse.nodered.org/t/i-want-to-create-my-on-node-module-for-custom-gpio-pin/27089 "2020-07-13T10:15:56Z")

</div>

I want to select pin value from the HTML radio button as a msg.payloadand and pass it in to rpio.open(pin, rpio.OUTPUT, rpio.LOW); in my HTML file \<script type="text/javascript"\> RED.nodes.registerType('muxbox-pin…

---

## [Contrib-ewelink 1.0.2, how inject deviceId](https://discourse.nodered.org/t/contrib-ewelink-1-0-2-how-inject-deviceid/29948)

<div class="topic-metadata">

**Author:** [@juliendragz](https://discourse.nodered.org/u/juliendragz)\
**Replies:** 5\
**Last updated:** [13 July 2020 01:47 UTC](https://discourse.nodered.org/t/contrib-ewelink-1-0-2-how-inject-deviceid/29948 "2020-07-13T01:47:22Z")

</div>

hello, I have been using node-red only for a few days. I would like to know if we can inject in any node the parameters that we can see on the right in the info tab. Like for example "file node" I can inject the path …

---

## [Join (Joao) variable from node-red to tasker](https://discourse.nodered.org/t/join-joao-variable-from-node-red-to-tasker/29941)

<div class="topic-metadata">

**Author:** [@MAaron](https://discourse.nodered.org/u/MAaron)\
**Replies:** 3\
**Last updated:** [12 July 2020 16:06 UTC](https://discourse.nodered.org/t/join-joao-variable-from-node-red-to-tasker/29941 "2020-07-12T16:06:13Z")

</div>

Hi there! I would like to know, that if I have a global variable in my nodered (lets say its named TempValue), how can I send that Global value to my phone in tasker, and use that as a variable there? Namely, I would w…

---

## [RED in UI nodes](https://discourse.nodered.org/t/red-in-ui-nodes/29824)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 9\
**Last updated:** [10 July 2020 21:51 UTC](https://discourse.nodered.org/t/red-in-ui-nodes/29824 "2020-07-10T21:51:07Z")

</div>

Hi folks, I needed to get a nested property from an input message, so I wrote following snippet $scope.$watch('msg', function(msg) { var someNestedPropertyValue = RED.util.getMessageProperty(....); } However I get "…

---

## [Implementing a new protocol](https://discourse.nodered.org/t/implementing-a-new-protocol/29398)

<div class="topic-metadata">

**Author:** [@amoreno](https://discourse.nodered.org/u/amoreno)\
**Replies:** 3\
**Last updated:** [8 July 2020 00:05 UTC](https://discourse.nodered.org/t/implementing-a-new-protocol/29398 "2020-07-08T00:05:31Z")

</div>

Hello, Does anyone have experience implementing a new protocol, how much could it cost. I'm looking for someone that could develop the BSAP protocol for Bristol RTU's. This is the protocol Application Programmer’s Refe…

---

## [Node creation from Ansible (or other) template?](https://discourse.nodered.org/t/node-creation-from-ansible-or-other-template/29598)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 16\
**Last updated:** [7 July 2020 11:10 UTC](https://discourse.nodered.org/t/node-creation-from-ansible-or-other-template/29598 "2020-07-07T11:10:44Z")

</div>

It has occurred to me that one could write an Ansible role which would take a yaml file defining the requirements of a node, including the name, field names and types, and so on, and it would automatically generate skele…

---

## [\[Doc feature request\]A more complex contrib node example](https://discourse.nodered.org/t/doc-feature-request-a-more-complex-contrib-node-example/29415)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 24\
**Last updated:** [7 July 2020 08:41 UTC](https://discourse.nodered.org/t/doc-feature-request-a-more-complex-contrib-node-example/29415 "2020-07-07T08:41:17Z")

</div>

Having battled (and still battling as we speak) with adding extra features to an existing simple contrib node, I think it would be a REALLY good idea to have a slightly (just a bit) more complex example than just the cu…

---

## [Node not saving dynamic credentials to cred file](https://discourse.nodered.org/t/node-not-saving-dynamic-credentials-to-cred-file/29622)

<div class="topic-metadata">

**Author:** [@brettyj](https://discourse.nodered.org/u/brettyj)\
**Replies:** 1\
**Last updated:** [6 July 2020 21:26 UTC](https://discourse.nodered.org/t/node-not-saving-dynamic-credentials-to-cred-file/29622 "2020-07-06T21:26:25Z")

</div>

Hey, I've been having issues with a Node that I've forked to try and improve and fix. The problem I'm getting is that it uses OAuth to login to a service, and while that mostly works fine, if I restart Node-Red I have t…

---

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

<div class="topic-metadata">

**Author:** [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Replies:** 0\
**Last updated:** [5 July 2020 21:25 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-minimodem/29569 "2020-07-05T21:25:12Z")

</div>

I have finished the node, this node was requested by a guy over at Fiverr, and I want to thank anyone that was a part of the discussion. If anyone wants to contribute to this project (there are some small node.status er…

---

## [Contextmenu location](https://discourse.nodered.org/t/contextmenu-location/22780)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 76\
**Last updated:** [4 July 2020 22:00 UTC](https://discourse.nodered.org/t/contextmenu-location/22780 "2020-07-04T22:00:50Z")

</div>

Hi folks, Currently the node-red-ui-contextmenu node can be displayed at a location that is specified: In the input message. For example when you click on an SVG shape, the node-red-contrib-ui-svg node sends the mous…

---

## [Node red not waiting for on close to return before stopping](https://discourse.nodered.org/t/node-red-not-waiting-for-on-close-to-return-before-stopping/29498)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 9\
**Last updated:** [4 July 2020 18:59 UTC](https://discourse.nodered.org/t/node-red-not-waiting-for-on-close-to-return-before-stopping/29498 "2020-07-04T18:59:34Z")

</div>

I have a problem with the handling of on('close') when node-red is stopped or my node is restarted. My understanding is that node-red should wait for on close to return before closing down (subject to timeouts possibly …

---

## [Queueing input messages](https://discourse.nodered.org/t/queueing-input-messages/29485)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 3\
**Last updated:** [4 July 2020 11:02 UTC](https://discourse.nodered.org/t/queueing-input-messages/29485 "2020-07-04T11:02:12Z")

</div>

In a node I am creating I want to service messages sequentially rather than in parallel (it runs async tasks). Is there a way I can tell node to hold the messages for me (so on('input') will not get called till I re-ena…

---

## [Node-red-contrib-simpletime enhancement](https://discourse.nodered.org/t/node-red-contrib-simpletime-enhancement/29069)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 63\
**Last updated:** [4 July 2020 06:35 UTC](https://discourse.nodered.org/t/node-red-contrib-simpletime-enhancement/29069 "2020-07-04T06:35:20Z")

</div>

Carrying on from this thread @Paul-Reed It occurs to me anyway, that being able to just use simpletime for single/partial myXXXXX payloads by having a set of tick boxes would be an enhancement for the node (default b…

---

## [A question about freeing resources in on('close')](https://discourse.nodered.org/t/a-question-about-freeing-resources-in-on-close/29450)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 8\
**Last updated:** [3 July 2020 18:33 UTC](https://discourse.nodered.org/t/a-question-about-freeing-resources-in-on-close/29450 "2020-07-03T18:33:19Z")

</div>

I am developing a node that will spawn a process which may run for minutes, so in on('close') I should kill the spawned process. The complicating factor is that if the node is sent multiple messages it will spawn a proc…

---

## [ID Uniqueness when importing nodes](https://discourse.nodered.org/t/id-uniqueness-when-importing-nodes/29311)

<div class="topic-metadata">

**Author:** [@pfried](https://discourse.nodered.org/u/pfried)\
**Replies:** 3\
**Last updated:** [3 July 2020 07:32 UTC](https://discourse.nodered.org/t/id-uniqueness-when-importing-nodes/29311 "2020-07-03T07:32:20Z")

</div>

Hello forum, I would have preferred opening this on Github as a FR, but here we go: We do have a software which can create Node-RED nodes via a JSON export. So the software creates a node with a certain ID. According t…

---

## [Loading default edit page values from packaged JSON?](https://discourse.nodered.org/t/loading-default-edit-page-values-from-packaged-json/29338)

<div class="topic-metadata">

**Author:** [@neile](https://discourse.nodered.org/u/neile)\
**Replies:** 5\
**Last updated:** [2 July 2020 19:37 UTC](https://discourse.nodered.org/t/loading-default-edit-page-values-from-packaged-json/29338 "2020-07-02T19:37:25Z")

</div>

Well, my node is all well and good when NodeRed is hosted at an unsecure http:// address. However, my fancy edit page code to load a list of values from a remote server doesn't work when NodeRed is secured at an https://…

---

## [Setting initial dropdown value for dynamic dropdown?](https://discourse.nodered.org/t/setting-initial-dropdown-value-for-dynamic-dropdown/29331)

<div class="topic-metadata">

**Author:** [@neile](https://discourse.nodered.org/u/neile)\
**Replies:** 4\
**Last updated:** [1 July 2020 19:24 UTC](https://discourse.nodered.org/t/setting-initial-dropdown-value-for-dynamic-dropdown/29331 "2020-07-01T19:24:32Z")

</div>

I'm creating a custom node that reads a list of effect values values dynamically from a remote server and populates a dropdown for its edit page. I've got the dropdown populating just fine, and the resulting selected eff…

---

## [Modbus with android](https://discourse.nodered.org/t/modbus-with-android/29323)

<div class="topic-metadata">

**Author:** [@Jerem](https://discourse.nodered.org/u/Jerem)\
**Replies:** 4\
**Last updated:** [1 July 2020 19:18 UTC](https://discourse.nodered.org/t/modbus-with-android/29323 "2020-07-01T19:18:07Z")

</div>

Hello, Is there someone know how to integrate modbus node on a android phone ? Thanks !

---

## [Reading HTML in Custom node](https://discourse.nodered.org/t/reading-html-in-custom-node/29154)

<div class="topic-metadata">

**Author:** [@abouslima](https://discourse.nodered.org/u/abouslima)\
**Replies:** 8\
**Last updated:** [1 July 2020 12:26 UTC](https://discourse.nodered.org/t/reading-html-in-custom-node/29154 "2020-07-01T12:26:17Z")

</div>

Greetings, I have been creating a custom node that reads input and runs them in a Python script, I have a problem In capturing the HTML by JavaScript from my custom node, all I can get is the msg Object. Regards,

---

## [Adding function to node](https://discourse.nodered.org/t/adding-function-to-node/29160)

<div class="topic-metadata">

**Author:** [@Mastin](https://discourse.nodered.org/u/Mastin)\
**Replies:** 4\
**Last updated:** [30 June 2020 13:52 UTC](https://discourse.nodered.org/t/adding-function-to-node/29160 "2020-06-30T13:52:08Z")

</div>

Good morning, I am modifying the ocpp node for personal use. I have added a function that makes it reconnect if it loses the connection (this only did it if you did a deploy). The author of the module that makes the r…

---

## [JSON-Editor in UI](https://discourse.nodered.org/t/json-editor-in-ui/29068)

<div class="topic-metadata">

**Author:** [@deme](https://discourse.nodered.org/u/deme)\
**Replies:** 5\
**Last updated:** [30 June 2020 13:41 UTC](https://discourse.nodered.org/t/json-editor-in-ui/29068 "2020-06-30T13:41:56Z")

</div>

Hello, I am trying to build a node which allows the user to edit a JSON in the UI. To provide the user some visual clues about the structure of the JSON, I wanted to use the same IDE that is used in the node-red functio…

---

## [Send a message among custom nodes](https://discourse.nodered.org/t/send-a-message-among-custom-nodes/29059)

<div class="topic-metadata">

**Author:** [@sdalee](https://discourse.nodered.org/u/sdalee)\
**Replies:** 3\
**Last updated:** [27 June 2020 10:13 UTC](https://discourse.nodered.org/t/send-a-message-among-custom-nodes/29059 "2020-06-27T10:13:19Z")

</div>

I'd like to create 3 custom nodes: 'in node', 'configuration node' and 'out node' If 'in node' gets a msg, the msg should appear at the output of one or more 'out node'. Depending on the topic of 'in node' topic. If one…

---

## [Node.on('input', function(msg, send, done) - what is send for?](https://discourse.nodered.org/t/node-on-input-function-msg-send-done-what-is-send-for/28988)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 13\
**Last updated:** [26 June 2020 09:25 UTC](https://discourse.nodered.org/t/node-on-input-function-msg-send-done-what-is-send-for/28988 "2020-06-26T09:25:51Z")

</div>

The new prototype for receiving a message in a node is, I believe, node.on('input', function(msg, send, done) { I can't find any documentation or examples showing what send is for. Can someone elucidate, or point me t…

---

## [How would exec node be designed now?](https://discourse.nodered.org/t/how-would-exec-node-be-designed-now/29020)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 0\
**Last updated:** [26 June 2020 09:22 UTC](https://discourse.nodered.org/t/how-would-exec-node-be-designed-now/29020 "2020-06-26T09:22:39Z")

</div>

Following on from discussions on the use of done() and node.error() it would help me in designing a node I am working on to consider the design of the Exec node, were it to be redesigned taking the new Complete feature i…

---

## [Need a bit of help on making two columns in contrib node](https://discourse.nodered.org/t/need-a-bit-of-help-on-making-two-columns-in-contrib-node/28874)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 10\
**Last updated:** [24 June 2020 15:37 UTC](https://discourse.nodered.org/t/need-a-bit-of-help-on-making-two-columns-in-contrib-node/28874 "2020-06-24T15:37:31Z")

</div>

I'm doing a PR on contrib-simpletime to add in checkboxes for the various properties - got it working but my CSS knowledge is basically look at someone else's code and copy/paste and I'm struggling to get the columns to …

---

## [Use of msg, send, done in node that can also be triggered by button & more than one input msg to one logical process, when to call done?](https://discourse.nodered.org/t/use-of-msg-send-done-in-node-that-can-also-be-triggered-by-button-more-than-one-input-msg-to-one-logical-process-when-to-call-done/28934)

<div class="topic-metadata">

**Author:** [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Replies:** 13\
**Last updated:** [25 June 2020 09:21 UTC](https://discourse.nodered.org/t/use-of-msg-send-done-in-node-that-can-also-be-triggered-by-button-more-than-one-input-msg-to-one-logical-process-when-to-call-done/28934 "2020-06-25T09:21:21Z")

</div>

Hello, little question here: For my sox record node i have the option that the user can choose whether to start recording on an input message or have no input but a button like the inject node instead to start and stop…

---

## [Paid work for some help on Node development](https://discourse.nodered.org/t/paid-work-for-some-help-on-node-development/27400)

<div class="topic-metadata">

**Author:** [@mako](https://discourse.nodered.org/u/mako)\
**Replies:** 1\
**Last updated:** [17 June 2020 14:54 UTC](https://discourse.nodered.org/t/paid-work-for-some-help-on-node-development/27400 "2020-06-17T14:54:37Z")

</div>

Hi. Reaching out to anybody who wants some paid work to help us finish a simple node for node-red. Background. We use this npm module very often "node-red-nodegen" https://www.npmjs.com/package/node-red-nodegen Basi…

---

## [Can't discover my locally installed created Node](https://discourse.nodered.org/t/cant-discover-my-locally-installed-created-node/28427)

<div class="topic-metadata">

**Author:** [@karlo](https://discourse.nodered.org/u/karlo)\
**Replies:** 1\
**Last updated:** [16 June 2020 20:59 UTC](https://discourse.nodered.org/t/cant-discover-my-locally-installed-created-node/28427 "2020-06-16T20:59:26Z")

</div>

Hey, I created a node and locally installed it in my ~/.node-red with npm install . No Error happend and I can see a link to the installed folder in node\_modules. But I can't find the node in my node palette. What is t…

---

## [Create a TypeScript node](https://discourse.nodered.org/t/create-a-typescript-node/28120)

<div class="topic-metadata">

**Author:** [@jamesnw](https://discourse.nodered.org/u/jamesnw)\
**Replies:** 17\
**Last updated:** [14 June 2020 16:42 UTC](https://discourse.nodered.org/t/create-a-typescript-node/28120 "2020-06-14T16:42:51Z")

</div>

I’m working out whether or not to modify the existing Function node to support BOTH JS and TypeScript (via tabs for instance), OR to create a stand-alone node for TS only. I’ll be reusing the code by Steve here: Any t…

---

## [Context global - node initialize](https://discourse.nodered.org/t/context-global-node-initialize/28182)

<div class="topic-metadata">

**Author:** [@sragneau](https://discourse.nodered.org/u/sragneau)\
**Replies:** 9\
**Last updated:** [11 June 2020 16:04 UTC](https://discourse.nodered.org/t/context-global-node-initialize/28182 "2020-06-11T16:04:10Z")

</div>

Dear community, In our custom node, we want to save an connection into context.global value. When i try this node.initialize = () =\> { node.status({ fill: "yellow", shape: "dot", …

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

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