# Developing Nodes

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

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

**Page:** 25

---

## [Debugging a node's html file](https://discourse.nodered.org/t/debugging-a-nodes-html-file/54487)

<div class="topic-metadata">

**Author:** [@chris.willing](https://discourse.nodered.org/u/chris.willing)\
**Replies:** 1\
**Last updated:** [30 November 2021 01:09 UTC](https://discourse.nodered.org/t/debugging-a-nodes-html-file/54487 "2021-11-30T01:09:10Z")

</div>

I used to be able to have the occasional console.log() in a node's html file for debugging purposes, the output of which would appear in the console output of the web developer tools tab at bottom of my browser (ctrl+shi…

---

## [Add Input Widget Type / Decrease repeat code in HTML file](https://discourse.nodered.org/t/add-input-widget-type-decrease-repeat-code-in-html-file/54366)

<div class="topic-metadata">

**Author:** [@EJSRobinson](https://discourse.nodered.org/u/EJSRobinson)\
**Replies:** 1\
**Last updated:** [28 November 2021 15:06 UTC](https://discourse.nodered.org/t/add-input-widget-type-decrease-repeat-code-in-html-file/54366 "2021-11-28T15:06:57Z")

</div>

I have a set of node types which share editor config functionality. As such, I have a large amount of repeated code in each node type's HTML file, primarily residing in OnEditPrepare. I'd like these nodes to share the f…

---

## [Clean-up if no deployment is done?](https://discourse.nodered.org/t/clean-up-if-no-deployment-is-done/54281)

<div class="topic-metadata">

**Author:** [@Dunken](https://discourse.nodered.org/u/Dunken)\
**Replies:** 9\
**Last updated:** [27 November 2021 16:31 UTC](https://discourse.nodered.org/t/clean-up-if-no-deployment-is-done/54281 "2021-11-27T16:31:50Z")

</div>

What's best practice how to behave with backend-resources (e.g. clean-up?) if I created some as part of my config-nodes but no deployment was executed at the end? Any hook I could take advantage of?

---

## [Why is sendEvents an array (in the Messaging hooks)](https://discourse.nodered.org/t/why-is-sendevents-an-array-in-the-messaging-hooks/54293)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [26 November 2021 07:02 UTC](https://discourse.nodered.org/t/why-is-sendevents-an-array-in-the-messaging-hooks/54293 "2021-11-26T07:02:18Z")

</div>

Hi folks, From the time that Nick announced the Messaging hooks framework, my fingers have been itching to experiment with it. So fascinating stuff. But unfortunately I never had time for it ... Started my first expe…

---

## [Urgent , Please how can i add Authorisation header to HTTPP request on node - red for API](https://discourse.nodered.org/t/urgent-please-how-can-i-add-authorisation-header-to-httpp-request-on-node-red-for-api/54273)

<div class="topic-metadata">

**Author:** [@AYo](https://discourse.nodered.org/u/AYo)\
**Replies:** 9\
**Last updated:** [25 November 2021 14:32 UTC](https://discourse.nodered.org/t/urgent-please-how-can-i-add-authorisation-header-to-httpp-request-on-node-red-for-api/54273 "2021-11-25T14:32:19Z")

</div>

Hi Guys ! i often received this message Authentication credentials were not provided. please i have been wondering how to add an authorisation API for GET request for HTTP request. on node -red. i have tried it on Pos…

---

## [Unexpected behavior with credentials](https://discourse.nodered.org/t/unexpected-behavior-with-credentials/54150)

<div class="topic-metadata">

**Author:** [@Dunken](https://discourse.nodered.org/u/Dunken)\
**Replies:** 15\
**Last updated:** [24 November 2021 19:26 UTC](https://discourse.nodered.org/t/unexpected-behavior-with-credentials/54150 "2021-11-24T19:26:53Z")

</div>

If I add a click-handler in oneditprepare and update my credentials in a callback like: $("#node-config-input-newMachineUser").click(function () { //do stuff $.ajax({ …

---

## [Where to store handle of setInterval?](https://discourse.nodered.org/t/where-to-store-handle-of-setinterval/54028)

<div class="topic-metadata">

**Author:** [@danube](https://discourse.nodered.org/u/danube)\
**Replies:** 5\
**Last updated:** [23 November 2021 14:48 UTC](https://discourse.nodered.org/t/where-to-store-handle-of-setinterval/54028 "2021-11-23T14:48:31Z")

</div>

A node which I develop needs to be run periodically. With setInterval, I could achieve this. It is necessary that the interval is set up upon loading the node. Here's my simple solution: function ShadingNode(originalCon…

---

## [Context missing in oneditcancel](https://discourse.nodered.org/t/context-missing-in-oneditcancel/54117)

<div class="topic-metadata">

**Author:** [@Dunken](https://discourse.nodered.org/u/Dunken)\
**Replies:** 0\
**Last updated:** [22 November 2021 16:02 UTC](https://discourse.nodered.org/t/context-missing-in-oneditcancel/54117 "2021-11-22T16:02:56Z")

</div>

I would like to call a REST endpoint in oneditcancel in order to clean-up resources in the backend (I created them via a button in this config-node). However, looks like I don't have access to any variables anymore (my t…

---

## [\[ANNOUNCE\] node-red-contrib-ui-svg 2.3.0](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-2-3-0/54052)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 1\
**Last updated:** [21 November 2021 07:39 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-2-3-0/54052 "2021-11-21T07:39:43Z")

</div>

Hi folks, Major version 2.3.0 of the node-red-contrib-ui-svg node is now available in the palette: The list of changes can be found in the release notes. Have fun with it!! Bart

---

## [Template for music streaming on google cast](https://discourse.nodered.org/t/template-for-music-streaming-on-google-cast/53984)

<div class="topic-metadata">

**Author:** [@gauravmyid](https://discourse.nodered.org/u/gauravmyid)\
**Replies:** 1\
**Last updated:** [19 November 2021 13:47 UTC](https://discourse.nodered.org/t/template-for-music-streaming-on-google-cast/53984 "2021-11-19T13:47:42Z")

</div>

Hello, I am new for nodered and i also dont have any programming skills but i need some help to create a flow which does following things: 1.Creates a ui template in dasboard which shows music streaming websites such a…

---

## [Counting upstream wires](https://discourse.nodered.org/t/counting-upstream-wires/53904)

<div class="topic-metadata">

**Author:** [@lhp](https://discourse.nodered.org/u/lhp)\
**Replies:** 3\
**Last updated:** [17 November 2021 19:29 UTC](https://discourse.nodered.org/t/counting-upstream-wires/53904 "2021-11-17T19:29:57Z")

</div>

Hello, I’m trying to create some custom parallelize/serialize nodes to handle task parallelization in my flow. Imagine there is a dozen Task A, Task B … and that each task is some async code that waits a couple of m…

---

## [Can't Send a message content to telegram that pass through a Oracle Node](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648)

<div class="topic-metadata">

**Author:** [@Celio](https://discourse.nodered.org/u/Celio)\
**Replies:** 9\
**Last updated:** [16 November 2021 19:32 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648 "2021-11-16T19:32:26Z")

</div>

I'm developing a Telegram Bot who returns a Oracle Query that is built with the User's Input. But after passing through the Oracle node it comes out without some of the msg properties and the redbot out node can´t send t…

---

## [Calling data from influxdb based on customer requirement](https://discourse.nodered.org/t/calling-data-from-influxdb-based-on-customer-requirement/53809)

<div class="topic-metadata">

**Author:** [@Grimm1007](https://discourse.nodered.org/u/Grimm1007)\
**Replies:** 5\
**Last updated:** [16 November 2021 10:51 UTC](https://discourse.nodered.org/t/calling-data-from-influxdb-based-on-customer-requirement/53809 "2021-11-16T10:51:38Z")

</div>

Hi, very new to node red and influxdb, I am working on a project that has to allow a user to call batch data from influxdb, i understand that we need to use query to get the data from influxdb but is there a way to have …

---

## [Finden und löschen](https://discourse.nodered.org/t/finden-und-loschen/53787)

<div class="topic-metadata">

**Author:** [@Herbert](https://discourse.nodered.org/u/Herbert)\
**Replies:** 2\
**Last updated:** [15 November 2021 20:46 UTC](https://discourse.nodered.org/t/finden-und-loschen/53787 "2021-11-15T20:46:59Z")

</div>

Hallo. Ich nutze die SSD um von der Kamera Bilder zu speichern. Nach einiger Zeit müssen die Bilder gelöscht werden. Den Befehl Dateien nach 60 Tagen zu löschen wollte ich hiermit machen, geht aber nicht: find /media/K…

---

## [Do not use a token in more than one configuration node at the same time as the telegram server does not allow multiple connections for one bot](https://discourse.nodered.org/t/do-not-use-a-token-in-more-than-one-configuration-node-at-the-same-time-as-the-telegram-server-does-not-allow-multiple-connections-for-one-bot/53728)

<div class="topic-metadata">

**Author:** [@fugit185](https://discourse.nodered.org/u/fugit185)\
**Replies:** 4\
**Last updated:** [15 November 2021 10:37 UTC](https://discourse.nodered.org/t/do-not-use-a-token-in-more-than-one-configuration-node-at-the-same-time-as-the-telegram-server-does-not-allow-multiple-connections-for-one-bot/53728 "2021-11-15T10:37:07Z")

</div>

What does this mean? Only one telegram bot in one flow? Only same telegram bot in one flow? Only one and same telegram bot in one flow? I ask this because I have same telgram bot in mutiple flows and I get sometimes …

---

## [Not sure how to deal with httpAdminRoot](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 4\
**Last updated:** [11 November 2021 21:31 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473 "2021-11-11T21:31:02Z")

</div>

Hi folks, Got an issue today on Github about one of my nodes. The user has uncommented this part of his settings.js file: httpAdminRoot: '/admin', And then the images of my node cannot be loaded anymore from his dock…

---

## [Error in the package lock.json](https://discourse.nodered.org/t/error-in-the-package-lock-json/53576)

<div class="topic-metadata">

**Author:** [@habakuk25](https://discourse.nodered.org/u/habakuk25)\
**Replies:** 2\
**Last updated:** [11 November 2021 15:24 UTC](https://discourse.nodered.org/t/error-in-the-package-lock-json/53576 "2021-11-11T15:24:56Z")

</div>

Hi guys! sorry to open that up again but: despite i did: Npm ERR! code ELOCKVERIFY - #6 by Colin cd .node-red rm -rf node\_modules rm -f package-lock.json npm install I still get: odroid@odroid:~/.node-red$ npm audit…

---

## [How to use context in custom node](https://discourse.nodered.org/t/how-to-use-context-in-custom-node/53486)

<div class="topic-metadata">

**Author:** [@d0d04m3](https://discourse.nodered.org/u/d0d04m3)\
**Replies:** 3\
**Last updated:** [11 November 2021 11:50 UTC](https://discourse.nodered.org/t/how-to-use-context-in-custom-node/53486 "2021-11-11T11:50:56Z")

</div>

so i create new node and need to sotre some data in context node https://nodered.org/docs/creating-nodes/context my node module.exports = function(RED) { function ClientNode(config) { RED.nodes.createNo…

---

## [Sort data from electricity meter](https://discourse.nodered.org/t/sort-data-from-electricity-meter/53253)

<div class="topic-metadata">

**Author:** [@Matsmlq](https://discourse.nodered.org/u/Matsmlq)\
**Replies:** 13\
**Last updated:** [11 November 2021 08:51 UTC](https://discourse.nodered.org/t/sort-data-from-electricity-meter/53253 "2021-11-11T08:51:51Z")

</div>

Hi I´m trying to sort the data from my Emeters Han-port. "0100010700FF": \[908, \[0, "W"\]\], 908 is current power. I´m quite new to Nod-red so Help please! { "elapsedtime": 58526314, "rssi": -88, "mac": "F4:CF:A2:D0:…

---

## [MSSQL Stored procedure](https://discourse.nodered.org/t/mssql-stored-procedure/53382)

<div class="topic-metadata">

**Author:** [@egoncalves](https://discourse.nodered.org/u/egoncalves)\
**Replies:** 4\
**Last updated:** [10 November 2021 20:04 UTC](https://discourse.nodered.org/t/mssql-stored-procedure/53382 "2021-11-10T20:04:06Z")

</div>

Hey guys, how to execute a stored procedure and store the result to use in another query?

---

## [Set and use variable after HTML select tag option selection](https://discourse.nodered.org/t/set-and-use-variable-after-html-select-tag-option-selection/53532)

<div class="topic-metadata">

**Author:** [@NicoloToscani](https://discourse.nodered.org/u/NicoloToscani)\
**Replies:** 1\
**Last updated:** [10 November 2021 20:01 UTC](https://discourse.nodered.org/t/set-and-use-variable-after-html-select-tag-option-selection/53532 "2021-11-10T20:01:38Z")

</div>

Hi, I'm working on a new node and I have a question about a HTML \<select\> tag. I need to set a variable based on which option is selected. After this I need to use the value of this variable for show different \<select\>…

---

## [TypeError: Cannot read property 'padEnd' of undefined](https://discourse.nodered.org/t/typeerror-cannot-read-property-padend-of-undefined/53524)

<div class="topic-metadata">

**Author:** [@tungndtt](https://discourse.nodered.org/u/tungndtt)\
**Replies:** 1\
**Last updated:** [10 November 2021 17:55 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-padend-of-undefined/53524 "2021-11-10T17:55:18Z")

</div>

I customize a node as following: dmrequest.js module.exports = function(RED) { "use strict"; const request = require("request"); function CustomDMRequestNode(config) { const url = config.url, datas…

---

## [Store secret of config-node in backend](https://discourse.nodered.org/t/store-secret-of-config-node-in-backend/53490)

<div class="topic-metadata">

**Author:** [@Dunken](https://discourse.nodered.org/u/Dunken)\
**Replies:** 1\
**Last updated:** [10 November 2021 13:59 UTC](https://discourse.nodered.org/t/store-secret-of-config-node-in-backend/53490 "2021-11-10T13:59:19Z")

</div>

I have a similar use case as written in the Node-RED docs: For example, for a node to support an OAuth workflow, it must retain server-assigned tokens that the user never sees. The Twitter node provides a good example …

---

## [Condition for differentiating testing with a helper node](https://discourse.nodered.org/t/condition-for-differentiating-testing-with-a-helper-node/53366)

<div class="topic-metadata">

**Author:** [@midhun](https://discourse.nodered.org/u/midhun)\
**Replies:** 3\
**Last updated:** [10 November 2021 13:06 UTC](https://discourse.nodered.org/t/condition-for-differentiating-testing-with-a-helper-node/53366 "2021-11-10T13:06:51Z")

</div>

How can we differentiate the normal usage and testing, at runtime based on some condition? Something similar to : if (process.env.NODE\_ENV === 'test') { So that we can prevent some initialization which may cause error…

---

## [Can't Find Serial Node in Node-Red](https://discourse.nodered.org/t/cant-find-serial-node-in-node-red/53391)

<div class="topic-metadata">

**Author:** [@fajar.r.w](https://discourse.nodered.org/u/fajar.r.w)\
**Replies:** 1\
**Last updated:** [8 November 2021 17:35 UTC](https://discourse.nodered.org/t/cant-find-serial-node-in-node-red/53391 "2021-11-08T17:35:16Z")

</div>

Hello. I am very new to node-red and have a trouble finding the serial node (serial in, serial out, and serial request). I had searched them in the drawer in the left hand side but still couldn't find them. I tried to in…

---

## [Current method of integrating tellstick into node red](https://discourse.nodered.org/t/current-method-of-integrating-tellstick-into-node-red/53362)

<div class="topic-metadata">

**Author:** [@paj](https://discourse.nodered.org/u/paj)\
**Replies:** 0\
**Last updated:** [8 November 2021 09:47 UTC](https://discourse.nodered.org/t/current-method-of-integrating-tellstick-into-node-red/53362 "2021-11-08T09:47:22Z")

</div>

I have read a number of threads on how to get tellstick into node red on raspberry pi. All installation descriptions I found ends up in relying in telldus-core. Since telldus-core is no longer supported by telldus, and n…

---

## [Connecter node-red à un base de données à distance](https://discourse.nodered.org/t/connecter-node-red-a-un-base-de-donnees-a-distance/53311)

<div class="topic-metadata">

**Author:** [@Maissa](https://discourse.nodered.org/u/Maissa)\
**Replies:** 1\
**Last updated:** [7 November 2021 16:52 UTC](https://discourse.nodered.org/t/connecter-node-red-a-un-base-de-donnees-a-distance/53311 "2021-11-07T16:52:26Z")

</div>

Comment puis-je connecter Node Red à une base de données de 000webhost ?

---

## [Can't start Node-RED on Raspberry](https://discourse.nodered.org/t/cant-start-node-red-on-raspberry/53307)

<div class="topic-metadata">

**Author:** [@ausbau2020](https://discourse.nodered.org/u/ausbau2020)\
**Replies:** 12\
**Last updated:** [6 November 2021 22:15 UTC](https://discourse.nodered.org/t/cant-start-node-red-on-raspberry/53307 "2021-11-06T22:15:11Z")

</div>

Hey, I just installed Node-RED on my Raspberry4. When I want to start it shows the error cause my boot system is not systemd admin@raspberry:~ $ node-red-start Start Node-RED Once Node-RED has started, point a browse…

---

## [Respond to keyboard events in config screen](https://discourse.nodered.org/t/respond-to-keyboard-events-in-config-screen/53284)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 1\
**Last updated:** [6 November 2021 08:46 UTC](https://discourse.nodered.org/t/respond-to-keyboard-events-in-config-screen/53284 "2021-11-06T08:46:00Z")

</div>

Hi folks, I have an SVG in the config screen of a new node, and when spending my time in that SVG I need to be able to respond to keyboard events. Since an SVG element is no input-type, I need to add an tabindex="0" …

---

## [How can i use hafas-client from github in node-red](https://discourse.nodered.org/t/how-can-i-use-hafas-client-from-github-in-node-red/53226)

<div class="topic-metadata">

**Author:** [@ie404](https://discourse.nodered.org/u/ie404)\
**Replies:** 0\
**Last updated:** [4 November 2021 18:27 UTC](https://discourse.nodered.org/t/how-can-i-use-hafas-client-from-github-in-node-red/53226 "2021-11-04T18:27:35Z")

</div>

Hi there, i like to use hafas client (hafas-client/p/db at master · public-transport/hafas-client · GitHub) in node red, to get me some infos on train departure times. Any hints how to do that for a nove/intermediate U…

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

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