# Developing Nodes

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

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

**Page:** 32

---

## [Capturing input messages with node-red-node-test-helper not working](https://discourse.nodered.org/t/capturing-input-messages-with-node-red-node-test-helper-not-working/43596)

<div class="topic-metadata">

**Author:** [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)\
**Replies:** 6\
**Last updated:** [18 April 2021 17:16 UTC](https://discourse.nodered.org/t/capturing-input-messages-with-node-red-node-test-helper-not-working/43596 "2021-04-18T17:16:47Z")

</div>

Hi, recently I started writing unit tests for my Node-RED nodes. I'm using node-red-node-test-helper and already implemented a couple of tests which work just fine. But now I got stuck implementing a test which involve…

---

## [How to get credentials value from config node on editor](https://discourse.nodered.org/t/how-to-get-credentials-value-from-config-node-on-editor/44356)

<div class="topic-metadata">

**Author:** [@diglopes](https://discourse.nodered.org/u/diglopes)\
**Replies:** 3\
**Last updated:** [18 April 2021 16:25 UTC](https://discourse.nodered.org/t/how-to-get-credentials-value-from-config-node-on-editor/44356 "2021-04-18T16:25:24Z")

</div>

Hi, everyone! Context: I want to get some data from an API and dynamically show it on Editor How can I get the credentials values from the config node on Editor to make the HTTP call correctly? Node-RED: v1.3.1

---

## [Error getting started testing a custom node](https://discourse.nodered.org/t/error-getting-started-testing-a-custom-node/44322)

<div class="topic-metadata">

**Author:** [@jcarreira](https://discourse.nodered.org/u/jcarreira)\
**Replies:** 1\
**Last updated:** [18 April 2021 14:28 UTC](https://discourse.nodered.org/t/error-getting-started-testing-a-custom-node/44322 "2021-04-18T14:28:56Z")

</div>

I'm trying to just get started building a node with the instructions here: https://nodered.org/docs/creating-nodes/first-node I'm getting this error trying to run the mocha \_spec file: mocha test/lower-case\_spec.js …

---

## [Node.id in a subflow](https://discourse.nodered.org/t/node-id-in-a-subflow/44320)

<div class="topic-metadata">

**Author:** [@chrisn-au](https://discourse.nodered.org/u/chrisn-au)\
**Replies:** 0\
**Last updated:** [17 April 2021 13:33 UTC](https://discourse.nodered.org/t/node-id-in-a-subflow/44320 "2021-04-17T13:33:51Z")

</div>

Guys, I am looking for a node in a subflow to be able to get information about down stream nodes (outside of the subflow). To do this I am retrieving the node.id of a function node and then attempting to match that wit…

---

## [Add UDP out into function/custom node](https://discourse.nodered.org/t/add-udp-out-into-function-custom-node/44297)

<div class="topic-metadata">

**Author:** [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Replies:** 9\
**Last updated:** [16 April 2021 21:34 UTC](https://discourse.nodered.org/t/add-udp-out-into-function-custom-node/44297 "2021-04-16T21:34:04Z")

</div>

I have created a custom node and would like to incorporate the link out node into it. Is that possible? It's that or somehow add the functions that are performed at the link in to the custom node. My node.js module.e…

---

## [Node with text input not installing](https://discourse.nodered.org/t/node-with-text-input-not-installing/44290)

<div class="topic-metadata">

**Author:** [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Replies:** 6\
**Last updated:** [16 April 2021 17:11 UTC](https://discourse.nodered.org/t/node-with-text-input-not-installing/44290 "2021-04-16T17:11:02Z")

</div>

I'm trying to create a node that simply takes a text input (phone number) and outputs it as msg.number. I can't seem to get the node to show up in Node-Red. It says it installed successfully. I'm a noob so it's quite po…

---

## [How to delete the custom node from sidebar](https://discourse.nodered.org/t/how-to-delete-the-custom-node-from-sidebar/44268)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 4\
**Last updated:** [16 April 2021 11:10 UTC](https://discourse.nodered.org/t/how-to-delete-the-custom-node-from-sidebar/44268 "2021-04-16T11:10:25Z")

</div>

How to delete the custom node from sidebar? I couldnt rename it so I made the new node with same functionallity but with different name.

---

## [Renaming the custom node](https://discourse.nodered.org/t/renaming-the-custom-node/44266)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 1\
**Last updated:** [16 April 2021 09:51 UTC](https://discourse.nodered.org/t/renaming-the-custom-node/44266 "2021-04-16T09:51:17Z")

</div>

Hello, I have created a custom node and gave it a name. I want to change the name now but every time i try to do it gives me back an error that my node is missing. I know how to change the name once i put it in the palle…

---

## [Sharing VSCode custom node debugging configuration](https://discourse.nodered.org/t/sharing-vscode-custom-node-debugging-configuration/44233)

<div class="topic-metadata">

**Author:** [@nileio](https://discourse.nodered.org/u/nileio)\
**Replies:** 0\
**Last updated:** [15 April 2021 14:29 UTC](https://discourse.nodered.org/t/sharing-vscode-custom-node-debugging-configuration/44233 "2021-04-15T14:29:29Z")

</div>

hi everyone, I saw couple of topics in the past for information on debugging custom nodes, and thought I'd share my launch configuration for VSCode.. Please make sure you have the latest version of VSCode. This my need…

---

## [Nvidia Jetson Nano and porting node-red-node-pi-gpio to libgpiod](https://discourse.nodered.org/t/nvidia-jetson-nano-and-porting-node-red-node-pi-gpio-to-libgpiod/43788)

<div class="topic-metadata">

**Author:** [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Replies:** 1\
**Last updated:** [15 April 2021 14:19 UTC](https://discourse.nodered.org/t/nvidia-jetson-nano-and-porting-node-red-node-pi-gpio-to-libgpiod/43788 "2021-04-15T14:19:03Z")

</div>

I was gifted an Nvidia Jetson Nano by the Fedora project to troubleshoot some arm specific packaging issues. Now that that's complete, I have a shiny new toy/tool looking for a problem to solve. I noticed there is no of…

---

## [Ajax fetched JSON data,can't view on console](https://discourse.nodered.org/t/ajax-fetched-json-data-cant-view-on-console/44148)

<div class="topic-metadata">

**Author:** [@sarthak7034](https://discourse.nodered.org/u/sarthak7034)\
**Replies:** 9\
**Last updated:** [15 April 2021 14:10 UTC](https://discourse.nodered.org/t/ajax-fetched-json-data-cant-view-on-console/44148 "2021-04-15T14:10:04Z")

</div>

I am fetching data using $.ajax which comes in JSON format. But I can't view them on nodeRED nor on my console. I am using url link from swagger to test. $.ajax({ type:'GET', …

---

## [Documentation: example flows for contributed nodes](https://discourse.nodered.org/t/documentation-example-flows-for-contributed-nodes/44198)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 5\
**Last updated:** [15 April 2021 08:30 UTC](https://discourse.nodered.org/t/documentation-example-flows-for-contributed-nodes/44198 "2021-04-15T08:30:49Z")

</div>

I like to provide example flows in the package when I publish a node, and I usually include the same example(s) in the README.md file. This has caused some difficulties lately, mainly in keeping the two copies of a flow …

---

## [Nodes for Matrix creator](https://discourse.nodered.org/t/nodes-for-matrix-creator/44007)

<div class="topic-metadata">

**Author:** [@odiezapha1](https://discourse.nodered.org/u/odiezapha1)\
**Replies:** 7\
**Last updated:** [14 April 2021 14:43 UTC](https://discourse.nodered.org/t/nodes-for-matrix-creator/44007 "2021-04-14T14:43:52Z")

</div>

Hi everyone, So I'm pretty decent at coding. I would give myself an honest intermediate level. I've played with Node Red in the past and have built custom nodes for people before. Nothing that was made public. But I've …

---

## [Npm subflow modules](https://discourse.nodered.org/t/npm-subflow-modules/44144)

<div class="topic-metadata">

**Author:** [@Tonna100](https://discourse.nodered.org/u/Tonna100)\
**Replies:** 4\
**Last updated:** [14 April 2021 12:56 UTC](https://discourse.nodered.org/t/npm-subflow-modules/44144 "2021-04-14T12:56:16Z")

</div>

Hi. I've been waiting for this feature for a very long time. )) I downloaded sublow example from here to my project folder. Then I tried to install it - npm install test-subflow-mod. When I try to launch my project I go…

---

## [Deconstructing an object](https://discourse.nodered.org/t/deconstructing-an-object/44143)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 7\
**Last updated:** [14 April 2021 11:35 UTC](https://discourse.nodered.org/t/deconstructing-an-object/44143 "2021-04-14T11:35:42Z")

</div>

How would i make a custom node that recives some { name: "Hello" } and gives back only the name. Like msg.payload.name I tried writing it like that but it gives back undefined

---

## [Storing msg.payload in select tag](https://discourse.nodered.org/t/storing-msg-payload-in-select-tag/44097)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 1\
**Last updated:** [13 April 2021 13:46 UTC](https://discourse.nodered.org/t/storing-msg-payload-in-select-tag/44097 "2021-04-13T13:46:17Z")

</div>

This is my custom websocket node. As you see the msg it outputs is an object { name: datapointname, value: data } Could i somehow create Select tag that has options based on how many msg.payload it recives. Options tex…

---

## [Input type checkbox](https://discourse.nodered.org/t/input-type-checkbox/43511)

<div class="topic-metadata">

**Author:** [@ivexy24](https://discourse.nodered.org/u/ivexy24)\
**Replies:** 28\
**Last updated:** [12 April 2021 14:49 UTC](https://discourse.nodered.org/t/input-type-checkbox/43511 "2021-04-12T14:49:06Z")

</div>

I've created a custom node that handles get request oneditprepare.Does anyone maybe know how to append the results to html file as a \<div class="form-row\>\</div\> .then((data) =\> { data.forEach((item) =\> …

---

## [Entity Home Assistan Node](https://discourse.nodered.org/t/entity-home-assistan-node/44018)

<div class="topic-metadata">

**Author:** [@Mlima](https://discourse.nodered.org/u/Mlima)\
**Replies:** 0\
**Last updated:** [12 April 2021 08:35 UTC](https://discourse.nodered.org/t/entity-home-assistan-node/44018 "2021-04-12T08:35:03Z")

</div>

Hi, I have my Home Assistant installed on a Synology Docker and also Node Red. After installing Node Red everything was ok, I connect to Home Assistant I have got all the entitys but I have a problema, when I had the e…

---

## [Custom node with dynamic properties](https://discourse.nodered.org/t/custom-node-with-dynamic-properties/4844)

<div class="topic-metadata">

**Author:** [@PTS93](https://discourse.nodered.org/u/PTS93)\
**Replies:** 6\
**Last updated:** [12 April 2021 08:22 UTC](https://discourse.nodered.org/t/custom-node-with-dynamic-properties/4844 "2021-04-12T08:22:40Z")

</div>

I want to create a node with a very similar functionality as the switch node (as in user can dynamically add rules) Though I can't find any resources how the switch node actually accomplishes its dynamic properties. Cu…

---

## [Sending POST HTTP-Request in JSON for REST-API](https://discourse.nodered.org/t/sending-post-http-request-in-json-for-rest-api/43830)

<div class="topic-metadata">

**Author:** [@NilsL97](https://discourse.nodered.org/u/NilsL97)\
**Replies:** 5\
**Last updated:** [10 April 2021 19:51 UTC](https://discourse.nodered.org/t/sending-post-http-request-in-json-for-rest-api/43830 "2021-04-10T19:51:41Z")

</div>

Hello Guys, i'm new to the Node-RED Community, and also new with the scripting and logical connecting of Nodes. Hope we are having a nice time together. I'm actually doing an project to get a degree as a state-certifi…

---

## [Node red flow rtd](https://discourse.nodered.org/t/node-red-flow-rtd/43885)

<div class="topic-metadata">

**Author:** [@drtoyis](https://discourse.nodered.org/u/drtoyis)\
**Replies:** 1\
**Last updated:** [8 April 2021 22:17 UTC](https://discourse.nodered.org/t/node-red-flow-rtd/43885 "2021-04-08T22:17:09Z")

</div>

Hi. I would like to access data of an atlas scientific rtd sensor in node red. I have created a flow with exec where i execute the atlas sample script but i cannot get the temperature data, i get a command list. If i ru…

---

## [Node Icon cannot be scaled and always fills the entire area](https://discourse.nodered.org/t/node-icon-cannot-be-scaled-and-always-fills-the-entire-area/43358)

<div class="topic-metadata">

**Author:** [@Kib](https://discourse.nodered.org/u/Kib)\
**Replies:** 12\
**Last updated:** [8 April 2021 14:36 UTC](https://discourse.nodered.org/t/node-icon-cannot-be-scaled-and-always-fills-the-entire-area/43358 "2021-04-08T14:36:51Z")

</div>

Hello guys, I am triying to use an .svg in the icons directory of my custom node. Nodered finds and displays the svg correctly but the icon always seems to fill the entire area. the file being an .svg isnt affected by s…

---

## [Filter the node in real time](https://discourse.nodered.org/t/filter-the-node-in-real-time/43845)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 17\
**Last updated:** [8 April 2021 10:25 UTC](https://discourse.nodered.org/t/filter-the-node-in-real-time/43845 "2021-04-08T10:25:47Z")

</div>

const filter = () =\> { // Filters options in the select tag. let optionEl = options\[i\]; let txt = selectTag.options\[i\].text.toLowerCase(); if (txt.indexOf(…

---

## [Light weight cipher for payload protection](https://discourse.nodered.org/t/light-weight-cipher-for-payload-protection/43626)

<div class="topic-metadata">

**Author:** [@sreelakshmi25996](https://discourse.nodered.org/u/sreelakshmi25996)\
**Replies:** 25\
**Last updated:** [8 April 2021 06:58 UTC](https://discourse.nodered.org/t/light-weight-cipher-for-payload-protection/43626 "2021-04-08T06:58:29Z")

</div>

Hello! Is it possible to create a lightweight cipher node, for example, a present cipher or a speck cipher in node-red for payload protection?

---

## [Getting "TypeError: global.get is not a function" when trying to use an NPM package](https://discourse.nodered.org/t/getting-typeerror-global-get-is-not-a-function-when-trying-to-use-an-npm-package/43834)

<div class="topic-metadata">

**Author:** [@vegabook](https://discourse.nodered.org/u/vegabook)\
**Replies:** 5\
**Last updated:** [7 April 2021 23:41 UTC](https://discourse.nodered.org/t/getting-typeerror-global-get-is-not-a-function-when-trying-to-use-an-npm-package/43834 "2021-04-07T23:41:41Z")

</div>

I'm trying to use the phoenix-channels package on npm inside a node that I'm creating. I'm following the instructions. I've got it working fine in nodejs on its own. const { Socket } = require('phoenix-channels') let s…

---

## [Filter Options Node](https://discourse.nodered.org/t/filter-options-node/43803)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 3\
**Last updated:** [7 April 2021 12:31 UTC](https://discourse.nodered.org/t/filter-options-node/43803 "2021-04-07T12:31:53Z")

</div>

Any idea why this code doesnt work? Until the commented part everything works. I get all the data from the api but cant filter it. fetch(url) .then((res) =\> res.json()) .then((data) =\> { …

---

## [Custom socket node](https://discourse.nodered.org/t/custom-socket-node/43553)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 20\
**Last updated:** [7 April 2021 10:43 UTC](https://discourse.nodered.org/t/custom-socket-node/43553 "2021-04-07T10:43:00Z")

</div>

How do I create code to listen to websocket server. For example: ws://example.com/webEvent I dont know how to create web socket or even how to listen to it . Any help would be much appriciated

---

## [Custom Dropdown Node](https://discourse.nodered.org/t/custom-dropdown-node/43800)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 2\
**Last updated:** [7 April 2021 09:28 UTC](https://discourse.nodered.org/t/custom-dropdown-node/43800 "2021-04-07T09:28:45Z")

</div>

I created a custom dropdown node that gets the data from some API and stores it in the dropdown menu. If i select some of the option it all works fine.But then when i open the node the second time i dont know what i se…

---

## [Websocket listen custom node](https://discourse.nodered.org/t/websocket-listen-custom-node/43551)

<div class="topic-metadata">

**Author:** [@jake123](https://discourse.nodered.org/u/jake123)\
**Replies:** 2\
**Last updated:** [6 April 2021 06:47 UTC](https://discourse.nodered.org/t/websocket-listen-custom-node/43551 "2021-04-06T06:47:22Z")

</div>

Hello. I would like to know how could i create a custom node which listenes to websocket server and outputs data that it listened to.For example I send some data to websocket like : "SUBSCRIBE ......path-to-socket....". …

---

## [Editor select options from server side data](https://discourse.nodered.org/t/editor-select-options-from-server-side-data/43673)

<div class="topic-metadata">

**Author:** [@kolban](https://discourse.nodered.org/u/kolban)\
**Replies:** 3\
**Last updated:** [5 April 2021 23:00 UTC](https://discourse.nodered.org/t/editor-select-options-from-server-side-data/43673 "2021-04-05T23:00:02Z")

</div>

I have a custom node where I have a property that I want a user to be able to select from a set of dynamically built values. Unfortunately, that list of values itself comes from the result of making a REST call which th…

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

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