# Developing Nodes

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

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

**Page:** 37

---

## [Retrieving GPS location / geolocation via browser (for mobile use)](https://discourse.nodered.org/t/retrieving-gps-location-geolocation-via-browser-for-mobile-use/36534)

<div class="topic-metadata">

**Author:** [@jeremyhulse](https://discourse.nodered.org/u/jeremyhulse)\
**Replies:** 6\
**Last updated:** [27 November 2020 16:39 UTC](https://discourse.nodered.org/t/retrieving-gps-location-geolocation-via-browser-for-mobile-use/36534 "2020-11-27T16:39:41Z")

</div>

I am a design master's student and I'm making a prototype service that plays back geo-tagged audio clips that are nearby to the user, based on the user's live location. I am interested in using Node-RED as a prototyping …

---

## [Multiple Client Pis](https://discourse.nodered.org/t/multiple-client-pis/36527)

<div class="topic-metadata">

**Author:** [@kshitiz](https://discourse.nodered.org/u/kshitiz)\
**Replies:** 1\
**Last updated:** [25 November 2020 20:14 UTC](https://discourse.nodered.org/t/multiple-client-pis/36527 "2020-11-25T20:14:07Z")

</div>

Hello everyone, I am new to Node-Red so need some of your help. I am trying to send data to multiple client raspberry Pis via Router from dashboard(server) side of main server raspberry pi. I need some of your guidance h…

---

## [Writing a request for node-red-contrib-google-oauth2](https://discourse.nodered.org/t/writing-a-request-for-node-red-contrib-google-oauth2/36523)

<div class="topic-metadata">

**Author:** [@jitrah](https://discourse.nodered.org/u/jitrah)\
**Replies:** 0\
**Last updated:** [25 November 2020 19:21 UTC](https://discourse.nodered.org/t/writing-a-request-for-node-red-contrib-google-oauth2/36523 "2020-11-25T19:21:10Z")

</div>

Hi, I'd like to use the node-red-contrib-google-oauth2 node to get Google analytics session from my GA account. I've associated the right credentials to the node and I'm authenticated successfully. I'm trying to writ…

---

## [Chart showing weird graphs](https://discourse.nodered.org/t/chart-showing-weird-graphs/36434)

<div class="topic-metadata">

**Author:** [@Statler](https://discourse.nodered.org/u/Statler)\
**Replies:** 5\
**Last updated:** [24 November 2020 09:36 UTC](https://discourse.nodered.org/t/chart-showing-weird-graphs/36434 "2020-11-24T09:36:55Z")

</div>

\[{"id":"88cf6203.a189f","type":"ui\_chart","z":"48d2a1b1.9516a","name":"","group":"6ff1bfe2.8add3","order":13,"width":18,"height":7,"label":"","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"bezier","…

---

## [Help me make a toggle button](https://discourse.nodered.org/t/help-me-make-a-toggle-button/36405)

<div class="topic-metadata">

**Author:** [@murondo](https://discourse.nodered.org/u/murondo)\
**Replies:** 0\
**Last updated:** [23 November 2020 15:43 UTC](https://discourse.nodered.org/t/help-me-make-a-toggle-button/36405 "2020-11-23T15:43:31Z")

</div>

Click on the first button to turn on the third button below, and click on the third turn of the second button to turn on the first button on the first line. If you click the middle, both buttons turn green and the but…

---

## [Change node icon based on config](https://discourse.nodered.org/t/change-node-icon-based-on-config/36266)

<div class="topic-metadata">

**Author:** [@Achronite](https://discourse.nodered.org/u/Achronite)\
**Replies:** 3\
**Last updated:** [22 November 2020 19:04 UTC](https://discourse.nodered.org/t/change-node-icon-based-on-config/36266 "2020-11-22T19:04:28Z")

</div>

Hi, I would like to be able to change the icon of a node based upon it's config node. I am currently using a config node for the 'device', which supports a number of device types; I would like the icon to dynamically c…

---

## [Wating for Http request makes node-red unresponsive / freezes](https://discourse.nodered.org/t/wating-for-http-request-makes-node-red-unresponsive-freezes/36191)

<div class="topic-metadata">

**Author:** [@ivovargasitel](https://discourse.nodered.org/u/ivovargasitel)\
**Replies:** 4\
**Last updated:** [20 November 2020 14:53 UTC](https://discourse.nodered.org/t/wating-for-http-request-makes-node-red-unresponsive-freezes/36191 "2020-11-20T14:53:07Z")

</div>

Hi, I'm trying to do a node like "http request", i used the source of this node as inspiration, but when i do a request that the remote address takes some time to respond or don't respond at all, my node-red gets stuck…

---

## [Contrib-Fibaro\_Devices](https://discourse.nodered.org/t/contrib-fibaro-devices/36223)

<div class="topic-metadata">

**Author:** [@alex88](https://discourse.nodered.org/u/alex88)\
**Replies:** 3\
**Last updated:** [20 November 2020 13:13 UTC](https://discourse.nodered.org/t/contrib-fibaro-devices/36223 "2020-11-20T13:13:16Z")

</div>

To the Node-RED dev team + some other people that seem to be on the forum all the time and know a lot about Node-RED - @knolleary @TotallyInformation @Steve-Mcl @dceejay @BartButenaers I have been using the fibaro-devic…

---

## [House Mode - Am I doing this right?](https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206)

<div class="topic-metadata">

**Author:** [@kreene1987](https://discourse.nodered.org/u/kreene1987)\
**Replies:** 1\
**Last updated:** [19 November 2020 20:55 UTC](https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206 "2020-11-19T20:55:17Z")

</div>

BRAND new to Node Red, coming from ST and webcore but moving quickly into HA + NR. Glad to be here. Is this an efficient way of programming the smarthome "mode" similar to ST's home mode. I have binary\_sensor's in HA th…

---

## [Need help to use if function in Node Red](https://discourse.nodered.org/t/need-help-to-use-if-function-in-node-red/36091)

<div class="topic-metadata">

**Author:** [@hadeel1985](https://discourse.nodered.org/u/hadeel1985)\
**Replies:** 12\
**Last updated:** [19 November 2020 18:32 UTC](https://discourse.nodered.org/t/need-help-to-use-if-function-in-node-red/36091 "2020-11-19T18:32:12Z")

</div>

Good Day , I’m trying to use Node Red to design a simple Traffic lights with external switch, what I did is shown in fig 1 attached, but it seem it’s not stable and it will stop running at some point . I need to use…

---

## [Azure IOT hub node](https://discourse.nodered.org/t/azure-iot-hub-node/36160)

<div class="topic-metadata">

**Author:** [@hadeel1985](https://discourse.nodered.org/u/hadeel1985)\
**Replies:** 2\
**Last updated:** [18 November 2020 20:44 UTC](https://discourse.nodered.org/t/azure-iot-hub-node/36160 "2020-11-18T20:44:42Z")

</div>

Hi, I am trying to use Azure IOT hub node to send data from a DHT11 sensor to Azure, the problem is when I installed the nodes in node red through the manage palette I chose (node-red-azure-iot-hub-mod) which is giving m…

---

## [Best practice to call functions?](https://discourse.nodered.org/t/best-practice-to-call-functions/36103)

<div class="topic-metadata">

**Author:** [@Norberg95](https://discourse.nodered.org/u/Norberg95)\
**Replies:** 1\
**Last updated:** [17 November 2020 23:32 UTC](https://discourse.nodered.org/t/best-practice-to-call-functions/36103 "2020-11-17T23:32:30Z")

</div>

Currently I have an app and I embedded node-red. I am making nodes for Classes in my app, and when I am adding a node to the flow, a new instance of the class is initialized. What is the best practice to call the class …

---

## [Can you pass data to the HTML file of a node?](https://discourse.nodered.org/t/can-you-pass-data-to-the-html-file-of-a-node/36033)

<div class="topic-metadata">

**Author:** [@Norberg95](https://discourse.nodered.org/u/Norberg95)\
**Replies:** 5\
**Last updated:** [17 November 2020 00:02 UTC](https://discourse.nodered.org/t/can-you-pass-data-to-the-html-file-of-a-node/36033 "2020-11-17T00:02:08Z")

</div>

I would like to pass a list to the html file to display it in a dropdown, and pass back the selected item when the node is initialized. Is there a way to pass data from the node's js file to the html?

---

## [Configuration node not showing in node](https://discourse.nodered.org/t/configuration-node-not-showing-in-node/36024)

<div class="topic-metadata">

**Author:** [@Phunkafizer](https://discourse.nodered.org/u/Phunkafizer)\
**Replies:** 1\
**Last updated:** [16 November 2020 22:04 UTC](https://discourse.nodered.org/t/configuration-node-not-showing-in-node/36024 "2020-11-16T22:04:44Z")

</div>

Hi, I'm trying to build an own node using a configuration template as described here: https://nodered.org/docs/creating-nodes/config-nodes In my node's properties only the "name" property appears, not the remote-server…

---

## [Determine the number of wires connecting to an output port](https://discourse.nodered.org/t/determine-the-number-of-wires-connecting-to-an-output-port/35783)

<div class="topic-metadata">

**Author:** [@Redhatter](https://discourse.nodered.org/u/Redhatter)\
**Replies:** 2\
**Last updated:** [15 November 2020 22:27 UTC](https://discourse.nodered.org/t/determine-the-number-of-wires-connecting-to-an-output-port/35783 "2020-11-15T22:27:14Z")

</div>

Hi all, So, a silly question, I have a node with one input port, and two output ports. The first output port is used to return the results of operations, whilst the second is used to emit debugging information. I'd li…

---

## [Turn on valve for x minutes, then off](https://discourse.nodered.org/t/turn-on-valve-for-x-minutes-then-off/35732)

<div class="topic-metadata">

**Author:** [@skrgahr](https://discourse.nodered.org/u/skrgahr)\
**Replies:** 4\
**Last updated:** [11 November 2020 16:00 UTC](https://discourse.nodered.org/t/turn-on-valve-for-x-minutes-then-off/35732 "2020-11-11T16:00:35Z")

</div>

Hello, I need some help. I'm integrating greenhouse automatization, and I want to turn off/on solenoid valve via MQTT. My idea is to have a pop up or something on some dashboard button to prompt how much time do I want…

---

## [Cusom mqtt dynamic certs configurations?](https://discourse.nodered.org/t/cusom-mqtt-dynamic-certs-configurations/35729)

<div class="topic-metadata">

**Author:** [@thasin](https://discourse.nodered.org/u/thasin)\
**Replies:** 0\
**Last updated:** [11 November 2020 10:07 UTC](https://discourse.nodered.org/t/cusom-mqtt-dynamic-certs-configurations/35729 "2020-11-11T10:07:39Z")

</div>

I am new to node-red. I used to get messages from topic using AWS Mqtt node. It was working fine when I have already configured certs and topic. In my case, I want to use dynamic certs configuration and topic. For this,…

---

## [Send data at specific interval of time](https://discourse.nodered.org/t/send-data-at-specific-interval-of-time/35574)

<div class="topic-metadata">

**Author:** [@maa1](https://discourse.nodered.org/u/maa1)\
**Replies:** 8\
**Last updated:** [10 November 2020 08:59 UTC](https://discourse.nodered.org/t/send-data-at-specific-interval-of-time/35574 "2020-11-10T08:59:47Z")

</div>

Hello, I'm pulling the data from my device at a 1-second interval and I want to send it to the database at a specific time interval of the day i.e. of 15 minutes. Please help me.

---

## [Custom UI node translation](https://discourse.nodered.org/t/custom-ui-node-translation/34836)

<div class="topic-metadata">

**Author:** [@fellinga](https://discourse.nodered.org/u/fellinga)\
**Replies:** 1\
**Last updated:** [5 November 2020 20:05 UTC](https://discourse.nodered.org/t/custom-ui-node-translation/34836 "2020-11-05T20:05:35Z")

</div>

I am currently trying to translate my custom UI node and there are some things that I just can't figure out. How do I add translation to the nodes defaults in myNode.html? The following does not work: defaults: { …

---

## [A MacOS cloud desktop, where we can test our nodes](https://discourse.nodered.org/t/a-macos-cloud-desktop-where-we-can-test-our-nodes/35522)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 7\
**Last updated:** [8 November 2020 22:33 UTC](https://discourse.nodered.org/t/a-macos-cloud-desktop-where-we-can-test-our-nodes/35522 "2020-11-08T22:33:05Z")

</div>

Hi folks, I received a Github issue about the SVG node: seems a couple of things don't work correctly on Safari/Chrome on MacOs. However I don't have a MacOS, and I don't know anything about MacOS... I remember that @…

---

## [Automation based on temperature](https://discourse.nodered.org/t/automation-based-on-temperature/35523)

<div class="topic-metadata">

**Author:** [@Thomas88103](https://discourse.nodered.org/u/Thomas88103)\
**Replies:** 9\
**Last updated:** [8 November 2020 15:23 UTC](https://discourse.nodered.org/t/automation-based-on-temperature/35523 "2020-11-08T15:23:49Z")

</div>

Hello. I need little help. I wanna do some automation based on outside temperature. I dont have a outside sensor. I mean outside temperature based on weather forecast. For example: my heating in bathroom turn on every h…

---

## [Config node in EditableList items](https://discourse.nodered.org/t/config-node-in-editablelist-items/35363)

<div class="topic-metadata">

**Author:** [@christian.r.r](https://discourse.nodered.org/u/christian.r.r)\
**Replies:** 3\
**Last updated:** [6 November 2020 12:48 UTC](https://discourse.nodered.org/t/config-node-in-editablelist-items/35363 "2020-11-06T12:48:17Z")

</div>

Hi all, is there any possibility to use config nodes within the EditableList widget? Let's say I have a config node named rooms, and in my widget I have a list of elements in an EditableList, where each item should be …

---

## [Readonly TypedInput](https://discourse.nodered.org/t/readonly-typedinput/35358)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 13\
**Last updated:** [6 November 2020 11:53 UTC](https://discourse.nodered.org/t/readonly-typedinput/35358 "2020-11-06T11:53:11Z")

</div>

Hi folks, I need to display a constant value in a readonly TypedInput field. Have tried to add the readonly attribute to the input field in a couple of ways: Directly in the html input definition:var val = $('\<input …

---

## [Idea - Create SSH Session Nodes with collecting Command Output during the session \[Start | End\] like \[TCL/Expect\]](https://discourse.nodered.org/t/idea-create-ssh-session-nodes-with-collecting-command-output-during-the-session-start-end-like-tcl-expect/35185)

<div class="topic-metadata">

**Author:** [@sudoritz](https://discourse.nodered.org/u/sudoritz)\
**Replies:** 12\
**Last updated:** [6 November 2020 07:32 UTC](https://discourse.nodered.org/t/idea-create-ssh-session-nodes-with-collecting-command-output-during-the-session-start-end-like-tcl-expect/35185 "2020-11-06T07:32:49Z")

</div>

Im trying to find the best way to help create a SSH node scenario and when inside the pseudo-terminal to then act as After the command executes capture that response from output and Wait until you expect a $ or prom…

---

## [Custom Node: reoccurring processing, context storage,](https://discourse.nodered.org/t/custom-node-reoccurring-processing-context-storage/34875)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 8\
**Last updated:** [4 November 2020 17:49 UTC](https://discourse.nodered.org/t/custom-node-reoccurring-processing-context-storage/34875 "2020-11-04T17:49:03Z")

</div>

Hi All, I am considering creating my first custom node. I have the functionality working in a function node already. I have two question I did not find the answer to in the blog posts I found: In my flow, I have an in…

---

## [Multiple inputs with external conditions from Home-Assistant](https://discourse.nodered.org/t/multiple-inputs-with-external-conditions-from-home-assistant/35312)

<div class="topic-metadata">

**Author:** [@noobred](https://discourse.nodered.org/u/noobred)\
**Replies:** 8\
**Last updated:** [4 November 2020 14:05 UTC](https://discourse.nodered.org/t/multiple-inputs-with-external-conditions-from-home-assistant/35312 "2020-11-04T14:05:43Z")

</div>

Hi all, I read nearly every article and the Node-Red Primer (here) to figure out how to accomplish my node setup. Following requirements: interval every 2hours turn on this switch - with a delay of 30min turn it off (…

---

## [Get list of all config nodes in (my) custom node](https://discourse.nodered.org/t/get-list-of-all-config-nodes-in-my-custom-node/35262)

<div class="topic-metadata">

**Author:** [@hklages](https://discourse.nodered.org/u/hklages)\
**Replies:** 3\
**Last updated:** [3 November 2020 18:12 UTC](https://discourse.nodered.org/t/get-list-of-all-config-nodes-in-my-custom-node/35262 "2020-11-03T18:12:30Z")

</div>

Hi. Is there any RED.nodes method to get a list of all created config node and getting access to the stored data - couldn't find anything in the API documentation. I did create a custom node with several config nodes a…

---

## [Exec command can be used to Stop executing python code using "Python Shell" Node](https://discourse.nodered.org/t/exec-command-can-be-used-to-stop-executing-python-code-using-python-shell-node/35265)

<div class="topic-metadata">

**Author:** [@sheebha](https://discourse.nodered.org/u/sheebha)\
**Replies:** 3\
**Last updated:** [3 November 2020 09:22 UTC](https://discourse.nodered.org/t/exec-command-can-be-used-to-stop-executing-python-code-using-python-shell-node/35265 "2020-11-03T09:22:46Z")

</div>

Hi All, I have executed a python script (taken locally) using a python shell node in node-red. What is the command can be used in exec to stop running infinity loop?? Can anyone help me??

---

## [Store credentials from backend code](https://discourse.nodered.org/t/store-credentials-from-backend-code/35259)

<div class="topic-metadata">

**Author:** [@arnoldpistorius](https://discourse.nodered.org/u/arnoldpistorius)\
**Replies:** 0\
**Last updated:** [3 November 2020 06:49 UTC](https://discourse.nodered.org/t/store-credentials-from-backend-code/35259 "2020-11-03T06:49:14Z")

</div>

Hi, I'm trying to store a refresh token of the Microsoft Graph API as a credential. I can store the tenant id and client id from the html page (Node-RED is taking care of that), but the refresh token is generated by bac…

---

## [Create an array from different modbus read](https://discourse.nodered.org/t/create-an-array-from-different-modbus-read/34308)

<div class="topic-metadata">

**Author:** [@Salvatore](https://discourse.nodered.org/u/Salvatore)\
**Replies:** 15\
**Last updated:** [2 November 2020 09:54 UTC](https://discourse.nodered.org/t/create-an-array-from-different-modbus-read/34308 "2020-11-02T09:54:35Z")

</div>

hi, how can i create a vector from different modbus read node? is it possible to change the payload name of the modbus read node? I have to perform mathematical operations from the data processed by several modbus nod…

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

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