# General

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

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

**Page:** 373

---

## [Deep copies in change node](https://discourse.nodered.org/t/deep-copies-in-change-node/63093)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 0\
**Last updated:** [26 May 2022 08:24 UTC](https://discourse.nodered.org/t/deep-copies-in-change-node/63093 "2022-05-26T08:24:29Z")

</div>

I always program defensively so when the change node got the deep copy option added - I always tick it I only have a vague grasp of why this is necessary but I do it in the hope that one node won't affect the operatio…

---

## [Short Cycle - temps close](https://discourse.nodered.org/t/short-cycle-temps-close/63078)

<div class="topic-metadata">

**Author:** [@hollapm](https://discourse.nodered.org/u/hollapm)\
**Replies:** 1\
**Last updated:** [26 May 2022 02:24 UTC](https://discourse.nodered.org/t/short-cycle-temps-close/63078 "2022-05-26T02:24:35Z")

</div>

I have a whole house fan that takes a look at temperature and if the inside temp is warmer than outside the whole house fan turns on. Its quite a bit more complex than that - I'll share my code, but when the outside tem…

---

## [Worldmap - define buttons in one message](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017)

<div class="topic-metadata">

**Author:** [@mickym2](https://discourse.nodered.org/u/mickym2)\
**Replies:** 3\
**Last updated:** [25 May 2022 21:27 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017 "2022-05-25T21:27:53Z")

</div>

Is it possible to define more than one button in a command or message. An array of button definitions seems not to work. \`{ "command": { "button": { "name": "Home", "icon": "fa-home",…

---

## [Extracting a Number from a specific line from a string](https://discourse.nodered.org/t/extracting-a-number-from-a-specific-line-from-a-string/63071)

<div class="topic-metadata">

**Author:** [@gammalikker](https://discourse.nodered.org/u/gammalikker)\
**Replies:** 3\
**Last updated:** [25 May 2022 20:33 UTC](https://discourse.nodered.org/t/extracting-a-number-from-a-specific-line-from-a-string/63071 "2022-05-25T20:33:53Z")

</div>

Hello, i have a "mqtt in" node that receives messages in the from a string from my smart meter. I only need one line from the message or more specifically the last numbers in that line. I have looked around on the forum…

---

## [Getting information from 2 different msg and putting out a msg that can be charted](https://discourse.nodered.org/t/getting-information-from-2-different-msg-and-putting-out-a-msg-that-can-be-charted/63011)

<div class="topic-metadata">

**Author:** [@CAG](https://discourse.nodered.org/u/CAG)\
**Replies:** 4\
**Last updated:** [25 May 2022 16:38 UTC](https://discourse.nodered.org/t/getting-information-from-2-different-msg-and-putting-out-a-msg-that-can-be-charted/63011 "2022-05-25T16:38:57Z")

</div>

ok, here is what I am doing. I have HomeSeer (z-wave hub) and Ambient Weather. I can read both of these just fine, what I am trying to do is: Check the thermostat to see if it is on/off if it is on then chart the Co…

---

## [Generate x copies of a message](https://discourse.nodered.org/t/generate-x-copies-of-a-message/63057)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 3\
**Last updated:** [25 May 2022 15:41 UTC](https://discourse.nodered.org/t/generate-x-copies-of-a-message/63057 "2022-05-25T15:41:15Z")

</div>

I'm working on splitting a retrieved image into tiles so I'm thinking of cropping it x times to do this. But this means I need each incoming message to trigger sending x messages in a row for processing downstream. I f…

---

## [Sending an array payload values into MySQL dB](https://discourse.nodered.org/t/sending-an-array-payload-values-into-mysql-db/63055)

<div class="topic-metadata">

**Author:** [@Ganesh](https://discourse.nodered.org/u/Ganesh)\
**Replies:** 2\
**Last updated:** [25 May 2022 14:45 UTC](https://discourse.nodered.org/t/sending-an-array-payload-values-into-mysql-db/63055 "2022-05-25T14:45:01Z")

</div>

Hi As it is visible in the image below I have an array of 26 values which I want to send it into MySQL dB , Under voltage Colum I have 26 rows , one value at each row , and incoming data is from ignition edge and every …

---

## [External env. when using projects](https://discourse.nodered.org/t/external-env-when-using-projects/63054)

<div class="topic-metadata">

**Author:** [@grawsom](https://discourse.nodered.org/u/grawsom)\
**Replies:** 0\
**Last updated:** [25 May 2022 13:43 UTC](https://discourse.nodered.org/t/external-env-when-using-projects/63054 "2022-05-25T13:43:45Z")

</div>

When using "external" environment variables, you have something like var env\_external = require("./env-external"); But what to du when using "Projects"? Do you make one big file, or can you do this pr. "project" Some…

---

## [Nodered Flow Versioning in GIT](https://discourse.nodered.org/t/nodered-flow-versioning-in-git/62882)

<div class="topic-metadata">

**Author:** [@Darwin](https://discourse.nodered.org/u/Darwin)\
**Replies:** 4\
**Last updated:** [25 May 2022 13:13 UTC](https://discourse.nodered.org/t/nodered-flow-versioning-in-git/62882 "2022-05-25T13:13:11Z")

</div>

Hi Forum, I have a generic question. I am trying to keep my nodered flows within a GIT repo to enable versioning. So I export all the flows and copy them over into a git repo. What I noticed there is that the "id" attr…

---

## [Making a AND function](https://discourse.nodered.org/t/making-a-and-function/62955)

<div class="topic-metadata">

**Author:** [@Naz](https://discourse.nodered.org/u/Naz)\
**Replies:** 11\
**Last updated:** [25 May 2022 13:01 UTC](https://discourse.nodered.org/t/making-a-and-function/62955 "2022-05-25T13:01:03Z")

</div>

Hi, This is second time im using node-red so im still a rookie :smiley: Im having trouble getting my function to work. Need to sends out a 1 or 0 in debug node. Im using rasberry pi 4b with PIR and ultra sonic sensor. …

---

## [Switch a value from boolean](https://discourse.nodered.org/t/switch-a-value-from-boolean/63042)

<div class="topic-metadata">

**Author:** [@Geppy57](https://discourse.nodered.org/u/Geppy57)\
**Replies:** 3\
**Last updated:** [25 May 2022 12:38 UTC](https://discourse.nodered.org/t/switch-a-value-from-boolean/63042 "2022-05-25T12:38:35Z")

</div>

Hi all. I want set a function output to an input value when a boolean becomes true and to zero when boolean become false. I try with switch and change but nothing runs correct. I try with two ways : set a value 0 for …

---

## [Http request Node not working in NodeRED behind Reverse Proxy](https://discourse.nodered.org/t/http-request-node-not-working-in-nodered-behind-reverse-proxy/63043)

<div class="topic-metadata">

**Author:** [@Bond246](https://discourse.nodered.org/u/Bond246)\
**Replies:** 3\
**Last updated:** [25 May 2022 12:36 UTC](https://discourse.nodered.org/t/http-request-node-not-working-in-nodered-behind-reverse-proxy/63043 "2022-05-25T12:36:54Z")

</div>

Hello, i have multible instances of NodeRED in a docker environment. To access them i exposed different Ports for every instance via settings.js and set up a nginx reverse proxy via docker and used virtualports. So now…

---

## [Help creating marks on worldmap](https://discourse.nodered.org/t/help-creating-marks-on-worldmap/62835)

<div class="topic-metadata">

**Author:** [@Henrius](https://discourse.nodered.org/u/Henrius)\
**Replies:** 12\
**Last updated:** [25 May 2022 12:30 UTC](https://discourse.nodered.org/t/help-creating-marks-on-worldmap/62835 "2022-05-25T12:30:33Z")

</div>

Hello, its my first time using Node-RED and I'm kinda lost. I managed to create this flow that uses a rss feed to get locations of fires I could not find another rss feed with the information I need. Now I need to …

---

## [Contrib-smb writing fails](https://discourse.nodered.org/t/contrib-smb-writing-fails/62991)

<div class="topic-metadata">

**Author:** [@kaepten-balu](https://discourse.nodered.org/u/kaepten-balu)\
**Replies:** 3\
**Last updated:** [25 May 2022 12:26 UTC](https://discourse.nodered.org/t/contrib-smb-writing-fails/62991 "2022-05-25T12:26:55Z")

</div>

Hi there, I have an issue with the node-red-contrib-smb node. I am using the following setup: Debian 10 node-red v1.2.9, node-red-contrib-smb v1.2.0 installed the smbclient cifs-utils package. So what's the problem…

---

## [Copy more then 500 Byte in debug](https://discourse.nodered.org/t/copy-more-then-500-byte-in-debug/63036)

<div class="topic-metadata">

**Author:** [@sven](https://discourse.nodered.org/u/sven)\
**Replies:** 2\
**Last updated:** [25 May 2022 12:22 UTC](https://discourse.nodered.org/t/copy-more-then-500-byte-in-debug/63036 "2022-05-25T12:22:48Z")

</div>

Hello I become an array of around 700 byte from an serial device. It is an array. When i use an Debug the Message drop in the Debug window and shows it has 700 Byte. When i use the Copy Message Button in the Debug wind…

---

## [Is today between two relative dates?](https://discourse.nodered.org/t/is-today-between-two-relative-dates/63025)

<div class="topic-metadata">

**Author:** [@terminus](https://discourse.nodered.org/u/terminus)\
**Replies:** 6\
**Last updated:** [25 May 2022 11:46 UTC](https://discourse.nodered.org/t/is-today-between-two-relative-dates/63025 "2022-05-25T11:46:58Z")

</div>

Hey Guys! I'm tryna check with a node or sth. if today is e.g. between April, the 26th and October the 10th or not. Idea is to switch on a pump only on summer or sth. Therefore it should be relative and not absolute. W…

---

## [Humidex index formula help](https://discourse.nodered.org/t/humidex-index-formula-help/63037)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 8\
**Last updated:** [25 May 2022 10:25 UTC](https://discourse.nodered.org/t/humidex-index-formula-help/63037 "2022-05-25T10:25:59Z")

</div>

Hi, can you help me to reproduce this formula in node red function? Ta = temperature value UR = humidity value

---

## [Port 1880 in use](https://discourse.nodered.org/t/port-1880-in-use/62988)

<div class="topic-metadata">

**Author:** [@Razz](https://discourse.nodered.org/u/Razz)\
**Replies:** 16\
**Last updated:** [25 May 2022 09:21 UTC](https://discourse.nodered.org/t/port-1880-in-use/62988 "2022-05-25T09:21:25Z")

</div>

Wrote a For Loop in a function node that was erroneous which i accidentally deployed, thereafter node-red went unresponsive, saw the infinite for loop output that was being displayed in node-red console. Used the command…

---

## [Measuring data transfer rate](https://discourse.nodered.org/t/measuring-data-transfer-rate/63039)

<div class="topic-metadata">

**Author:** [@Razz](https://discourse.nodered.org/u/Razz)\
**Replies:** 0\
**Last updated:** [25 May 2022 09:18 UTC](https://discourse.nodered.org/t/measuring-data-transfer-rate/63039 "2022-05-25T09:18:31Z")

</div>

I would like to do calculate the data transfer rate of 2 bytes via both Modbus and MQTT, is it possible to do such calculations where I get the Mean, Max and Min time of the transfer timing of 2 bytes?

---

## [Mqttt json message modifying while keeping intact](https://discourse.nodered.org/t/mqttt-json-message-modifying-while-keeping-intact/62630)

<div class="topic-metadata">

**Author:** [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Replies:** 25\
**Last updated:** [25 May 2022 09:09 UTC](https://discourse.nodered.org/t/mqttt-json-message-modifying-while-keeping-intact/62630 "2022-05-25T09:09:08Z")

</div>

Ok , another question about messages. so i have this coming in from mqtt and i want to modify each A0,A1,A2,A3 I'm assuming they are considered a json array? Can i use one function node to modify the value A0, A1,A2…

---

## [Need help to implement Netatmo outdoor Cam](https://discourse.nodered.org/t/need-help-to-implement-netatmo-outdoor-cam/63034)

<div class="topic-metadata">

**Author:** [@Mark.Resting](https://discourse.nodered.org/u/Mark.Resting)\
**Replies:** 0\
**Last updated:** [25 May 2022 07:06 UTC](https://discourse.nodered.org/t/need-help-to-implement-netatmo-outdoor-cam/63034 "2022-05-25T07:06:26Z")

</div>

Hi, I would like to add my Netatmo outdoor cam to my nodered envirement. I alreday istalled the node "node-red-contrib-netatmo" and i get an resuld whitin the "get Home Data". So far so good. But i'm really intereted …

---

## [Cannot collect any data from the aubobot](https://discourse.nodered.org/t/cannot-collect-any-data-from-the-aubobot/62986)

<div class="topic-metadata">

**Author:** [@CY02](https://discourse.nodered.org/u/CY02)\
**Replies:** 7\
**Last updated:** [25 May 2022 01:35 UTC](https://discourse.nodered.org/t/cannot-collect-any-data-from-the-aubobot/62986 "2022-05-25T01:35:08Z")

</div>

I'm currently connecting from node-red to Aubobot through TCP in node-red but node-red shows disconnected and connected frequently, and can't get any data out of the AUBO. I am able to ping AUBO IP from my computer and h…

---

## [How to pass parameters between http in node and http request node](https://discourse.nodered.org/t/how-to-pass-parameters-between-http-in-node-and-http-request-node/62997)

<div class="topic-metadata">

**Author:** [@Tiramisupxl](https://discourse.nodered.org/u/Tiramisupxl)\
**Replies:** 2\
**Last updated:** [25 May 2022 01:33 UTC](https://discourse.nodered.org/t/how-to-pass-parameters-between-http-in-node-and-http-request-node/62997 "2022-05-25T01:33:21Z")

</div>

I have a http-in node and a http-request node, between them is a function node to handle parameters which post to http-in node, but the http-request node cannot receive the right parameters. How can I fixed it. the f…

---

## [Best way to display tabulator](https://discourse.nodered.org/t/best-way-to-display-tabulator/63005)

<div class="topic-metadata">

**Author:** [@alexback](https://discourse.nodered.org/u/alexback)\
**Replies:** 2\
**Last updated:** [24 May 2022 17:50 UTC](https://discourse.nodered.org/t/best-way-to-display-tabulator/63005 "2022-05-24T17:50:43Z")

</div>

Hey, is there any solution I can do so it displays 5 rows not this way by default (the table is an example) . I tried msg.ui\_control where I add paginationSize:5 but nothing happens. Thank u

---

## [Node red iframe - vnc](https://discourse.nodered.org/t/node-red-iframe-vnc/63014)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 0\
**Last updated:** [24 May 2022 15:35 UTC](https://discourse.nodered.org/t/node-red-iframe-vnc/63014 "2022-05-24T15:35:04Z")

</div>

I posted before about controlling my displayed webpage by mqtt. The solution was to use the iframe node. Now i finally got it working. ( i thought ) but it only displays the correct page in vnc. But if i look on the con…

---

## [Codesys and Node-red on the same Raspi?](https://discourse.nodered.org/t/codesys-and-node-red-on-the-same-raspi/63007)

<div class="topic-metadata">

**Author:** [@xavier98](https://discourse.nodered.org/u/xavier98)\
**Replies:** 3\
**Last updated:** [24 May 2022 14:31 UTC](https://discourse.nodered.org/t/codesys-and-node-red-on-the-same-raspi/63007 "2022-05-24T14:31:07Z")

</div>

Hi all, I have a question. I have a raspberry with the codesys runtime. If I want to use some Raspi sensors with i2c bus, a simple way would be to read then with node-red and then send via OPC UA or Modbus to the codesy…

---

## [I have issue when i connect MSSQL with Node Red](https://discourse.nodered.org/t/i-have-issue-when-i-connect-mssql-with-node-red/62691)

<div class="topic-metadata">

**Author:** [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Replies:** 77\
**Last updated:** [24 May 2022 14:15 UTC](https://discourse.nodered.org/t/i-have-issue-when-i-connect-mssql-with-node-red/62691 "2022-05-24T14:15:33Z")

</div>

this eror message : 16/05/2022, 13:40:01node: MSSQLmsg : Object object class: undefined code: "EINSTLOOKUP" lineNumber: undefined message: "Failed to lookup instance on (localdb) - getaddrinfo ENOTFOUND (localdb)" …

---

## [MSSQL node msg reading](https://discourse.nodered.org/t/mssql-node-msg-reading/63004)

<div class="topic-metadata">

**Author:** [@noob69](https://discourse.nodered.org/u/noob69)\
**Replies:** 2\
**Last updated:** [24 May 2022 12:27 UTC](https://discourse.nodered.org/t/mssql-node-msg-reading/63004 "2022-05-24T12:27:28Z")

</div>

Hi, I need to add a value to a table. So I've created MSSQL node and input my msg as following. INSERT INTO alert(email,alert,status,interval) VALUES('{{{msg.email}}}','time',1,10) But it output a blank instead of the…

---

## [Remove / smoothen unrealistic item values which randomly appear](https://discourse.nodered.org/t/remove-smoothen-unrealistic-item-values-which-randomly-appear/62971)

<div class="topic-metadata">

**Author:** [@binderth](https://discourse.nodered.org/u/binderth)\
**Replies:** 4\
**Last updated:** [24 May 2022 11:45 UTC](https://discourse.nodered.org/t/remove-smoothen-unrealistic-item-values-which-randomly-appear/62971 "2022-05-24T11:45:41Z")

</div>

I can access my heating system via RS232 and it will spit out some sensors' data. So I wrote a python script, which reads the values out periodically and sends them via MQTT in a JSON. Nodered then analyzes the JSON and…

---

## [Obtaining 2 digit values from a string](https://discourse.nodered.org/t/obtaining-2-digit-values-from-a-string/62409)

<div class="topic-metadata">

**Author:** [@Fulltopuk](https://discourse.nodered.org/u/Fulltopuk)\
**Replies:** 7\
**Last updated:** [24 May 2022 10:20 UTC](https://discourse.nodered.org/t/obtaining-2-digit-values-from-a-string/62409 "2022-05-24T10:20:51Z")

</div>

Hi All I have created a Node which gets HTML from a Heatmiser controller to give me the output below:- \<html\> \<head\> \<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"\> \<meta http-equiv="Content-Lang…

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

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