# General

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

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

**Page:** 684

---

## [Function Node for Beginner](https://discourse.nodered.org/t/function-node-for-beginner/32948)

<div class="topic-metadata">

**Author:** [@Philip](https://discourse.nodered.org/u/Philip)\
**Replies:** 17\
**Last updated:** [16 September 2020 15:59 UTC](https://discourse.nodered.org/t/function-node-for-beginner/32948 "2020-09-16T15:59:17Z")

</div>

Hi Guys I'm a total beginner to Node-Red with no programming experience.....I am looking to connect a DHT11 Temp Humidity Sensor with an Uno (Done) and represent on Two Graphs Node Red /ui. I am stuck with the Java code…

---

## [Receive from Andoid/iOS push alerts/notifications](https://discourse.nodered.org/t/receive-from-andoid-ios-push-alerts-notifications/14834)

<div class="topic-metadata">

**Author:** [@Romprod](https://discourse.nodered.org/u/Romprod)\
**Replies:** 4\
**Last updated:** [16 September 2020 13:18 UTC](https://discourse.nodered.org/t/receive-from-andoid-ios-push-alerts-notifications/14834 "2020-09-16T13:18:41Z")

</div>

Hi, Is it possible to receive alerts from either Android or iOS somehow? I can't see any nodes that will do that (tbh I don't even know where to start with this one! :smile: )

---

## [Lookup closest matching value of array and return array index number](https://discourse.nodered.org/t/lookup-closest-matching-value-of-array-and-return-array-index-number/32927)

<div class="topic-metadata">

**Author:** [@Zodiac-69](https://discourse.nodered.org/u/Zodiac-69)\
**Replies:** 3\
**Last updated:** [16 September 2020 12:19 UTC](https://discourse.nodered.org/t/lookup-closest-matching-value-of-array-and-return-array-index-number/32927 "2020-09-16T12:19:13Z")

</div>

Hi All I have a payload 0 to 5 in non-linear fractions. i have a "look up" array\[16\] How do i do the following? Find the value in the array that closest match the payload. Return the index position of this value.

---

## [How to queue / hold the sensor values ,when there is a internet failure occurs](https://discourse.nodered.org/t/how-to-queue-hold-the-sensor-values-when-there-is-a-internet-failure-occurs/32608)

<div class="topic-metadata">

**Author:** [@Energycharges](https://discourse.nodered.org/u/Energycharges)\
**Replies:** 16\
**Last updated:** [14 September 2020 06:15 UTC](https://discourse.nodered.org/t/how-to-queue-hold-the-sensor-values-when-there-is-a-internet-failure-occurs/32608 "2020-09-14T06:15:02Z")

</div>

Hi All, Am trying to send my sensor data from raspberry node red to mongo atlas cloud db , am losing the datas when internet failure occurs . am using the 4g data for the internet . can anyone give a solution to h…

---

## [Node-RED SQLITE stores Data Base on windows](https://discourse.nodered.org/t/node-red-sqlite-stores-data-base-on-windows/1438)

<div class="topic-metadata">

**Author:** [@kharlos04](https://discourse.nodered.org/u/kharlos04)\
**Replies:** 13\
**Last updated:** [16 September 2020 07:04 UTC](https://discourse.nodered.org/t/node-red-sqlite-stores-data-base-on-windows/1438 "2020-09-16T07:04:03Z")

</div>

Hi there ! I wanna store the temperature measurement and the time when the measurement was done; actually works fine on my flow (I've a UI to display the table, I made it using dashboard), the problem is I don't know wh…

---

## [Help with function, checking a value](https://discourse.nodered.org/t/help-with-function-checking-a-value/32938)

<div class="topic-metadata">

**Author:** [@BassTeQ](https://discourse.nodered.org/u/BassTeQ)\
**Replies:** 3\
**Last updated:** [16 September 2020 08:01 UTC](https://discourse.nodered.org/t/help-with-function-checking-a-value/32938 "2020-09-16T08:01:44Z")

</div>

Hello, I'm having trouble trying to work out why this logic isn't going into the last condition if (status == "true") { appreciate any help var status = msg.payload.on; // // used to skip the startup event var transitio…

---

## [Pendrive/SD card file copy](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 21\
**Last updated:** [16 September 2020 07:25 UTC](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829 "2020-09-16T07:25:35Z")

</div>

Hi All, I would like my node-red flow to copy some files to a pendrive or an SD card as soon as I plug it into the raspberry pi. I understand that this is more of a linux question how to detect a new device and mount th…

---

## [Help Function for multi line chart](https://discourse.nodered.org/t/help-function-for-multi-line-chart/32298)

<div class="topic-metadata">

**Author:** [@Cristiano](https://discourse.nodered.org/u/Cristiano)\
**Replies:** 2\
**Last updated:** [16 September 2020 00:31 UTC](https://discourse.nodered.org/t/help-function-for-multi-line-chart/32298 "2020-09-16T00:31:58Z")

</div>

Hello, Im trying to get data from influx and put in multi line chart, the problem is if i get a huge array i got error or if i inject the message using the node i get error. Error: function : (error) TypeError: Canno…

---

## [Time to start on dashboard](https://discourse.nodered.org/t/time-to-start-on-dashboard/32721)

<div class="topic-metadata">

**Author:** [@lalo](https://discourse.nodered.org/u/lalo)\
**Replies:** 13\
**Last updated:** [15 September 2020 21:13 UTC](https://discourse.nodered.org/t/time-to-start-on-dashboard/32721 "2020-09-15T21:13:11Z")

</div>

Hi, I'm trying to create like a timer from the dashabord so the user select the hout to start, and I'm having troubles to create the object. I will paste my flow here. \[{"id":"78b0667e.628df8","type":"tab","label":"Irr…

---

## [\[solved\] Cannot install/use npm in Ubuntu 16.04 LTS](https://discourse.nodered.org/t/solved-cannot-install-use-npm-in-ubuntu-16-04-lts/32925)

<div class="topic-metadata">

**Author:** [@loeten](https://discourse.nodered.org/u/loeten)\
**Replies:** 6\
**Last updated:** [15 September 2020 20:28 UTC](https://discourse.nodered.org/t/solved-cannot-install-use-npm-in-ubuntu-16-04-lts/32925 "2020-09-15T20:28:48Z")

</div>

Dear all, on an older laptop, used for a lot of things, I would like to use node-red. I tried so many things and at least I see: $ node -v v14.10.1 npm -v 6.14.8 but I had some warnings also,and I cannot install no…

---

## [Read Telegram Group](https://discourse.nodered.org/t/read-telegram-group/32816)

<div class="topic-metadata">

**Author:** [@Fiveat](https://discourse.nodered.org/u/Fiveat)\
**Replies:** 6\
**Last updated:** [15 September 2020 20:13 UTC](https://discourse.nodered.org/t/read-telegram-group/32816 "2020-09-15T20:13:34Z")

</div>

Hello team, I'd like to know if could be possible read a telegram group (I'm not the owner, just a viewer) and resend this text to another group where I'm the Owner. Thanks in advance and kind regards,

---

## [Parse CSV and Skip lines starting with #](https://discourse.nodered.org/t/parse-csv-and-skip-lines-starting-with/32923)

<div class="topic-metadata">

**Author:** [@Meistro](https://discourse.nodered.org/u/Meistro)\
**Replies:** 4\
**Last updated:** [15 September 2020 20:10 UTC](https://discourse.nodered.org/t/parse-csv-and-skip-lines-starting-with/32923 "2020-09-15T20:10:14Z")

</div>

Hello all, I want to use this data without editing the source file. The quantity of lines at the start of the file with # varies so I can't easily just skip the first so many lines. # RaceRender Data: TrackAddict 4.4.2…

---

## [Does sqlite node build a queue?](https://discourse.nodered.org/t/does-sqlite-node-build-a-queue/32910)

<div class="topic-metadata">

**Author:** [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Replies:** 5\
**Last updated:** [15 September 2020 20:04 UTC](https://discourse.nodered.org/t/does-sqlite-node-build-a-queue/32910 "2020-09-15T20:04:03Z")

</div>

Hi All, Just a simple question to which I could not find the answer in the help of the node: does the sqlite node build a queue of the incoming requests? As there may be multiple concurrent listeners of the same sqlite …

---

## [Alexa speak msg.payload within a defined sentence](https://discourse.nodered.org/t/alexa-speak-msg-payload-within-a-defined-sentence/32763)

<div class="topic-metadata">

**Author:** [@Robmak](https://discourse.nodered.org/u/Robmak)\
**Replies:** 11\
**Last updated:** [15 September 2020 19:24 UTC](https://discourse.nodered.org/t/alexa-speak-msg-payload-within-a-defined-sentence/32763 "2020-09-15T19:24:33Z")

</div>

hi, I am using node-red for my smart home automation. So far my flows are working brilliantly integrating my rf bridge with home made rf door contacts, sonoff / tasmota switches, ip camera, lg smart tv, rf smart plugs a…

---

## [What zwave2mqtt payload to turn on a Telldus plug-in switch?](https://discourse.nodered.org/t/what-zwave2mqtt-payload-to-turn-on-a-telldus-plug-in-switch/32885)

<div class="topic-metadata">

**Author:** [@harelabb](https://discourse.nodered.org/u/harelabb)\
**Replies:** 1\
**Last updated:** [15 September 2020 17:23 UTC](https://discourse.nodered.org/t/what-zwave2mqtt-payload-to-turn-on-a-telldus-plug-in-switch/32885 "2020-09-15T17:23:43Z")

</div>

Hi. I am using zwave2mqtt to try and switch on a wall switch. In the zwave2mqtt settings (myPi:8091) it is called Switch (6-37-1-0). No value name or type, only a switch widget. My zwave2mqtt prefix is "zwave", so I …

---

## [Serial nodes appear to stop working](https://discourse.nodered.org/t/serial-nodes-appear-to-stop-working/32920)

<div class="topic-metadata">

**Author:** [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Replies:** 0\
**Last updated:** [15 September 2020 16:37 UTC](https://discourse.nodered.org/t/serial-nodes-appear-to-stop-working/32920 "2020-09-15T16:37:49Z")

</div>

I have a dozen or so devices in the field that run NR for months on end without a restart. The application makes heavy use of the serial nodes, with several messages per second crossing the wire. I'm running NR 1.0.x wit…

---

## [Cannot install module via HTTP Admin API](https://discourse.nodered.org/t/cannot-install-module-via-http-admin-api/20335)

<div class="topic-metadata">

**Author:** [@brunoshine](https://discourse.nodered.org/u/brunoshine)\
**Replies:** 12\
**Last updated:** [15 September 2020 16:04 UTC](https://discourse.nodered.org/t/cannot-install-module-via-http-admin-api/20335 "2020-09-15T16:04:35Z")

</div>

Hi all, I'm trying to install a custom module via the HTTP Admin API but with no success as I keep getting: { "code": "MODULE\_NOT\_FOUND", "message": "Cannot find module '\[ABSOLUTE PATH PATH TO MY MODULE DIR\]'" } O…

---

## [Copying everything between two NR instances](https://discourse.nodered.org/t/copying-everything-between-two-nr-instances/32710)

<div class="topic-metadata">

**Author:** [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Replies:** 49\
**Last updated:** [15 September 2020 15:48 UTC](https://discourse.nodered.org/t/copying-everything-between-two-nr-instances/32710 "2020-09-15T15:48:29Z")

</div>

Hello, I know that through export/import I can copy flows between two hosts. However, other elements, such as additional nodes installed via the palette, or configuration nodes will not be copied with this method. Is t…

---

## [How should I save the contents of the ini file](https://discourse.nodered.org/t/how-should-i-save-the-contents-of-the-ini-file/32915)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 6\
**Last updated:** [15 September 2020 15:37 UTC](https://discourse.nodered.org/t/how-should-i-save-the-contents-of-the-ini-file/32915 "2020-09-15T15:37:37Z")

</div>

Hello Everyone, I'm completely new to node-red and javascript. I have an ini file that defines the configuration of the Node-RED application created by the user and can change the value. After reading the contents of …

---

## [Generate QR code with exec node fault](https://discourse.nodered.org/t/generate-qr-code-with-exec-node-fault/32904)

<div class="topic-metadata">

**Author:** [@ismetbalci](https://discourse.nodered.org/u/ismetbalci)\
**Replies:** 9\
**Last updated:** [15 September 2020 15:34 UTC](https://discourse.nodered.org/t/generate-qr-code-with-exec-node-fault/32904 "2020-09-15T15:34:29Z")

</div>

Hello to all, I can run the qr command with putty but I can not run it in the node-red with exec node.Could you help me ?

---

## [Http in node, caller IP address](https://discourse.nodered.org/t/http-in-node-caller-ip-address/32820)

<div class="topic-metadata">

**Author:** [@kahmed](https://discourse.nodered.org/u/kahmed)\
**Replies:** 13\
**Last updated:** [15 September 2020 14:12 UTC](https://discourse.nodered.org/t/http-in-node-caller-ip-address/32820 "2020-09-15T14:12:53Z")

</div>

I need to have the ability to get the client IP address. On my flow i have http-in node that accept (get api call), i need to be able to get the client Ip address who called the API. it is very urgent, appreciate your h…

---

## [Override Deploy event (triggered from Editor) in Node-RED](https://discourse.nodered.org/t/override-deploy-event-triggered-from-editor-in-node-red/32911)

<div class="topic-metadata">

**Author:** [@gauravdasgupta](https://discourse.nodered.org/u/gauravdasgupta)\
**Replies:** 0\
**Last updated:** [15 September 2020 11:35 UTC](https://discourse.nodered.org/t/override-deploy-event-triggered-from-editor-in-node-red/32911 "2020-09-15T11:35:30Z")

</div>

Hello all, I am trying to perform some logics when we click the 'Deploy' button on top of our Editor. I am habitual of using lifecycle hooks (like we have in angular, ember, etc.). So I am trying to find some functions …

---

## [How to convert and store modbus data into csv file](https://discourse.nodered.org/t/how-to-convert-and-store-modbus-data-into-csv-file/32851)

<div class="topic-metadata">

**Author:** [@Energycharges](https://discourse.nodered.org/u/Energycharges)\
**Replies:** 18\
**Last updated:** [15 September 2020 09:40 UTC](https://discourse.nodered.org/t/how-to-convert-and-store-modbus-data-into-csv-file/32851 "2020-09-15T09:40:13Z")

</div>

While connecting modbus , I got 1 part of the output. Working on other part , modbus data to convert and store harmonics data into csv file. Running separately Im getting output in debug , while connecting along with f…

---

## [Node red table formatting with condition](https://discourse.nodered.org/t/node-red-table-formatting-with-condition/32879)

<div class="topic-metadata">

**Author:** [@apex](https://discourse.nodered.org/u/apex)\
**Replies:** 3\
**Last updated:** [15 September 2020 07:20 UTC](https://discourse.nodered.org/t/node-red-table-formatting-with-condition/32879 "2020-09-15T07:20:43Z")

</div>

for the table node the suggested format is \[ { "Name": "Kazuhito Yokoi", "Age": "35", "Favourite Color": "red", "Date Of Birth": "12/09/1983" }, { "Name": "Oli Bob"…

---

## [ModuleNotFoundErr](https://discourse.nodered.org/t/modulenotfounderr/32877)

<div class="topic-metadata">

**Author:** [@dounaite](https://discourse.nodered.org/u/dounaite)\
**Replies:** 4\
**Last updated:** [15 September 2020 07:12 UTC](https://discourse.nodered.org/t/modulenotfounderr/32877 "2020-09-15T07:12:22Z")

</div>

hello,everyone i meet problem about python lib import i use the exec node to execute a pyhton file which imports paho.mqtt.client when i enter python3 xxx.py in terminal,it can run normally but in node-red it has modu…

---

## [Null record logged in MSSQL when using parser payload value to logged](https://discourse.nodered.org/t/null-record-logged-in-mssql-when-using-parser-payload-value-to-logged/32900)

<div class="topic-metadata">

**Author:** [@Ajay1](https://discourse.nodered.org/u/Ajay1)\
**Replies:** 1\
**Last updated:** [15 September 2020 07:11 UTC](https://discourse.nodered.org/t/null-record-logged-in-mssql-when-using-parser-payload-value-to-logged/32900 "2020-09-15T07:11:43Z")

</div>

parser- msg.payload = \["swapmicro","swapmicro@gmail.com","swap","zzz@321",55.66\]; return msg; DECLARE @data VARCHAR(MAX) DECLARE @Name VARCHAR(50) DECLARE @Email VARCHAR(50) DECLARE @usName VARCHAR(50) DECLARE @PW…

---

## [How to edit HTML returned by GET requests to admin interface](https://discourse.nodered.org/t/how-to-edit-html-returned-by-get-requests-to-admin-interface/32897)

<div class="topic-metadata">

**Author:** [@nicholas](https://discourse.nodered.org/u/nicholas)\
**Replies:** 1\
**Last updated:** [15 September 2020 00:52 UTC](https://discourse.nodered.org/t/how-to-edit-html-returned-by-get-requests-to-admin-interface/32897 "2020-09-15T00:52:27Z")

</div>

I have an instance of Node-RED running on AWS Elastic Beanstalk. It's working fine, but I've run into a funny wrinkle : when moving the admin interface to a non-root location (say, /red), the EB health monitor shows the…

---

## [Is the result of reading one line of the file a string?](https://discourse.nodered.org/t/is-the-result-of-reading-one-line-of-the-file-a-string/32861)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 2\
**Last updated:** [14 September 2020 21:37 UTC](https://discourse.nodered.org/t/is-the-result-of-reading-one-line-of-the-file-a-string/32861 "2020-09-14T21:37:13Z")

</div>

I used file in node to read the ini file, but comparing the value of the readable line is not correct var val1 = "\[PATH\]".localeCompare(msg.payload); // val1 = -1 var val2 = "\[PATH\]" === msg.payload; //…

---

## [How i can run this?](https://discourse.nodered.org/t/how-i-can-run-this/32893)

<div class="topic-metadata">

**Author:** [@corin.corvus](https://discourse.nodered.org/u/corin.corvus)\
**Replies:** 0\
**Last updated:** [14 September 2020 19:25 UTC](https://discourse.nodered.org/t/how-i-can-run-this/32893 "2020-09-14T19:25:59Z")

</div>

Hi, i try to solve a Flow with my old AMP. At the Moment i have a Shelly Plug on my Kenwood Amp to get watt. 0-3watt are standby/off 20+ watt are online. To control my AMP i build a IR Remote with Wifi. Now i have t…

---

## [Email will not send](https://discourse.nodered.org/t/email-will-not-send/32859)

<div class="topic-metadata">

**Author:** [@Jarnis](https://discourse.nodered.org/u/Jarnis)\
**Replies:** 2\
**Last updated:** [14 September 2020 18:16 UTC](https://discourse.nodered.org/t/email-will-not-send/32859 "2020-09-14T18:16:49Z")

</div>

Hi My email node has stopped working. This is the error message i get. Error: queryA ETIMEOUT smtp.gmail.com I use a Gmail account in the beginning it worked. i used allow less supported apps feature Now i have als…

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

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