# Developing Nodes

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

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

**Page:** 13

---

## [TypedInput Widget Question / Bug?](https://discourse.nodered.org/t/typedinput-widget-question-bug/78687)

<div class="topic-metadata">

**Author:** [@ericbenjaminjr](https://discourse.nodered.org/u/ericbenjaminjr)\
**Replies:** 4\
**Last updated:** [26 May 2023 09:36 UTC](https://discourse.nodered.org/t/typedinput-widget-question-bug/78687 "2023-05-26T09:36:06Z")

</div>

Hi All, I'm using the TypedInput widget with hasValue set to true and options at the same time. In the example below I'm trying to add a number of units to a date. The odd thing is, the value for the selected option isn'…

---

## [Install custom node from git to node-red/hassio](https://discourse.nodered.org/t/install-custom-node-from-git-to-node-red-hassio/78659)

<div class="topic-metadata">

**Author:** [@thomasoggier](https://discourse.nodered.org/u/thomasoggier)\
**Replies:** 2\
**Last updated:** [24 May 2023 15:54 UTC](https://discourse.nodered.org/t/install-custom-node-from-git-to-node-red-hassio/78659 "2023-05-24T15:54:46Z")

</div>

Hello all, I develop a custom node on my laptop and now I would like to install it into my raspberry pi, with home assistant. I've try to zip the file to .tgz file and download it manually, but I get some error. And I …

---

## [\[Node-Request\] kdeconnect node to send notification to the smartphone](https://discourse.nodered.org/t/node-request-kdeconnect-node-to-send-notification-to-the-smartphone/78620)

<div class="topic-metadata">

**Author:** [@Mannshoch](https://discourse.nodered.org/u/Mannshoch)\
**Replies:** 2\
**Last updated:** [22 May 2023 20:21 UTC](https://discourse.nodered.org/t/node-request-kdeconnect-node-to-send-notification-to-the-smartphone/78620 "2023-05-22T20:21:04Z")

</div>

If I could place a wish here. Please add a KDE Connect node I Propose: A config node where I could pair my Phone with the node. and setup allowed data to send and resceive. Several nodes for several features like: Ge…

---

## [Compressing for installation via upload](https://discourse.nodered.org/t/compressing-for-installation-via-upload/78585)

<div class="topic-metadata">

**Author:** [@ethereotek](https://discourse.nodered.org/u/ethereotek)\
**Replies:** 2\
**Last updated:** [21 May 2023 19:12 UTC](https://discourse.nodered.org/t/compressing-for-installation-via-upload/78585 "2023-05-21T19:12:45Z")

</div>

Hello all, I've got a couple utility nodes that I want to make available to upload as a tar instead of going the npm route. I've installed a couple packages this way, but when I try to compress the directories for my ow…

---

## [Get all nodes in the same flow](https://discourse.nodered.org/t/get-all-nodes-in-the-same-flow/78285)

<div class="topic-metadata">

**Author:** [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Replies:** 2\
**Last updated:** [19 May 2023 11:28 UTC](https://discourse.nodered.org/t/get-all-nodes-in-the-same-flow/78285 "2023-05-19T11:28:49Z")

</div>

How do I find all nodes in the same flow at run time? I found Nick's answer in this post, but with NR 3.0.2, I don't have access to the API RED.nodes.getAllFlowNodes() and the like. 9 May 11:29:19 - \[error\] \[my\_node:bc…

---

## [Access global and/or flow context from a GLOBAL HOOK?](https://discourse.nodered.org/t/access-global-and-or-flow-context-from-a-global-hook/78457)

<div class="topic-metadata">

**Author:** [@nru2023](https://discourse.nodered.org/u/nru2023)\
**Replies:** 7\
**Last updated:** [17 May 2023 18:10 UTC](https://discourse.nodered.org/t/access-global-and-or-flow-context-from-a-global-hook/78457 "2023-05-17T18:10:25Z")

</div>

Hi ! Is there any way to access the global or the flow context in which an activated (and working !) global hook will be fired (for ex. "onSend") ? All tries (global.get/set, context.global.set/get, context().global.se…

---

## [Whistle Pet Tracker Token-based API](https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326)

<div class="topic-metadata">

**Author:** [@mrdvt92](https://discourse.nodered.org/u/mrdvt92)\
**Replies:** 1\
**Last updated:** [11 May 2023 05:10 UTC](https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326 "2023-05-11T05:10:01Z")

</div>

I have a Whistle Pet Tracker and the web service API is quite simple. I have recreated the service in Perl from Python to figure it out. But, I'd like to make it a node since I'm moving all of my home network to node-r…

---

## [Client JS in the node config editor?](https://discourse.nodered.org/t/client-js-in-the-node-config-editor/78212)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 5\
**Last updated:** [7 May 2023 11:36 UTC](https://discourse.nodered.org/t/client-js-in-the-node-config-editor/78212 "2023-05-07T11:36:40Z")

</div>

I'm the author of the node-red-contrib-mytimeout node. A user has noted a problem with the config (string vs number). I've figured out if I add a check box in the config editor I can have the user select what they need. …

---

## [Sending a message upon startup in a custom node](https://discourse.nodered.org/t/sending-a-message-upon-startup-in-a-custom-node/78059)

<div class="topic-metadata">

**Author:** [@omrid](https://discourse.nodered.org/u/omrid)\
**Replies:** 25\
**Last updated:** [3 May 2023 22:02 UTC](https://discourse.nodered.org/t/sending-a-message-upon-startup-in-a-custom-node/78059 "2023-05-03T22:02:51Z")

</div>

I need my node to automatically send a message upon its initialization. In a function node, I can just create & send a message in the function node's On Start tab: However, when I try to apply the same practice in a …

---

## [\[Suggestion\] Persistent storage for Dashboard UI elements](https://discourse.nodered.org/t/suggestion-persistent-storage-for-dashboard-ui-elements/77964)

<div class="topic-metadata">

**Author:** [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Replies:** 1\
**Last updated:** [26 April 2023 18:54 UTC](https://discourse.nodered.org/t/suggestion-persistent-storage-for-dashboard-ui-elements/77964 "2023-04-26T18:54:40Z")

</div>

Hi, Whenever Node-Red is started, the dashboard UI elements are set to default values. Would it be possible to add an automatic persistent storage for the Dashboard UI elements ? But it would be really great if the UI…

---

## [How to use other node instances / objects across nodes](https://discourse.nodered.org/t/how-to-use-other-node-instances-objects-across-nodes/77486)

<div class="topic-metadata">

**Author:** [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Replies:** 13\
**Last updated:** [25 April 2023 17:10 UTC](https://discourse.nodered.org/t/how-to-use-other-node-instances-objects-across-nodes/77486 "2023-04-25T17:10:54Z")

</div>

Hey hey, Rewriting my post to put it simpler: What is the best way between nodes to have a forward backward communication when they are both internally instantiated as objects? I have written a flow variable and am pu…

---

## [Custom node's input port disappears if the "inputs" field's value is greater than 1](https://discourse.nodered.org/t/custom-nodes-input-port-disappears-if-the-inputs-fields-value-is-greater-than-1/77760)

<div class="topic-metadata">

**Author:** [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Replies:** 2\
**Last updated:** [21 April 2023 10:02 UTC](https://discourse.nodered.org/t/custom-nodes-input-port-disappears-if-the-inputs-fields-value-is-greater-than-1/77760 "2023-04-21T10:02:14Z")

</div>

Environment Node-RED 2.0.5 Repro For my custom node, I allow two input ports, so in node.html, I filled the number of inputs this way inputs: 2, outputs: 2, Expectation Knowing that NR supports a single in-port, I exp…

---

## [How create new nodes?](https://discourse.nodered.org/t/how-create-new-nodes/77746)

<div class="topic-metadata">

**Author:** [@namexx](https://discourse.nodered.org/u/namexx)\
**Replies:** 9\
**Last updated:** [21 April 2023 08:40 UTC](https://discourse.nodered.org/t/how-create-new-nodes/77746 "2023-04-21T08:40:13Z")

</div>

Hello guys, I'm trying to create my first node in Node-RED, but I haven't been successful so far. I'm using the lower-case example from Node-RED. The steps I'm following are the following: 1.-create folder in director…

---

## [API KEY security for users exporting flows](https://discourse.nodered.org/t/api-key-security-for-users-exporting-flows/77671)

<div class="topic-metadata">

**Author:** [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Replies:** 3\
**Last updated:** [17 April 2023 19:02 UTC](https://discourse.nodered.org/t/api-key-security-for-users-exporting-flows/77671 "2023-04-17T19:02:54Z")

</div>

Recently I've seen a post where a user exposed their API KEY when exporting a flow using one of my nodes. What changes can I make to a node to prevent users from accidentally sharing their API KEY when they export a flow…

---

## [Installing packed tgz file results on Error: Cannot find module](https://discourse.nodered.org/t/installing-packed-tgz-file-results-on-error-cannot-find-module/77538)

<div class="topic-metadata">

**Author:** [@distante](https://discourse.nodered.org/u/distante)\
**Replies:** 2\
**Last updated:** [13 April 2023 15:21 UTC](https://discourse.nodered.org/t/installing-packed-tgz-file-results-on-error-cannot-find-module/77538 "2023-04-13T15:21:13Z")

</div>

I have created a package with a custom node, the node lives on a nodes folder and I reference it on my package.json as: "node-red": { "nodes": { "configurable-countdown-timer": "nodes/configurable-countdown-…

---

## [How do I handle the license for a node for which I use code from the switch node?](https://discourse.nodered.org/t/how-do-i-handle-the-license-for-a-node-for-which-i-use-code-from-the-switch-node/77292)

<div class="topic-metadata">

**Author:** [@ericbenjaminjr](https://discourse.nodered.org/u/ericbenjaminjr)\
**Replies:** 4\
**Last updated:** [13 April 2023 12:17 UTC](https://discourse.nodered.org/t/how-do-i-handle-the-license-for-a-node-for-which-i-use-code-from-the-switch-node/77292 "2023-04-13T12:17:23Z")

</div>

Hi all, I've created a node for which I used the rule engine from the switch node. I've been doing some research on the Apache 2.0 license, but I'm still not sure how I should handle this. I also would like to use the sa…

---

## [PaletteLabel v. Type](https://discourse.nodered.org/t/palettelabel-v-type/77408)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 10\
**Last updated:** [11 April 2023 11:12 UTC](https://discourse.nodered.org/t/palettelabel-v-type/77408 "2023-04-11T11:12:22Z")

</div>

Hi There! Following up from Confused about potential naming conflicts between module names, node names, and palette or flow management When I created node-red-contrib-neuralnet-builder (node) - Node-RED I deliberately …

---

## [How to declare a local node for testing inside a folder level node-red instance?](https://discourse.nodered.org/t/how-to-declare-a-local-node-for-testing-inside-a-folder-level-node-red-instance/77404)

<div class="topic-metadata">

**Author:** [@distante](https://discourse.nodered.org/u/distante)\
**Replies:** 5\
**Last updated:** [10 April 2023 17:04 UTC](https://discourse.nodered.org/t/how-to-declare-a-local-node-for-testing-inside-a-folder-level-node-red-instance/77404 "2023-04-10T17:04:10Z")

</div>

I am trying to set up a repository to create a custom node. Since I want to share this repo between machines (with different OS), including the flows and custom nodes, I want to configure node-red to run locally from th…

---

## [Drying Node definitions - avoiding code repetition](https://discourse.nodered.org/t/drying-node-definitions-avoiding-code-repetition/77409)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 8\
**Last updated:** [10 April 2023 15:29 UTC](https://discourse.nodered.org/t/drying-node-definitions-avoiding-code-repetition/77409 "2023-04-10T15:29:32Z")

</div>

Hi There! When I was creating my first nodes, I wanted to avoid repeating my code especially in the frontend definition of nodes. So what I did was create a "base" node that defined a JS hash. I then went on to use that…

---

## [Not able to integrate custom node](https://discourse.nodered.org/t/not-able-to-integrate-custom-node/77361)

<div class="topic-metadata">

**Author:** [@sheminasalam](https://discourse.nodered.org/u/sheminasalam)\
**Replies:** 8\
**Last updated:** [10 April 2023 14:43 UTC](https://discourse.nodered.org/t/not-able-to-integrate-custom-node/77361 "2023-04-10T14:43:08Z")

</div>

I a real noobie to creating nodes.I wanted to add an output property to the build in delay node which gives the total delay applied while random delay is selected. This info will be send as msg.delay\_time. I was able to …

---

## [Npm package dependencies not found](https://discourse.nodered.org/t/npm-package-dependencies-not-found/77411)

<div class="topic-metadata">

**Author:** [@hikuikuma](https://discourse.nodered.org/u/hikuikuma)\
**Replies:** 8\
**Last updated:** [10 April 2023 11:38 UTC](https://discourse.nodered.org/t/npm-package-dependencies-not-found/77411 "2023-04-10T11:38:25Z")

</div>

Hello, I'm trying to create nodes that connect to an API, I wanted to use fetch (node-fetch) which seems to me a simple solution to make requests to the API. But when I test my node, it sends me the error : \[ERR\_MODULE\_…

---

## [Change a setting in the node, require re-deploy](https://discourse.nodered.org/t/change-a-setting-in-the-node-require-re-deploy/77352)

<div class="topic-metadata">

**Author:** [@RickyVaughn2](https://discourse.nodered.org/u/RickyVaughn2)\
**Replies:** 4\
**Last updated:** [9 April 2023 20:09 UTC](https://discourse.nodered.org/t/change-a-setting-in-the-node-require-re-deploy/77352 "2023-04-09T20:09:20Z")

</div>

I cannot seem to get this working. The desire is that when a user clicks a checkbox in the node's settings and then clicks Done, I want the node-red editor to require a re-deployment. I have tried: $("#node-input-chec…

---

## [Yet another dropdown list Q](https://discourse.nodered.org/t/yet-another-dropdown-list-q/77281)

<div class="topic-metadata">

**Author:** [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Replies:** 14\
**Last updated:** [9 April 2023 09:21 UTC](https://discourse.nodered.org/t/yet-another-dropdown-list-q/77281 "2023-04-09T09:21:56Z")

</div>

Hey hey, Been searching the forum but havent found the answer I was searching for. Appologies in advance if it is in here some where but havent seen it. I want to generate a custom dropdown box from an existing object …

---

## [\[ANNOUNCEMENT\] Dropbox node versie 2.1.0 (beta) - refresh token refactored](https://discourse.nodered.org/t/announcement-dropbox-node-versie-2-1-0-beta-refresh-token-refactored/73312)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 41\
**Last updated:** [6 April 2023 10:54 UTC](https://discourse.nodered.org/t/announcement-dropbox-node-versie-2-1-0-beta-refresh-token-refactored/73312 "2023-04-06T10:54:50Z")

</div>

Hi folks, We introduced in version 2.0.0 of the dropbox node the concept of refresh tokens, to allow this node to support the new stronger Dropbox security guidelines. However our mechanism was based on OAauth2 redirec…

---

## [\[new node\] node-red-contrib-cip-ethernet-ip](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251)

<div class="topic-metadata">

**Author:** [@machadotiago](https://discourse.nodered.org/u/machadotiago)\
**Replies:** 39\
**Last updated:** [4 April 2023 13:15 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251 "2023-04-04T13:15:36Z")

</div>

Hello @knolleary we published yesterday this new node for communication between node-red and Allen Bradley PLCs by using the "EtherNet/IP" protocol: https://www.npmjs.com/package/node-red-contrib-ethernet-ip Could you…

---

## [How to add custom nodes while running node-red inside docker? (without creating a npm package)](https://discourse.nodered.org/t/how-to-add-custom-nodes-while-running-node-red-inside-docker-without-creating-a-npm-package/76740)

<div class="topic-metadata">

**Author:** [@sabir](https://discourse.nodered.org/u/sabir)\
**Replies:** 3\
**Last updated:** [4 April 2023 12:19 UTC](https://discourse.nodered.org/t/how-to-add-custom-nodes-while-running-node-red-inside-docker-without-creating-a-npm-package/76740 "2023-04-04T12:19:43Z")

</div>

For locally running node-red I do cd ~/.node-red npm install ~/dev/node-red-contrib-example-lower-case Same things I want to achieve but inside docker node-red

---

## [How to create config node in node-red](https://discourse.nodered.org/t/how-to-create-config-node-in-node-red/77101)

<div class="topic-metadata">

**Author:** [@natamongkol](https://discourse.nodered.org/u/natamongkol)\
**Replies:** 22\
**Last updated:** [3 April 2023 06:12 UTC](https://discourse.nodered.org/t/how-to-create-config-node-in-node-red/77101 "2023-04-03T06:12:38Z")

</div>

I try create config node like this but it's show only text box no config, I want projectid to be a config node, I tried following many nodes with config node but it didn't work for me, How to fix it? graphql\_query.js m…

---

## [Node Red Version Compatibility](https://discourse.nodered.org/t/node-red-version-compatibility/77096)

<div class="topic-metadata">

**Author:** [@ebarrieau](https://discourse.nodered.org/u/ebarrieau)\
**Replies:** 4\
**Last updated:** [2 April 2023 13:01 UTC](https://discourse.nodered.org/t/node-red-version-compatibility/77096 "2023-04-02T13:01:33Z")

</div>

I am in the final stages of wrapping up the first release of a custom node. I have been using it in development for a few months and think it is stable and useful enough to release for others to use. I am always using th…

---

## [How to set \<select\> dropdown in oneditprepare?](https://discourse.nodered.org/t/how-to-set-select-dropdown-in-oneditprepare/77016)

<div class="topic-metadata">

**Author:** [@cameo69](https://discourse.nodered.org/u/cameo69)\
**Replies:** 21\
**Last updated:** [1 April 2023 11:37 UTC](https://discourse.nodered.org/t/how-to-set-select-dropdown-in-oneditprepare/77016 "2023-04-01T11:37:03Z")

</div>

I have something like this in the definition of the edit screen and the commented option (value="emit") was there in a previous version but is gone now. I would like to "migrate" the existing value "emit" to "drop" and …

---

## [Properties in a custom validator](https://discourse.nodered.org/t/properties-in-a-custom-validator/77095)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 1\
**Last updated:** [31 March 2023 16:49 UTC](https://discourse.nodered.org/t/properties-in-a-custom-validator/77095 "2023-03-31T16:49:11Z")

</div>

I have a requirement similar to one that @BartButenaers described some time ago. I would like to use the same custom validator for the defaults of several similar properties, but be able to pass the validator a different…

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

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