# Developing Nodes

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

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

**Page:** 18

---

## ["oneditprepare" manipulation of a subflow packed as a module?](https://discourse.nodered.org/t/oneditprepare-manipulation-of-a-subflow-packed-as-a-module/69585)

<div class="topic-metadata">

**Author:** [@CustomNode](https://discourse.nodered.org/u/CustomNode)\
**Replies:** 7\
**Last updated:** [25 October 2022 21:40 UTC](https://discourse.nodered.org/t/oneditprepare-manipulation-of-a-subflow-packed-as-a-module/69585 "2022-10-25T21:40:23Z")

</div>

Good evening, I created a subflow and packed it into a module which is registered as described here (Packaging a Subflow as a module : Node-RED). So far so good. This is working fine and the subflow is displayed as nod…

---

## [Flow does not see config](https://discourse.nodered.org/t/flow-does-not-see-config/69529)

<div class="topic-metadata">

**Author:** [@AntekAiR](https://discourse.nodered.org/u/AntekAiR)\
**Replies:** 4\
**Last updated:** [25 October 2022 11:22 UTC](https://discourse.nodered.org/t/flow-does-not-see-config/69529 "2022-10-25T11:22:54Z")

</div>

Hi, Does anyone can give me some hint why my library is not correctly seen? I have normal nodes and 1 config node for them. Problem is that Node-RED gives me some error after deploying config. This is how it looks like…

---

## [Is it possible to change config node properties from within a flow?](https://discourse.nodered.org/t/is-it-possible-to-change-config-node-properties-from-within-a-flow/69503)

<div class="topic-metadata">

**Author:** [@windkh](https://discourse.nodered.org/u/windkh)\
**Replies:** 0\
**Last updated:** [24 October 2022 21:04 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-config-node-properties-from-within-a-flow/69503 "2022-10-24T21:04:19Z")

</div>

Hi all, I would like to change a property of the config node during runtime. The idea is that the node can be reconfigured during runtime and the values should be persisted. Let's take the following use-case: I want t…

---

## [Domoticz - nora](https://discourse.nodered.org/t/domoticz-nora/69368)

<div class="topic-metadata">

**Author:** [@henrybcn](https://discourse.nodered.org/u/henrybcn)\
**Replies:** 1\
**Last updated:** [21 October 2022 13:59 UTC](https://discourse.nodered.org/t/domoticz-nora/69368 "2022-10-21T13:59:31Z")

</div>

I just started to use Node-RED this week. I used IFTTT for years to turn on/off lights through my google mini. As they do not support it anymore, this is the easiest tool I found! I am able to configure everything to tu…

---

## [How to pass the token to the \[http in\] node?](https://discourse.nodered.org/t/how-to-pass-the-token-to-the-http-in-node/69293)

<div class="topic-metadata">

**Author:** [@stephenwang1011](https://discourse.nodered.org/u/stephenwang1011)\
**Replies:** 6\
**Last updated:** [21 October 2022 01:23 UTC](https://discourse.nodered.org/t/how-to-pass-the-token-to-the-http-in-node/69293 "2022-10-21T01:23:03Z")

</div>

Hi team, I set the adminAuth adminAuth: { type: "credentials", sessionExpiryTime: 7200, users: \[ { username: "ne323nqa", password: "$2b$08$1aRZsE3232j0wg73…

---

## [Send data to MSSQL using HTTP request POST](https://discourse.nodered.org/t/send-data-to-mssql-using-http-request-post/69310)

<div class="topic-metadata">

**Author:** [@Abdfran](https://discourse.nodered.org/u/Abdfran)\
**Replies:** 1\
**Last updated:** [20 October 2022 18:03 UTC](https://discourse.nodered.org/t/send-data-to-mssql-using-http-request-post/69310 "2022-10-20T18:03:28Z")

</div>

Hello, I'm using the node red software that is turning in a Gateway "Multitech" to develop my project, i'm using a lora node to get data from a transmitter after that i'm looking to send this data to MS SQL that is turn…

---

## [Code completion and error flagging on a global variable](https://discourse.nodered.org/t/code-completion-and-error-flagging-on-a-global-variable/69260)

<div class="topic-metadata">

**Author:** [@stefaanv](https://discourse.nodered.org/u/stefaanv)\
**Replies:** 4\
**Last updated:** [20 October 2022 08:22 UTC](https://discourse.nodered.org/t/code-completion-and-error-flagging-on-a-global-variable/69260 "2022-10-20T08:22:19Z")

</div>

Is there a way to define a global variable and get code completion on it's keys in the function nodes code editors ? Like typescript has string literals and will complain when you misspell one of the constants. I find …

---

## [FYI - Fetch API in NodeJs 17](https://discourse.nodered.org/t/fyi-fetch-api-in-nodejs-17/69025)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 4\
**Last updated:** [18 October 2022 16:29 UTC](https://discourse.nodered.org/t/fyi-fetch-api-in-nodejs-17/69025 "2022-10-18T16:29:14Z")

</div>

Hi folks, This is not a question, but just something I thought that might be of interest to some developers in this community. Some time ago the Http-Request node has been refactored completely, because it was build on…

---

## [Node-RED package Subflow module edit or view](https://discourse.nodered.org/t/node-red-package-subflow-module-edit-or-view/68383)

<div class="topic-metadata">

**Author:** [@Dikshitha](https://discourse.nodered.org/u/Dikshitha)\
**Replies:** 13\
**Last updated:** [17 October 2022 09:13 UTC](https://discourse.nodered.org/t/node-red-package-subflow-module-edit-or-view/68383 "2022-10-17T09:13:13Z")

</div>

How to edit or view the subflow, packaged as module and imported into flows. Currently unable to edit the subflow which is imported as package module

---

## [Multiple conditions](https://discourse.nodered.org/t/multiple-conditions/69040)

<div class="topic-metadata">

**Author:** [@hmadsen](https://discourse.nodered.org/u/hmadsen)\
**Replies:** 0\
**Last updated:** [14 October 2022 19:31 UTC](https://discourse.nodered.org/t/multiple-conditions/69040 "2022-10-14T19:31:43Z")

</div>

So i have a solar system, and i made a simple node where, if the sensor "solar surplus" which shows how much more i produce than the house uses, is above 200 Watts, it turns on, and if it goes below, it turns off. This i…

---

## [Read data of a Sonoff SNZB-02 with a Sonoff Zigbee USB Dongle Plus](https://discourse.nodered.org/t/read-data-of-a-sonoff-snzb-02-with-a-sonoff-zigbee-usb-dongle-plus/68844)

<div class="topic-metadata">

**Author:** [@holger22](https://discourse.nodered.org/u/holger22)\
**Replies:** 3\
**Last updated:** [13 October 2022 05:59 UTC](https://discourse.nodered.org/t/read-data-of-a-sonoff-snzb-02-with-a-sonoff-zigbee-usb-dongle-plus/68844 "2022-10-13T05:59:54Z")

</div>

Hello, I need some help. I would like to read and evaluate the data of a Sonoff SNZB-02 with a Sonoff Zigbee USB Dongle Plus. Node-red-contrib-zigbee is installed and the devices have been detected. I created a very …

---

## [Select multiple config nodes](https://discourse.nodered.org/t/select-multiple-config-nodes/68930)

<div class="topic-metadata">

**Author:** [@SkyMound](https://discourse.nodered.org/u/SkyMound)\
**Replies:** 4\
**Last updated:** [12 October 2022 14:13 UTC](https://discourse.nodered.org/t/select-multiple-config-nodes/68930 "2022-10-12T14:13:06Z")

</div>

Hello, i would like to know if there is a way to select multiple config nodes. Something like the attribute multiple in a \<select\> tag.

---

## [Remove header from gps object data](https://discourse.nodered.org/t/remove-header-from-gps-object-data/68688)

<div class="topic-metadata">

**Author:** [@SplitSecComp](https://discourse.nodered.org/u/SplitSecComp)\
**Replies:** 10\
**Last updated:** [8 October 2022 12:58 UTC](https://discourse.nodered.org/t/remove-header-from-gps-object-data/68688 "2022-10-08T12:58:10Z")

</div>

Hi. I receive data from a gps and want to write it to a sql database. How do i get rid of the longitude, latitude, altitude, accuracy, provider etc in the object data. I only want to write the actual values to sql. The…

---

## [Default parameters and Typescript](https://discourse.nodered.org/t/default-parameters-and-typescript/68599)

<div class="topic-metadata">

**Author:** [@AntekAiR](https://discourse.nodered.org/u/AntekAiR)\
**Replies:** 2\
**Last updated:** [6 October 2022 09:24 UTC](https://discourse.nodered.org/t/default-parameters-and-typescript/68599 "2022-10-06T09:24:53Z")

</div>

Hi, I am trying to make node-red library with TypeScript. Problem is that I cannot set required server in default paramteres. With javascript and html a lot of libraries do it. Now in my code I have " defaults: { …

---

## [How to use Bluetooth function with making custom node?](https://discourse.nodered.org/t/how-to-use-bluetooth-function-with-making-custom-node/68277)

<div class="topic-metadata">

**Author:** [@choiprin0310](https://discourse.nodered.org/u/choiprin0310)\
**Replies:** 4\
**Last updated:** [3 October 2022 05:21 UTC](https://discourse.nodered.org/t/how-to-use-bluetooth-function-with-making-custom-node/68277 "2022-10-03T05:21:28Z")

</div>

Hi! I'm making custom node I'm trying to make custom node with Bluetooth technology. However, I don't know how to use BLE things. I have no idea. In other case like Ionic app framework or etc, we usually use library…

---

## [Node for GPT-3 Open AI](https://discourse.nodered.org/t/node-for-gpt-3-open-ai/67759)

<div class="topic-metadata">

**Author:** [@Triark](https://discourse.nodered.org/u/Triark)\
**Replies:** 4\
**Last updated:** [2 October 2022 22:13 UTC](https://discourse.nodered.org/t/node-for-gpt-3-open-ai/67759 "2022-10-02T22:13:33Z")

</div>

Hello everyone, I am trying to use Open AI on Node Red: I have not found any available Node. I have seen that OpenAI has an official Node.js library, and Python also: https://beta.openai.com/docs/api-reference/introd…

---

## [The node that i created is' not working same at local and deployed environment](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436)

<div class="topic-metadata">

**Author:** [@hero](https://discourse.nodered.org/u/hero)\
**Replies:** 3\
**Last updated:** [2 October 2022 03:34 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436 "2022-10-02T03:34:34Z")

</div>

hello i'm creating object-detection-node and i checked its work well at local environment so i moved node to deploy environment for check but the display for parameter setting of the node was different.... and that mak…

---

## [Config node has no properties on the server-side](https://discourse.nodered.org/t/config-node-has-no-properties-on-the-server-side/68404)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 3\
**Last updated:** [30 September 2022 07:07 UTC](https://discourse.nodered.org/t/config-node-has-no-properties-on-the-server-side/68404 "2022-09-30T07:07:19Z")

</div>

Hi folks, Have been implemented quite a number of config nodes in the past withouth problems, but now it fails. Must be something stupid, but I don't see what I am doing wrong. So it would be nice if somebody with a f…

---

## [Display global context in the edit dialog of a custom node](https://discourse.nodered.org/t/display-global-context-in-the-edit-dialog-of-a-custom-node/68378)

<div class="topic-metadata">

**Author:** [@SkyMound](https://discourse.nodered.org/u/SkyMound)\
**Replies:** 5\
**Last updated:** [29 September 2022 13:14 UTC](https://discourse.nodered.org/t/display-global-context-in-the-edit-dialog-of-a-custom-node/68378 "2022-09-29T13:14:44Z")

</div>

Hello, i'm stuck on something. When editing a node in the edit dialog, i want the "user" to be able to select an item from a list stored in the global context. I already create an http endpoint, then when we open the e…

---

## [Http request to mqtt doesn't pass the content? manually injecton works!](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197)

<div class="topic-metadata">

**Author:** [@themed00](https://discourse.nodered.org/u/themed00)\
**Replies:** 3\
**Last updated:** [25 September 2022 16:39 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197 "2022-09-25T16:39:46Z")

</div>

Hey node-red´ers A esp32 with an OLED sends every 10 sec to a MQTT Topic a message. Than my website generates data and makes a JSON. This json should send to MQTT OUT . The part at the bottom works. So my ESP are g…

---

## [Creating a node from a subflow](https://discourse.nodered.org/t/creating-a-node-from-a-subflow/68195)

<div class="topic-metadata">

**Author:** [@carflomi](https://discourse.nodered.org/u/carflomi)\
**Replies:** 0\
**Last updated:** [25 September 2022 15:13 UTC](https://discourse.nodered.org/t/creating-a-node-from-a-subflow/68195 "2022-09-25T15:13:17Z")

</div>

Hello. I would like to create a node from a subflow. I have seen that there are manual instructions to do this ( https://nodered.org/docs/creating-nodes/subflow-modules), but honestly I don't do things right. I have a…

---

## [Connection to HTTPS Server](https://discourse.nodered.org/t/connection-to-https-server/68089)

<div class="topic-metadata">

**Author:** [@andavin](https://discourse.nodered.org/u/andavin)\
**Replies:** 0\
**Last updated:** [22 September 2022 18:14 UTC](https://discourse.nodered.org/t/connection-to-https-server/68089 "2022-09-22T18:14:46Z")

</div>

I'm attempting to run an HTTPS request to an integrated server using a self-signed certificate within a docker compose environment. The http request node is to https://container\_name/api/v2/. Enable secure (SSL/TLS) co…

---

## [How can i initialize a variable in JS file with msg.payload or context.flow() variable?](https://discourse.nodered.org/t/how-can-i-initialize-a-variable-in-js-file-with-msg-payload-or-context-flow-variable/68084)

<div class="topic-metadata">

**Author:** [@hero](https://discourse.nodered.org/u/hero)\
**Replies:** 3\
**Last updated:** [22 September 2022 18:56 UTC](https://discourse.nodered.org/t/how-can-i-initialize-a-variable-in-js-file-with-msg-payload-or-context-flow-variable/68084 "2022-09-22T18:56:30Z")

</div>

hi i want to use flow variable or msg.payload variable which is array to initialize a variable in JS file i used this.context().flow.get("name") but, it didn't work because the execution of that line is earlier than in…

---

## [Is there has any way to make node-html quickly？](https://discourse.nodered.org/t/is-there-has-any-way-to-make-node-html-quickly/68006)

<div class="topic-metadata">

**Author:** [@Nash-x9](https://discourse.nodered.org/u/Nash-x9)\
**Replies:** 4\
**Last updated:** [22 September 2022 01:42 UTC](https://discourse.nodered.org/t/is-there-has-any-way-to-make-node-html-quickly/68006 "2022-09-22T01:42:55Z")

</div>

Thanks for Node-red team first. I'm new here, and trying to find some way to create node's ui quickly and simple. DashBoard and UIbuilder are useful, but they are better suited for making individual businesses or produ…

---

## [Using with openapi generated code in multiple nodes](https://discourse.nodered.org/t/using-with-openapi-generated-code-in-multiple-nodes/67969)

<div class="topic-metadata">

**Author:** [@Flatric](https://discourse.nodered.org/u/Flatric)\
**Replies:** 7\
**Last updated:** [21 September 2022 12:49 UTC](https://discourse.nodered.org/t/using-with-openapi-generated-code-in-multiple-nodes/67969 "2022-09-21T12:49:16Z")

</div>

Hello everyone, I have a few nodes that all use the same API. Currently I build the needed URLs by hand. Since I don't want to do that for every function the API provides and because I want to have an easy way to see if…

---

## [Fresh NodeRED instance is waiting for a non-existent type to be registered](https://discourse.nodered.org/t/fresh-nodered-instance-is-waiting-for-a-non-existent-type-to-be-registered/68027)

<div class="topic-metadata">

**Author:** [@jackcarey](https://discourse.nodered.org/u/jackcarey)\
**Replies:** 2\
**Last updated:** [21 September 2022 12:20 UTC](https://discourse.nodered.org/t/fresh-nodered-instance-is-waiting-for-a-non-existent-type-to-be-registered/68027 "2022-09-21T12:20:38Z")

</div>

I am using NodeRED as an embedded package on a Windows machine. I'm trying to create a custom node and I ran into a problem with it not being registered. I thought I'd start again in a new NodeJS project in a new folder…

---

## [It is possble to use external libraries (CDN) in HTML](https://discourse.nodered.org/t/it-is-possble-to-use-external-libraries-cdn-in-html/68002)

<div class="topic-metadata">

**Author:** [@sangwoo](https://discourse.nodered.org/u/sangwoo)\
**Replies:** 1\
**Last updated:** [21 September 2022 09:17 UTC](https://discourse.nodered.org/t/it-is-possble-to-use-external-libraries-cdn-in-html/68002 "2022-09-21T09:17:54Z")

</div>

I'm currently creating a custom node. And, I need to use xml parsing library in HTML. I will use the library below. fast-xml-parser fast-xml-parser (cdn) I try to use this library using cdn like this, \<script src…

---

## [Listen to events only when node is in use](https://discourse.nodered.org/t/listen-to-events-only-when-node-is-in-use/67970)

<div class="topic-metadata">

**Author:** [@steinmetz](https://discourse.nodered.org/u/steinmetz)\
**Replies:** 2\
**Last updated:** [20 September 2022 19:39 UTC](https://discourse.nodered.org/t/listen-to-events-only-when-node-is-in-use/67970 "2022-09-20T19:39:53Z")

</div>

Hi all! Is there a way to listen to editor events such as deploy only if my node is in use? I read this page but I couldn't find a function I could override when my node is dragged from the palette to the workspace (HTM…

---

## [Resolved : How does the Complete node work?](https://discourse.nodered.org/t/resolved-how-does-the-complete-node-work/67906)

<div class="topic-metadata">

**Author:** [@phoddie](https://discourse.nodered.org/u/phoddie)\
**Replies:** 0\
**Last updated:** [19 September 2022 05:05 UTC](https://discourse.nodered.org/t/resolved-how-does-the-complete-node-work/67906 "2022-09-19T05:05:25Z")

</div>

This is a follow-up to my previous post with this same subject ("How does the Complete node work?"). The original has been closed because I took a little too long to follow-up. The news is all good. I now have a working…

---

## [Integration of front-end frameworks for custom node editors](https://discourse.nodered.org/t/integration-of-front-end-frameworks-for-custom-node-editors/67645)

<div class="topic-metadata">

**Author:** [@VinzenzTrimborn](https://discourse.nodered.org/u/VinzenzTrimborn)\
**Replies:** 1\
**Last updated:** [16 September 2022 10:03 UTC](https://discourse.nodered.org/t/integration-of-front-end-frameworks-for-custom-node-editors/67645 "2022-09-16T10:03:36Z")

</div>

I have worked a lot with node-red and wrote a couple of custom nodes. I always aim for a high usability of the node editor. However, it is hard to write nice UIs in the node editor when I have to write JQuery and "plain"…

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

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