# General

**URL:** https://discourse.nodered.org/c/general/7.md?page=416

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

**Page:** 417

---

## [Combine different Input-Node in a Function Node](https://discourse.nodered.org/t/combine-different-input-node-in-a-function-node/58308)

<div class="topic-metadata">

**Author:** [@Node4Home](https://discourse.nodered.org/u/Node4Home)\
**Replies:** 9\
**Last updated:** [23 February 2022 10:32 UTC](https://discourse.nodered.org/t/combine-different-input-node-in-a-function-node/58308 "2022-02-23T10:32:31Z")

</div>

Hello, I'm new to the forum and have little experience with NodeRed. I'm working on the topic right now. I currently have a problem. I would like to send an e-mail, SMS or a WhatsApp message when the trigger node (5 se…

---

## [Get string from serial port and convert to separate key](https://discourse.nodered.org/t/get-string-from-serial-port-and-convert-to-separate-key/58858)

<div class="topic-metadata">

**Author:** [@dinesh920](https://discourse.nodered.org/u/dinesh920)\
**Replies:** 5\
**Last updated:** [23 February 2022 09:33 UTC](https://discourse.nodered.org/t/get-string-from-serial-port-and-convert-to-separate-key/58858 "2022-02-23T09:33:22Z")

</div>

I am getting "Humidity: 64.40%, Temperature: 32.00 Celsius" which is in string from my serial port. I wish to change it to key value data. This is so that I can do gauge for humidity and temperature separately. Do advice…

---

## [Max size of a project?](https://discourse.nodered.org/t/max-size-of-a-project/58849)

<div class="topic-metadata">

**Author:** [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Replies:** 1\
**Last updated:** [23 February 2022 09:23 UTC](https://discourse.nodered.org/t/max-size-of-a-project/58849 "2022-02-23T09:23:48Z")

</div>

I have a project I started out to keep some work organized and watch some sensors, and it's gone from being a simple/personal monitor of a few contact closures on a Pi, to a much larger SNMP querying and pinging system, …

---

## [Issue with Import - results in duplicates](https://discourse.nodered.org/t/issue-with-import-results-in-duplicates/58836)

<div class="topic-metadata">

**Author:** [@SandeepA](https://discourse.nodered.org/u/SandeepA)\
**Replies:** 0\
**Last updated:** [22 February 2022 19:48 UTC](https://discourse.nodered.org/t/issue-with-import-results-in-duplicates/58836 "2022-02-22T19:48:51Z")

</div>

Hi , Not sure if anyone else faced. Everytime i do import of flows / subflows - on selecting "replace" for flows/subflows in "view nodes" option for existing nodes -- the system ends up creating duplicate copies. So …

---

## [How to name an array](https://discourse.nodered.org/t/how-to-name-an-array/58818)

<div class="topic-metadata">

**Author:** [@Olivia](https://discourse.nodered.org/u/Olivia)\
**Replies:** 16\
**Last updated:** [23 February 2022 08:24 UTC](https://discourse.nodered.org/t/how-to-name-an-array/58818 "2022-02-23T08:24:21Z")

</div>

Hello everyone, I would like to name my arrays inside of the main array. Does anyone know how i can do that ? Thanks in advance !

---

## [Get 502 Bad Gateway from HA while selecting Node-RED](https://discourse.nodered.org/t/get-502-bad-gateway-from-ha-while-selecting-node-red/58831)

<div class="topic-metadata">

**Author:** [@SWAXXIII](https://discourse.nodered.org/u/SWAXXIII)\
**Replies:** 4\
**Last updated:** [23 February 2022 03:10 UTC](https://discourse.nodered.org/t/get-502-bad-gateway-from-ha-while-selecting-node-red/58831 "2022-02-23T03:10:12Z")

</div>

I have been using Node-RED for a couple of months and love it. Unfortunately, I can no longer access it; I get 502 Bad Gateway nginx. The two newest changes I made were upgrading to the latest release of Node-RED and c…

---

## [Get specific MQTT topic from an array](https://discourse.nodered.org/t/get-specific-mqtt-topic-from-an-array/58788)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 5\
**Last updated:** [22 February 2022 22:21 UTC](https://discourse.nodered.org/t/get-specific-mqtt-topic-from-an-array/58788 "2022-02-22T22:21:08Z")

</div>

I have a device transmitting two temperatures (actual and setpoint) formatted as an Influx-friendly array: and as you can see from the above, I am also using MQTT to send the array of data. Here is Node-RED on a dif…

---

## [Flow Optimization](https://discourse.nodered.org/t/flow-optimization/58821)

<div class="topic-metadata">

**Author:** [@aallen](https://discourse.nodered.org/u/aallen)\
**Replies:** 6\
**Last updated:** [22 February 2022 21:15 UTC](https://discourse.nodered.org/t/flow-optimization/58821 "2022-02-22T21:15:06Z")

</div>

Hello, I am trying to get some tips on how I could optimize my flow. I frequently get modbus errors and I suspect it is due to the layout of my flows. All the 'link outs' are going to a mosquito broker. Here are t…

---

## [Docker - Issue after restore volume](https://discourse.nodered.org/t/docker-issue-after-restore-volume/58777)

<div class="topic-metadata">

**Author:** [@alexliit](https://discourse.nodered.org/u/alexliit)\
**Replies:** 1\
**Last updated:** [22 February 2022 20:38 UTC](https://discourse.nodered.org/t/docker-issue-after-restore-volume/58777 "2022-02-22T20:38:14Z")

</div>

Hello After losing the volume of a dockerized installation of node-red, I recovered succesfully everithing using the version control option available on nodered since the latest version (GIT CLONE). Everything seemed o…

---

## [Very basic question for a noob but... light automation with motion sensor](https://discourse.nodered.org/t/very-basic-question-for-a-noob-but-light-automation-with-motion-sensor/58838)

<div class="topic-metadata">

**Author:** [@quimera\_rfv](https://discourse.nodered.org/u/quimera_rfv)\
**Replies:** 0\
**Last updated:** [22 February 2022 20:16 UTC](https://discourse.nodered.org/t/very-basic-question-for-a-noob-but-light-automation-with-motion-sensor/58838 "2022-02-22T20:16:34Z")

</div>

Hello. Sorry to ask so basic question, but im just starting from zero and I cant make a flow to operate a light with one motion sensor and then include a rule to only put on the light when dusk. This is the flow I have…

---

## [Need help creating a percentage timer](https://discourse.nodered.org/t/need-help-creating-a-percentage-timer/58619)

<div class="topic-metadata">

**Author:** [@gysief](https://discourse.nodered.org/u/gysief)\
**Replies:** 27\
**Last updated:** [22 February 2022 19:21 UTC](https://discourse.nodered.org/t/need-help-creating-a-percentage-timer/58619 "2022-02-22T19:21:11Z")

</div>

Hi Everybody. My first post ever So I am a bit new. I need to make a percentage time with a UI like a slider (with value on top) or something. The slide rage must me 0 - 100%. The timer must never stop unless it recei…

---

## [Mathematical equation](https://discourse.nodered.org/t/mathematical-equation/58721)

<div class="topic-metadata">

**Author:** [@ilse.markert](https://discourse.nodered.org/u/ilse.markert)\
**Replies:** 13\
**Last updated:** [22 February 2022 18:01 UTC](https://discourse.nodered.org/t/mathematical-equation/58721 "2022-02-22T18:01:27Z")

</div>

Hello, I am trying to calculate the vapor pressure deficit in node red. So In two change nodes I want to use the formulas below: but I have no idea what is the correct way to put this formula in there. Of course …

---

## [IBM Cloud Cloudant hosted Node.red Dashboard not persistent on other devices](https://discourse.nodered.org/t/ibm-cloud-cloudant-hosted-node-red-dashboard-not-persistent-on-other-devices/58827)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.nodered.org/u/sim)\
**Replies:** 0\
**Last updated:** [22 February 2022 16:43 UTC](https://discourse.nodered.org/t/ibm-cloud-cloudant-hosted-node-red-dashboard-not-persistent-on-other-devices/58827 "2022-02-22T16:43:45Z")

</div>

Hi I have Node.red hosted on IBM Cloud Cloudant but the /ui is not available on my phone once I close out of the node.red session on my laptop. Example of https://.kqyzhejb40w.us-south.codeengine.appdomain.cloud/ui Why…

---

## [Ds18b20 Node-red-piervin-sensor-wired not work on rpi zero wh with node red 1.02](https://discourse.nodered.org/t/ds18b20-node-red-piervin-sensor-wired-not-work-on-rpi-zero-wh-with-node-red-1-02/17241)

<div class="topic-metadata">

**Author:** [@devifast](https://discourse.nodered.org/u/devifast)\
**Replies:** 8\
**Last updated:** [22 February 2022 15:12 UTC](https://discourse.nodered.org/t/ds18b20-node-red-piervin-sensor-wired-not-work-on-rpi-zero-wh-with-node-red-1-02/17241 "2022-02-22T15:12:42Z")

</div>

ds18b20 node-red-piervin-sensor-wired not work on rpi zero wh with raspbian stretch lite and node red 1.02 after update from node red 1.0.On rpi3b+ its work. I change many sensors and 1-wire pin but no effect. I show se…

---

## [How to capture a live photo with mobile/webcam camera while chatting in Telegram bot and send it to bot?](https://discourse.nodered.org/t/how-to-capture-a-live-photo-with-mobile-webcam-camera-while-chatting-in-telegram-bot-and-send-it-to-bot/58806)

<div class="topic-metadata">

**Author:** [@RavinderSingh13](https://discourse.nodered.org/u/RavinderSingh13)\
**Replies:** 0\
**Last updated:** [22 February 2022 10:16 UTC](https://discourse.nodered.org/t/how-to-capture-a-live-photo-with-mobile-webcam-camera-while-chatting-in-telegram-bot-and-send-it-to-bot/58806 "2022-02-22T10:16:50Z")

</div>

Hello All, I have been searching over forums to automate an option eg: /take\_picture on Telegram bot. Which starts mobile's/Webcam(laptop)'s camera ON and takes photo automatically(like banks doing for video KYC etc the…

---

## [Node-red-contrib-gapit-results not inserting to InflluxDB2.1](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761)

<div class="topic-metadata">

**Author:** [@John245](https://discourse.nodered.org/u/John245)\
**Replies:** 11\
**Last updated:** [22 February 2022 13:43 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761 "2022-02-22T13:43:03Z")

</div>

The node-red-contrib-gapit-results Node has the following output: I want to insert that in InfluxDB2.1 using the node-red-contrib-influxdb without sucess. In the influxdb Node: Organization: Organization ID in Inf…

---

## [Servo motor Control using a button in a Dashboard](https://discourse.nodered.org/t/servo-motor-control-using-a-button-in-a-dashboard/58805)

<div class="topic-metadata">

**Author:** [@noobmaster](https://discourse.nodered.org/u/noobmaster)\
**Replies:** 1\
**Last updated:** [22 February 2022 10:53 UTC](https://discourse.nodered.org/t/servo-motor-control-using-a-button-in-a-dashboard/58805 "2022-02-22T10:53:08Z")

</div>

i want a node flow to control a servo motor, i , using it as gate so if the button was clicked it needs to opens delay few seconds then close up..

---

## [Minor bug with Filter RBE nodes](https://discourse.nodered.org/t/minor-bug-with-filter-rbe-nodes/58461)

<div class="topic-metadata">

**Author:** [@gsbn](https://discourse.nodered.org/u/gsbn)\
**Replies:** 16\
**Last updated:** [22 February 2022 10:30 UTC](https://discourse.nodered.org/t/minor-bug-with-filter-rbe-nodes/58461 "2022-02-22T10:30:15Z")

</div>

Since the RBE node was renamed to Filter, I'm no longer seeing any of the strings in the Filter settings form. See screenshot: Currently on the latest release of NodeRed, and can hack/fix it by manually installing t…

---

## [Function node. How to refer to several messages?](https://discourse.nodered.org/t/function-node-how-to-refer-to-several-messages/58759)

<div class="topic-metadata">

**Author:** [@WBr](https://discourse.nodered.org/u/WBr)\
**Replies:** 13\
**Last updated:** [22 February 2022 08:52 UTC](https://discourse.nodered.org/t/function-node-how-to-refer-to-several-messages/58759 "2022-02-22T08:52:28Z")

</div>

I am looking for a method to use the function node to do some math with. There are multiple sensors in my flow providing me with data. The way I would like to do this is to grab 1 message from a sensor. Grab another m…

---

## [Send multiple TCP commands after release and how to check if it's done and successfull](https://discourse.nodered.org/t/send-multiple-tcp-commands-after-release-and-how-to-check-if-its-done-and-successfull/58793)

<div class="topic-metadata">

**Author:** [@alda](https://discourse.nodered.org/u/alda)\
**Replies:** 0\
**Last updated:** [22 February 2022 07:41 UTC](https://discourse.nodered.org/t/send-multiple-tcp-commands-after-release-and-how-to-check-if-its-done-and-successfull/58793 "2022-02-22T07:41:46Z")

</div>

I have working TCP communication with heating main unit. This flow will send a TCP commands (sep by step) to main unit to make a temperature change : \[{"id":"d261b90f0cf38dc3","type":"tcp request","z":"59fb2f9263e14661…

---

## [Hello all , I want your help in adding two consecutive msg.payload array\[\] and then finding running average for latest value + stored value](https://discourse.nodered.org/t/hello-all-i-want-your-help-in-adding-two-consecutive-msg-payload-array-and-then-finding-running-average-for-latest-value-stored-value/58513)

<div class="topic-metadata">

**Author:** [@developedbymayur](https://discourse.nodered.org/u/developedbymayur)\
**Replies:** 26\
**Last updated:** [22 February 2022 04:37 UTC](https://discourse.nodered.org/t/hello-all-i-want-your-help-in-adding-two-consecutive-msg-payload-array-and-then-finding-running-average-for-latest-value-stored-value/58513 "2022-02-22T04:37:22Z")

</div>

let total = 0 let count = 0 // number of samples accumulated let answer = \[\] for (i = 0; i \< msg.payload.length; i++) { total += msg.payload\[i\].y if (i \>= n) { total -= msg.payload\[i-n\].y count…

---

## [Use of payload to select device in DeConz](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786)

<div class="topic-metadata">

**Author:** [@RichardKT](https://discourse.nodered.org/u/RichardKT)\
**Replies:** 0\
**Last updated:** [22 February 2022 01:15 UTC](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786 "2022-02-22T01:15:57Z")

</div>

Hi, In order to be able to dynamically switch on/off multiple lights based on a generic timer, I would like to address the individual lights as to switch them on or off. I have the deConz device\_id of the lights that ne…

---

## [Node-red subflow environment variables](https://discourse.nodered.org/t/node-red-subflow-environment-variables/58783)

<div class="topic-metadata">

**Author:** [@Daniel\_1](https://discourse.nodered.org/u/Daniel_1)\
**Replies:** 2\
**Last updated:** [22 February 2022 00:27 UTC](https://discourse.nodered.org/t/node-red-subflow-environment-variables/58783 "2022-02-22T00:27:45Z")

</div>

Hello i defined a node-red subflow environment variable like this Why I cant use math expresions like 2\*1000 i.e. is there a workaround? Since the variable is in mseg i'd prefer for clarity use 15 \* 60 \* 1000 for…

---

## [Just noticed this reported from npm? Any idea when NR will jump to pkg.json? If ever?](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 13\
**Last updated:** [22 February 2022 00:11 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779 "2022-02-22T00:11:14Z")

</div>

Just noticed this reported from npm? Any idea when NR will jump to pkg.json? If ever? npm WARN deprecated package.json@2.0.1: Use pkg.json instead. .

---

## [Error when entering data in Mysql](https://discourse.nodered.org/t/error-when-entering-data-in-mysql/58767)

<div class="topic-metadata">

**Author:** [@Disaile12](https://discourse.nodered.org/u/Disaile12)\
**Replies:** 5\
**Last updated:** [21 February 2022 22:51 UTC](https://discourse.nodered.org/t/error-when-entering-data-in-mysql/58767 "2022-02-21T22:51:48Z")

</div>

Hello everyone, I have a problem which I cannot solve, I am trying to enter some boolean data from the output of a Siemens LOGO8 into a mysql table, simply 1 or 0, but when executing the instruction I get the following e…

---

## [How to get installed version of NR?](https://discourse.nodered.org/t/how-to-get-installed-version-of-nr/58669)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 32\
**Last updated:** [21 February 2022 22:43 UTC](https://discourse.nodered.org/t/how-to-get-installed-version-of-nr/58669 "2022-02-21T22:43:54Z")

</div>

I was using the following to get the latest version of NR available, and it still works... npm search node-red | grep Low-code | cut -d '|' -f4-5 And I was using the following to get the installed version, but this see…

---

## [If 1 message ... if 2 messages](https://discourse.nodered.org/t/if-1-message-if-2-messages/58753)

<div class="topic-metadata">

**Author:** [@Miliano](https://discourse.nodered.org/u/Miliano)\
**Replies:** 5\
**Last updated:** [21 February 2022 22:42 UTC](https://discourse.nodered.org/t/if-1-message-if-2-messages/58753 "2022-02-21T22:42:44Z")

</div>

Hello :slight\_smile: I have a little problem and can´t find a solution. Hope you can give me a tip. I need something like this: Input: message a -\> Output message a Input: message b -\> Output message b Input: messag…

---

## [Connecting to Mariadb server on another computer](https://discourse.nodered.org/t/connecting-to-mariadb-server-on-another-computer/58764)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 4\
**Last updated:** [21 February 2022 21:54 UTC](https://discourse.nodered.org/t/connecting-to-mariadb-server-on-another-computer/58764 "2022-02-21T21:54:17Z")

</div>

I have MariaDB running on a Raspberry Pi (192.168.1.11) and I can access it from Node-red on that Pi, using node-red-node-mysql. In /etc/mysql/mariadb.conf.d/50-server.cnf I have bind-address = 0.0.0.0 netstat -ant | …

---

## [Node-Red in an AWS Ubuntu Instance - How to download an CSV file](https://discourse.nodered.org/t/node-red-in-an-aws-ubuntu-instance-how-to-download-an-csv-file/58766)

<div class="topic-metadata">

**Author:** [@DemalCal96](https://discourse.nodered.org/u/DemalCal96)\
**Replies:** 0\
**Last updated:** [21 February 2022 19:22 UTC](https://discourse.nodered.org/t/node-red-in-an-aws-ubuntu-instance-how-to-download-an-csv-file/58766 "2022-02-21T19:22:57Z")

</div>

Hello, I'm working with Node-Red using an AWS Instance of Ubuntu in EC2. I'm generating an Array of JSON files that I'm using to show in a table over a dashboard, but I want people to have the chance to download that ta…

---

## [flowContext does not work](https://discourse.nodered.org/t/flowcontext-does-not-work/58703)

<div class="topic-metadata">

**Author:** [@JJdave](https://discourse.nodered.org/u/JJdave)\
**Replies:** 6\
**Last updated:** [21 February 2022 19:20 UTC](https://discourse.nodered.org/t/flowcontext-does-not-work/58703 "2022-02-21T19:20:22Z")

</div>

Hi there I have some troubles with flowContext in below flow. The local variable SollPosSchlafen is properly set as an integer? Is there a way to check the type of the variable?? On the other hand, the coser\_set\_pos do…

[Previous page](https://discourse.nodered.org/c/general/7.md?page=415)

[Next page](https://discourse.nodered.org/c/general/7.md?page=417)
