# Developing Nodes

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

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

**Page:** 23

---

## [Dynamic list in node configuration](https://discourse.nodered.org/t/dynamic-list-in-node-configuration/57877)

<div class="topic-metadata">

**Author:** [@wz2b](https://discourse.nodered.org/u/wz2b)\
**Replies:** 6\
**Last updated:** [7 February 2022 07:30 UTC](https://discourse.nodered.org/t/dynamic-list-in-node-configuration/57877 "2022-02-07T07:30:50Z")

</div>

I wrote a custom node that generates a JSON payload. I would like to have the node configuration have an 'extra tags' list. The first version I wrote lets the user specify these extra tags as a json object: { "extraTa…

---

## [How to simply write/read signed and unsigned values](https://discourse.nodered.org/t/how-to-simply-write-read-signed-and-unsigned-values/57883)

<div class="topic-metadata">

**Author:** [@Toni16](https://discourse.nodered.org/u/Toni16)\
**Replies:** 1\
**Last updated:** [6 February 2022 18:30 UTC](https://discourse.nodered.org/t/how-to-simply-write-read-signed-and-unsigned-values/57883 "2022-02-06T18:30:09Z")

</div>

Hello I have a ventilation system which is using RTU modbus to communicate. Some of values are signed and others unsigned. I can read unsigned values, default config of Modbus-contrib. I am not sure that it's working …

---

## [Node-red-contrib-context-project](https://discourse.nodered.org/t/node-red-contrib-context-project/55064)

<div class="topic-metadata">

**Author:** [@mw75](https://discourse.nodered.org/u/mw75)\
**Replies:** 7\
**Last updated:** [6 February 2022 00:06 UTC](https://discourse.nodered.org/t/node-red-contrib-context-project/55064 "2022-02-06T00:06:52Z")

</div>

I would like to create node-red-contrib-context-project that behaves just like @node-red/runtime/lib/nodes/context/localfilesystem.js but uses the current project folder as dir option. I would appreciate feedback on tha…

---

## [Requiring a module from the modules used by Node RED](https://discourse.nodered.org/t/requiring-a-module-from-the-modules-used-by-node-red/57606)

<div class="topic-metadata">

**Author:** [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Replies:** 9\
**Last updated:** [4 February 2022 20:18 UTC](https://discourse.nodered.org/t/requiring-a-module-from-the-modules-used-by-node-red/57606 "2022-02-04T20:18:18Z")

</div>

Right! here is the thing. Now that Scorecards are a being displayed, I want to reduce my dependencies in package.json I am sat at 8 - and one or 2 of them are not easily removable. 1 instance is express I have a need…

---

## [Question regarding \_msgid](https://discourse.nodered.org/t/question-regarding-msgid/57781)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 2\
**Last updated:** [4 February 2022 19:58 UTC](https://discourse.nodered.org/t/question-regarding-msgid/57781 "2022-02-04T19:58:46Z")

</div>

Never noticed this before but would like to know whether it is the intended output. When I use send in my node, if I send multiple messages as in send(\[{payload:1},{payload:2},{payload:3}\] - All of the sent messages hav…

---

## [How can I split a MQTT string](https://discourse.nodered.org/t/how-can-i-split-a-mqtt-string/57258)

<div class="topic-metadata">

**Author:** [@puba](https://discourse.nodered.org/u/puba)\
**Replies:** 6\
**Last updated:** [3 February 2022 11:53 UTC](https://discourse.nodered.org/t/how-can-i-split-a-mqtt-string/57258 "2022-02-03T11:53:47Z")

</div>

How can I splitt a string, that I recive from a MQTT sendor. I need the the sensor name and the temperature. "( "Time":"2022-01-25T20:02:42","DS18B20-1":{"Id":"03168C0093FF","Temperature":47.7},"DS18B20-2":{"Id":"0316…

---

## [Arrow syntax in RED.nodes.registerType](https://discourse.nodered.org/t/arrow-syntax-in-red-nodes-registertype/57673)

<div class="topic-metadata">

**Author:** [@davec1001](https://discourse.nodered.org/u/davec1001)\
**Replies:** 2\
**Last updated:** [2 February 2022 18:13 UTC](https://discourse.nodered.org/t/arrow-syntax-in-red-nodes-registertype/57673 "2022-02-02T18:13:47Z")

</div>

I just tried to replace label: function() { return this.name; }, with label: () =\> this.name, and it didn't work. Is this expected? Obviously not important, just wondering if I am doing something silly

---

## [Change node to function node (newbie problem)](https://discourse.nodered.org/t/change-node-to-function-node-newbie-problem/57607)

<div class="topic-metadata">

**Author:** [@thierry-rhone](https://discourse.nodered.org/u/thierry-rhone)\
**Replies:** 4\
**Last updated:** [1 February 2022 22:40 UTC](https://discourse.nodered.org/t/change-node-to-function-node-newbie-problem/57607 "2022-02-01T22:40:04Z")

</div>

Hi, I would like to do the same thing as this node in a function node and I can't do it. can you help me Thanks

---

## [Node-RED node installed as dependency requires restart](https://discourse.nodered.org/t/node-red-node-installed-as-dependency-requires-restart/56647)

<div class="topic-metadata">

**Author:** [@sverre](https://discourse.nodered.org/u/sverre)\
**Replies:** 5\
**Last updated:** [1 February 2022 16:02 UTC](https://discourse.nodered.org/t/node-red-node-installed-as-dependency-requires-restart/56647 "2022-02-01T16:02:14Z")

</div>

I would like to install common Node-RED "support nodes" as a dependency of other Node-RED nodes I'm developing. I've confirmed that a dependency node is installed when installing the dependent node via the palette manage…

---

## [How to use credential data with node by node-red-node-test-helper function?](https://discourse.nodered.org/t/how-to-use-credential-data-with-node-by-node-red-node-test-helper-function/57575)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 0\
**Last updated:** [1 February 2022 00:52 UTC](https://discourse.nodered.org/t/how-to-use-credential-data-with-node-by-node-red-node-test-helper-function/57575 "2022-02-01T00:52:32Z")

</div>

Hi all, I use node-red-node-test-helper for unit testing by creating Node. I try to send credential data into test function. Below code is my test function it("error token", (done) =\> { const flow = \[ …

---

## [Async getting list for node config](https://discourse.nodered.org/t/async-getting-list-for-node-config/57506)

<div class="topic-metadata">

**Author:** [@thib3113](https://discourse.nodered.org/u/thib3113)\
**Replies:** 4\
**Last updated:** [30 January 2022 18:36 UTC](https://discourse.nodered.org/t/async-getting-list-for-node-config/57506 "2022-01-30T18:36:27Z")

</div>

Hello, I'm pretty new with the developpement of nodes, but I didnt found my answer . In fact, I'm searching a way to fill a config list, with dynamics items, coming from my node . So, I'm searching a way to contact my…

---

## [Http request in a function node](https://discourse.nodered.org/t/http-request-in-a-function-node/57475)

<div class="topic-metadata">

**Author:** [@Rollem1](https://discourse.nodered.org/u/Rollem1)\
**Replies:** 0\
**Last updated:** [30 January 2022 00:11 UTC](https://discourse.nodered.org/t/http-request-in-a-function-node/57475 "2022-01-30T00:11:18Z")

</div>

Hi, Apologies for the noob question if this is a simple one but I've tried a number of things and searched for something similar but I'm drawing a blank. I am successfully accessing an online database through its API u…

---

## [Any way to add a keyboard entry to ACE/Monaco editor?](https://discourse.nodered.org/t/any-way-to-add-a-keyboard-entry-to-ace-monaco-editor/57463)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 2\
**Last updated:** [29 January 2022 16:06 UTC](https://discourse.nodered.org/t/any-way-to-add-a-keyboard-entry-to-ace-monaco-editor/57463 "2022-01-29T16:06:23Z")

</div>

Hi all, I keep triggering my muscle memory for save when I'm using the file editor in uibuilder :older\_adult: I doubt I'm the only person. So I'd like to add an override for ctrl-s when focused on that element. Is ther…

---

## [HTML \<select\> tag don't send option payload selection](https://discourse.nodered.org/t/html-select-tag-dont-send-option-payload-selection/57449)

<div class="topic-metadata">

**Author:** [@NicoloToscani](https://discourse.nodered.org/u/NicoloToscani)\
**Replies:** 2\
**Last updated:** [29 January 2022 10:16 UTC](https://discourse.nodered.org/t/html-select-tag-dont-send-option-payload-selection/57449 "2022-01-29T10:16:30Z")

</div>

Hi, I need to select actual option value in its select tag. Two different tags are enable based on previous selection (node-input-device). If I select "device1" in Device selection I can see the corrects "node-input-d…

---

## [How can I add credential into my test function (Node-red-node-test-helper)?](https://discourse.nodered.org/t/how-can-i-add-credential-into-my-test-function-node-red-node-test-helper/57429)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 0\
**Last updated:** [28 January 2022 21:51 UTC](https://discourse.nodered.org/t/how-can-i-add-credential-into-my-test-function-node-red-node-test-helper/57429 "2022-01-28T21:51:05Z")

</div>

Hi all, First, I have a created node and it use credential value. Normally, the credential is from input from screen. Now I want to test, if I use invalid token with my request to destination server. It should return …

---

## [How can I solve problem when run test my created node, 'mocha' is not recognized as an internal or external command, operable program or batch file](https://discourse.nodered.org/t/how-can-i-solve-problem-when-run-test-my-created-node-mocha-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/57374)

<div class="topic-metadata">

**Author:** [@studiobox](https://discourse.nodered.org/u/studiobox)\
**Replies:** 4\
**Last updated:** [28 January 2022 16:38 UTC](https://discourse.nodered.org/t/how-can-i-solve-problem-when-run-test-my-created-node-mocha-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/57374 "2022-01-28T16:38:57Z")

</div>

Hi all, I have some problem about unit test my created node. After I follow help for adding test into my created node. node-red-node-test-helper - npm (npmjs.com) Then, I run command "npm test", the error has occur. …

---

## [Possibility to dynamically update node properpty Window?](https://discourse.nodered.org/t/possibility-to-dynamically-update-node-properpty-window/57399)

<div class="topic-metadata">

**Author:** [@hussain044](https://discourse.nodered.org/u/hussain044)\
**Replies:** 3\
**Last updated:** [28 January 2022 13:22 UTC](https://discourse.nodered.org/t/possibility-to-dynamically-update-node-properpty-window/57399 "2022-01-28T13:22:15Z")

</div>

Hello Node-RED community! I want to know if it is possible to update the property window of the node by connecting to a server in the .html file of the node and input this information to the properties window. Example: …

---

## [Update a flow using http request](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 2\
**Last updated:** [28 January 2022 01:26 UTC](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375 "2022-01-28T01:26:47Z")

</div>

Dear all, I want to update a flow using the http request node via nodered's API admin. Is this possible? I found some documentation but I am having difficulty to understand it. As per doc, I can use the PUT/flow/:id …

---

## [How do i update values from sidebar tab into it's corresponding pallet](https://discourse.nodered.org/t/how-do-i-update-values-from-sidebar-tab-into-its-corresponding-pallet/57188)

<div class="topic-metadata">

**Author:** [@Monarch](https://discourse.nodered.org/u/Monarch)\
**Replies:** 3\
**Last updated:** [25 January 2022 09:50 UTC](https://discourse.nodered.org/t/how-do-i-update-values-from-sidebar-tab-into-its-corresponding-pallet/57188 "2022-01-25T09:50:40Z")

</div>

I have made a side bar tab which have same fields as that of its corresponding pallet. What i want to do is i want to make changes to fields under sidebar tab and same would be reflected into its corresponding pallet. …

---

## [A bit of background on NR, Dave and Nick ? - TIme permitting](https://discourse.nodered.org/t/a-bit-of-background-on-nr-dave-and-nick-time-permitting/57075)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 7\
**Last updated:** [25 January 2022 05:42 UTC](https://discourse.nodered.org/t/a-bit-of-background-on-nr-dave-and-nick-time-permitting/57075 "2022-01-25T05:42:45Z")

</div>

Hey Guys, We all probably know snippets about the NR story - where it came from etc, any chance of getting a one pager on the whole thing as well as where Nick and Dave are professionally at the moment ? i.e Nick appea…

---

## [Error trying to add new node to flows library: "no stable"](https://discourse.nodered.org/t/error-trying-to-add-new-node-to-flows-library-no-stable/57163)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 4\
**Last updated:** [24 January 2022 22:28 UTC](https://discourse.nodered.org/t/error-trying-to-add-new-node-to-flows-library-no-stable/57163 "2022-01-24T22:28:43Z")

</div>

Hi, can someone please explain how to get past this error? I've published the first release of @totallyinformation/node-red-contrib-drayton-wiser - npm (npmjs.com) to npm successfully but I can't add it to flows.

---

## [Node-red Keeps rebooting itself](https://discourse.nodered.org/t/node-red-keeps-rebooting-itself/56590)

<div class="topic-metadata">

**Author:** [@myozone](https://discourse.nodered.org/u/myozone)\
**Replies:** 11\
**Last updated:** [23 January 2022 17:24 UTC](https://discourse.nodered.org/t/node-red-keeps-rebooting-itself/56590 "2022-01-23T17:24:54Z")

</div>

I've just discover my node-red keeps rebooting it self. Obviously it's to do with the LG node but how do I deactivate / delete it the node without the gui ? - /usr/lib/node\_modules/node-red/red.js 13 Jan 13:25:02 - \[w…

---

## [Accessing config node's credentials in Editor](https://discourse.nodered.org/t/accessing-config-nodes-credentials-in-editor/57069)

<div class="topic-metadata">

**Author:** [@ihrigb](https://discourse.nodered.org/u/ihrigb)\
**Replies:** 0\
**Last updated:** [22 January 2022 22:24 UTC](https://discourse.nodered.org/t/accessing-config-nodes-credentials-in-editor/57069 "2022-01-22T22:24:54Z")

</div>

Hi, I got a config node that has a few normal fields an some credentials: category: 'config', defaults: { name: {value: ''}, host: {required: true}, scheme: {value: '…

---

## [C++ standalone backend application & Node-red - Best Architecture](https://discourse.nodered.org/t/c-standalone-backend-application-node-red-best-architecture/56660)

<div class="topic-metadata">

**Author:** [@JT3D](https://discourse.nodered.org/u/JT3D)\
**Replies:** 10\
**Last updated:** [19 January 2022 09:00 UTC](https://discourse.nodered.org/t/c-standalone-backend-application-node-red-best-architecture/56660 "2022-01-19T09:00:03Z")

</div>

Hi all, Just looking for people's opinion on best practice for the following situation I have a hardware device (laser scanner) that only has a c++ interface to interact and control it. The plan would be to create a c…

---

## [Creating custom node using nodejs repo (Govee)](https://discourse.nodered.org/t/creating-custom-node-using-nodejs-repo-govee/56746)

<div class="topic-metadata">

**Author:** [@m661](https://discourse.nodered.org/u/m661)\
**Replies:** 6\
**Last updated:** [16 January 2022 22:27 UTC](https://discourse.nodered.org/t/creating-custom-node-using-nodejs-repo-govee/56746 "2022-01-16T22:27:22Z")

</div>

Hi, Been playing with Node-Red for a couple of months, working great so far. I would like to use \[node-govee-led - npm (npmjs.com)\] node-govee-led - npm in Node-Red, not sure How to do this any advice. Try to manuall…

---

## [Documentation for RED.library?](https://discourse.nodered.org/t/documentation-for-red-library/55609)

<div class="topic-metadata">

**Author:** [@Fredrik](https://discourse.nodered.org/u/Fredrik)\
**Replies:** 8\
**Last updated:** [13 January 2022 04:17 UTC](https://discourse.nodered.org/t/documentation-for-red-library/55609 "2022-01-13T04:17:19Z")

</div>

I stumbled upon RED.library, and would love to use it for ingress and egress functions in my node-red-contrib-hal2 node, but I can't figure out how it works. Is there some documentation or other examples than the templa…

---

## [How to use userDir](https://discourse.nodered.org/t/how-to-use-userdir/56509)

<div class="topic-metadata">

**Author:** [@borpin](https://discourse.nodered.org/u/borpin)\
**Replies:** 9\
**Last updated:** [12 January 2022 22:06 UTC](https://discourse.nodered.org/t/how-to-use-userdir/56509 "2022-01-12T22:06:04Z")

</div>

I am going to expose my lack of understanding of the Javascript model here. I am trying to work on updating the fitbit node. I have discovered that where it is saving the credentials file, is not appropriate for using t…

---

## [Create nodes to interpret keypad input](https://discourse.nodered.org/t/create-nodes-to-interpret-keypad-input/56489)

<div class="topic-metadata">

**Author:** [@daknightuk](https://discourse.nodered.org/u/daknightuk)\
**Replies:** 14\
**Last updated:** [12 January 2022 13:15 UTC](https://discourse.nodered.org/t/create-nodes-to-interpret-keypad-input/56489 "2022-01-12T13:15:33Z")

</div>

I have an ESP8266 with remote control and ESP-Home is programmed to recognise numbers 0-9 in HA What I was looking to do was to pick up each number press state from off to on convert the on action to a number which I …

---

## [Stuck using config node multiple times](https://discourse.nodered.org/t/stuck-using-config-node-multiple-times/56477)

<div class="topic-metadata">

**Author:** [@danube](https://discourse.nodered.org/u/danube)\
**Replies:** 3\
**Last updated:** [12 January 2022 07:31 UTC](https://discourse.nodered.org/t/stuck-using-config-node-multiple-times/56477 "2022-01-12T07:31:49Z")

</div>

Hey there! I'm stuck understanding one simple mechanism. Please enlighten me. I use a config node and as far as I learned from the docs, I get the content with RED.nodes.getNode. So I do: Let me describe the situation …

---

## [String compare with state home assistant](https://discourse.nodered.org/t/string-compare-with-state-home-assistant/56366)

<div class="topic-metadata">

**Author:** [@Whastie](https://discourse.nodered.org/u/Whastie)\
**Replies:** 8\
**Last updated:** [10 January 2022 11:54 UTC](https://discourse.nodered.org/t/string-compare-with-state-home-assistant/56366 "2022-01-10T11:54:49Z")

</div>

Hello Can someone help me see why the case that compares these strings does not work for me? Thank you

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

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