# General

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

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

**Page:** 313

---

## [HTTP Response Node CORS Header Problem](https://discourse.nodered.org/t/http-response-node-cors-header-problem/68712)

<div class="topic-metadata">

**Author:** [@lewi0231](https://discourse.nodered.org/u/lewi0231)\
**Replies:** 3\
**Last updated:** [9 October 2022 08:42 UTC](https://discourse.nodered.org/t/http-response-node-cors-header-problem/68712 "2022-10-09T08:42:42Z")

</div>

I'm currently using the HTTP-in node which is set to accept a POST request which is working fine. However I am then trying to use the HTTP-response node to send back data. The problem I'm facing is that even though I h…

---

## [Nodered update 2.2.3-2 keeps repeating](https://discourse.nodered.org/t/nodered-update-2-2-3-2-keeps-repeating/68177)

<div class="topic-metadata">

**Author:** [@ras\_oscar](https://discourse.nodered.org/u/ras_oscar)\
**Replies:** 9\
**Last updated:** [9 October 2022 03:57 UTC](https://discourse.nodered.org/t/nodered-update-2-2-3-2-keeps-repeating/68177 "2022-10-09T03:57:05Z")

</div>

I am running node red on a raspberry pi 4b on a debian installation. For the last couple weeks i keep getting a notice through the usual update mechanism to update node red to 2.2.3-2. If I run the update, it reports suc…

---

## [Move file to smb nas folder](https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740)

<div class="topic-metadata">

**Author:** [@stain3565](https://discourse.nodered.org/u/stain3565)\
**Replies:** 1\
**Last updated:** [9 October 2022 01:51 UTC](https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740 "2022-10-09T01:51:55Z")

</div>

I am creating my first node-red flow to read new emails containing a mp4 attachment and extract this to a folder. This is working. However, my next step is to move or copy that file from the folder into the samba share o…

---

## [How to see flow/global variables in GUI](https://discourse.nodered.org/t/how-to-see-flow-global-variables-in-gui/68733)

<div class="topic-metadata">

**Author:** [@tamueller](https://discourse.nodered.org/u/tamueller)\
**Replies:** 2\
**Last updated:** [8 October 2022 21:54 UTC](https://discourse.nodered.org/t/how-to-see-flow-global-variables-in-gui/68733 "2022-10-08T21:54:47Z")

</div>

Hi, I'm just starting with node red, and wonder if it's possible to somehow see the current state of the flow/global variables somewhere in the GUI? I couldn't find it, but that would be really helpful to debug/understa…

---

## [How to receive just one email](https://discourse.nodered.org/t/how-to-receive-just-one-email/68632)

<div class="topic-metadata">

**Author:** [@gwaag](https://discourse.nodered.org/u/gwaag)\
**Replies:** 3\
**Last updated:** [8 October 2022 18:03 UTC](https://discourse.nodered.org/t/how-to-receive-just-one-email/68632 "2022-10-08T18:03:45Z")

</div>

Hello, I have a flow, so that when power consumption is \< 5 it should send 1x email. Now, when value is \< 5, I recive many, many, mails. How can I change the flow to only recive 1 mail? Thanks and regards gwaag

---

## [2 push buttons one sets the status to on, the other to off](https://discourse.nodered.org/t/2-push-buttons-one-sets-the-status-to-on-the-other-to-off/68726)

<div class="topic-metadata">

**Author:** [@hansge31](https://discourse.nodered.org/u/hansge31)\
**Replies:** 1\
**Last updated:** [8 October 2022 16:08 UTC](https://discourse.nodered.org/t/2-push-buttons-one-sets-the-status-to-on-the-other-to-off/68726 "2022-10-08T16:08:22Z")

</div>

I'm looking to implement a two push button logic, switching a smart power socket. The first push button should set the state to on (1 or multiple times triggered) The second push button sets the state to off How to im…

---

## [\[SOLVED\] Help needed migrating node-red to docker](https://discourse.nodered.org/t/solved-help-needed-migrating-node-red-to-docker/68703)

<div class="topic-metadata">

**Author:** [@Topolynx](https://discourse.nodered.org/u/Topolynx)\
**Replies:** 8\
**Last updated:** [8 October 2022 16:00 UTC](https://discourse.nodered.org/t/solved-help-needed-migrating-node-red-to-docker/68703 "2022-10-08T16:00:51Z")

</div>

Hello. I would like to migrate my node-red to a docker container. I have installed some nodes using npm and I would like to move them too into the container. Could someone please help me?

---

## [Read a number in an array](https://discourse.nodered.org/t/read-a-number-in-an-array/68718)

<div class="topic-metadata">

**Author:** [@kiaa931](https://discourse.nodered.org/u/kiaa931)\
**Replies:** 2\
**Last updated:** [8 October 2022 13:48 UTC](https://discourse.nodered.org/t/read-a-number-in-an-array/68718 "2022-10-08T13:48:32Z")

</div>

Hey! I want to use the number in the array extracted from an csv file for a calculation. I convereted the object to an array but the number is in between " ", which doesnt allow me to read roperly How can I get rid o…

---

## [Get the max value and compare](https://discourse.nodered.org/t/get-the-max-value-and-compare/68697)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 12\
**Last updated:** [8 October 2022 12:50 UTC](https://discourse.nodered.org/t/get-the-max-value-and-compare/68697 "2022-10-08T12:50:09Z")

</div>

Hi i need help, from a node i get output in json type, which has arrays(may be we can use this) and inside each object their is a value which i need for example -\>array\[2\] -\>0: object -\>x = 1 -\>1: object -\>x= 2 I…

---

## [Trigger a trigger node(something similar)](https://discourse.nodered.org/t/trigger-a-trigger-node-something-similar/68647)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 2\
**Last updated:** [8 October 2022 12:46 UTC](https://discourse.nodered.org/t/trigger-a-trigger-node-something-similar/68647 "2022-10-08T12:46:35Z")

</div>

Hi, i have two telegram trigger nodes one which detects commands and other for messages and contents.. what i want is something like wait untill or switch say if i send /movie as message in telegram followed by message …

---

## [Change an object to an array](https://discourse.nodered.org/t/change-an-object-to-an-array/68715)

<div class="topic-metadata">

**Author:** [@kiaa931](https://discourse.nodered.org/u/kiaa931)\
**Replies:** 1\
**Last updated:** [8 October 2022 11:31 UTC](https://discourse.nodered.org/t/change-an-object-to-an-array/68715 "2022-10-08T11:31:28Z")

</div>

Hey I am pretty new here. Can someone help me to change this object to an array as shown in the second pic. I am importing from csv file and it comes in an object, but i need it in an array Thank you! Thank you!1

---

## [Onkyo eiscp control](https://discourse.nodered.org/t/onkyo-eiscp-control/68708)

<div class="topic-metadata">

**Author:** [@schorrie](https://discourse.nodered.org/u/schorrie)\
**Replies:** 6\
**Last updated:** [8 October 2022 12:15 UTC](https://discourse.nodered.org/t/onkyo-eiscp-control/68708 "2022-10-08T12:15:15Z")

</div>

We have an Onkyo HT-R695, according to some device info it's also called TX NR656. First tried to control it using the EISCP home assistant way, but failed in every option. Then discovered NodeRed. With NR i can contr…

---

## [How to search in loop inside huge json array objects](https://discourse.nodered.org/t/how-to-search-in-loop-inside-huge-json-array-objects/68704)

<div class="topic-metadata">

**Author:** [@anand](https://discourse.nodered.org/u/anand)\
**Replies:** 12\
**Last updated:** [8 October 2022 09:24 UTC](https://discourse.nodered.org/t/how-to-search-in-loop-inside-huge-json-array-objects/68704 "2022-10-08T09:24:01Z")

</div>

Hi Very new to node-red, i am trying to get search results from a API that is formatted like so: \[ { "order\_id":"1411969", "status":"active", "valid\_from":"2020-07-14", "valid\_till":"2022-10-…

---

## [My current problems using NR / TTS solution do you use / boost NR performance :) AiO ;)](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 10\
**Last updated:** [8 October 2022 08:08 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649 "2022-10-08T08:08:37Z")

</div>

Dear friends, two years a ago I began to try different ways for using voice commands to control Node Red. My goal was to keep things local. So I used mostly stuff from @ johanneskropf DeepSpeech -\> Coqui. But with the …

---

## [Using wait until node with motion sensors](https://discourse.nodered.org/t/using-wait-until-node-with-motion-sensors/68670)

<div class="topic-metadata">

**Author:** [@melch98](https://discourse.nodered.org/u/melch98)\
**Replies:** 1\
**Last updated:** [8 October 2022 07:49 UTC](https://discourse.nodered.org/t/using-wait-until-node-with-motion-sensors/68670 "2022-10-08T07:49:39Z")

</div>

Hi, I am having an issue with the wait until node. I have a motion sensor at my desk which will turn on my desk lights and another light in the middle of my room with nice colours. I also have a motion sensor in the m…

---

## [Function node with multiple calculations](https://discourse.nodered.org/t/function-node-with-multiple-calculations/68698)

<div class="topic-metadata">

**Author:** [@PowerZone21](https://discourse.nodered.org/u/PowerZone21)\
**Replies:** 2\
**Last updated:** [8 October 2022 00:20 UTC](https://discourse.nodered.org/t/function-node-with-multiple-calculations/68698 "2022-10-08T00:20:21Z")

</div>

Hi Guys. I have this function node: \[{"id":"3d87b88c4f3623f6","type":"function","z":"1a975b2abb684217","name":"Calc spotprice","func":"var average = global.get('daily\_spotprice\_avg')\\nvar spot = global.get('hourly\_spotp…

---

## [How to find the two lowest values of five values](https://discourse.nodered.org/t/how-to-find-the-two-lowest-values-of-five-values/68473)

<div class="topic-metadata">

**Author:** [@PowerZone21](https://discourse.nodered.org/u/PowerZone21)\
**Replies:** 8\
**Last updated:** [7 October 2022 23:05 UTC](https://discourse.nodered.org/t/how-to-find-the-two-lowest-values-of-five-values/68473 "2022-10-07T23:05:48Z")

</div>

Hi guys, I have multiple msg.payloads and i want to pick out the two lowest values out for these. I'm aware of the $min(payload) but this will only pick out the lowest value, I also want the second lowest value. The u…

---

## [Anyone using VictoriaMetrics?](https://discourse.nodered.org/t/anyone-using-victoriametrics/68694)

<div class="topic-metadata">

**Author:** [@tve](https://discourse.nodered.org/u/tve)\
**Replies:** 0\
**Last updated:** [7 October 2022 20:43 UTC](https://discourse.nodered.org/t/anyone-using-victoriametrics/68694 "2022-10-07T20:43:25Z")

</div>

I'm thinking of using VictoriaMetrics to store time series data for a project. Has anyone cooked up a node for it? It has an HTTP API, so I may just concoct some subflows...

---

## [Need help in epoch time convert](https://discourse.nodered.org/t/need-help-in-epoch-time-convert/68690)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 9\
**Last updated:** [7 October 2022 20:30 UTC](https://discourse.nodered.org/t/need-help-in-epoch-time-convert/68690 "2022-10-07T20:30:25Z")

</div>

HI, from data of previous node(sensor) i get time as epoch format i guess "added\_on":1665163868 what i want is: compare this time with the current now time and if the difference between them is less than 5 mins then I …

---

## [Need help in http request node](https://discourse.nodered.org/t/need-help-in-http-request-node/68612)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 32\
**Last updated:** [7 October 2022 17:24 UTC](https://discourse.nodered.org/t/need-help-in-http-request-node/68612 "2022-10-07T17:24:41Z")

</div>

Hi im trying to figure how to use curl in nodered ..I want to get information of my torrent files (which has api support) i want to convert this part of code to nodered style. $ curl -i --header 'Referer: http://localh…

---

## [JSONata retrieve value](https://discourse.nodered.org/t/jsonata-retrieve-value/68671)

<div class="topic-metadata">

**Author:** [@wiwan-wijoyo](https://discourse.nodered.org/u/wiwan-wijoyo)\
**Replies:** 2\
**Last updated:** [7 October 2022 13:48 UTC](https://discourse.nodered.org/t/jsonata-retrieve-value/68671 "2022-10-07T13:48:57Z")

</div>

how to retrieve the value (true/false) by using JSONata, I tried it but still failed. I want to take true value for on and false value for off. \[ { "id": "075b37ac52f089bf", "type": "inject", …

---

## [Unexpected Node Error. node-red-contrib-tplink. Error: read ECONNRESET](https://discourse.nodered.org/t/unexpected-node-error-node-red-contrib-tplink-error-read-econnreset/68678)

<div class="topic-metadata">

**Author:** [@BradS](https://discourse.nodered.org/u/BradS)\
**Replies:** 0\
**Last updated:** [7 October 2022 11:43 UTC](https://discourse.nodered.org/t/unexpected-node-error-node-red-contrib-tplink-error-read-econnreset/68678 "2022-10-07T11:43:38Z")

</div>

Within the Node-RED GUI, I'm getting a message in my debug window. It is intermittent. I'm pretty new to Node-RED. I can't seem to use the Catch node to catch it. I'm not able to use the Status node to do anything wi…

---

## [Recommendation for TP-Link Kasa Smart Wi-Fi Devices](https://discourse.nodered.org/t/recommendation-for-tp-link-kasa-smart-wi-fi-devices/68676)

<div class="topic-metadata">

**Author:** [@BradS](https://discourse.nodered.org/u/BradS)\
**Replies:** 0\
**Last updated:** [7 October 2022 11:35 UTC](https://discourse.nodered.org/t/recommendation-for-tp-link-kasa-smart-wi-fi-devices/68676 "2022-10-07T11:35:57Z")

</div>

Does anyone have a recommendation for controlling and getting information from TP-Link Kasa Devices: I've found: node-red-contrib-tplink (currently using) node-red-contrib-tplink-smarthome node-red-contrib-tplink-iot …

---

## [Help with \`text input\` node](https://discourse.nodered.org/t/help-with-text-input-node/68668)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [7 October 2022 10:37 UTC](https://discourse.nodered.org/t/help-with-text-input-node/68668 "2022-10-07T10:37:14Z")

</div>

I'm working on a small project just to keep myself busy. I have a text input node. Normally it is disabled. When enabled (for a short time) the user enters text. After that time the node is disabled, and the text ent…

---

## [Dynamic JSON string coming from MQTT](https://discourse.nodered.org/t/dynamic-json-string-coming-from-mqtt/68530)

<div class="topic-metadata">

**Author:** [@gbhide0312](https://discourse.nodered.org/u/gbhide0312)\
**Replies:** 7\
**Last updated:** [7 October 2022 10:20 UTC](https://discourse.nodered.org/t/dynamic-json-string-coming-from-mqtt/68530 "2022-10-07T10:20:02Z")

</div>

Hello, I have a flow where I am receiving data from MQTT, parsing it in a function block (JSON parsing) and then forming an insert statement out of it to feed it to a database. Attached the flow. \[ { "id": …

---

## [Modbus crc16 calculation function error syntax](https://discourse.nodered.org/t/modbus-crc16-calculation-function-error-syntax/68657)

<div class="topic-metadata">

**Author:** [@Angin](https://discourse.nodered.org/u/Angin)\
**Replies:** 7\
**Last updated:** [7 October 2022 09:41 UTC](https://discourse.nodered.org/t/modbus-crc16-calculation-function-error-syntax/68657 "2022-10-07T09:41:46Z")

</div>

I used a previous crc16 calculation function, but now it prompts an error syntax. As shown in the picture. function crc16(str){ var buf = Buffer.from(str,'hex') var crc = 0xFFFF; for(var i = 0;i\<buf.lengt…

---

## [Comparing data from API](https://discourse.nodered.org/t/comparing-data-from-api/68623)

<div class="topic-metadata">

**Author:** [@Sureshkumar.S](https://discourse.nodered.org/u/Sureshkumar.S)\
**Replies:** 9\
**Last updated:** [7 October 2022 05:49 UTC](https://discourse.nodered.org/t/comparing-data-from-api/68623 "2022-10-07T05:49:22Z")

</div>

I want compare get where it's a day time or night time. I'm getting sunrise and sunset time from the weather API. I don't how to compare the data using switch node.

---

## [AND Logic to turn on the led](https://discourse.nodered.org/t/and-logic-to-turn-on-the-led/68628)

<div class="topic-metadata">

**Author:** [@afafirmansyah](https://discourse.nodered.org/u/afafirmansyah)\
**Replies:** 9\
**Last updated:** [7 October 2022 04:41 UTC](https://discourse.nodered.org/t/and-logic-to-turn-on-the-led/68628 "2022-10-07T04:41:20Z")

</div>

how do I turn on the led with logical AND operator? both messages are in msg.payload.

---

## [Side menu label position](https://discourse.nodered.org/t/side-menu-label-position/68655)

<div class="topic-metadata">

**Author:** [@afafirmansyah](https://discourse.nodered.org/u/afafirmansyah)\
**Replies:** 0\
**Last updated:** [7 October 2022 03:46 UTC](https://discourse.nodered.org/t/side-menu-label-position/68655 "2022-10-07T03:46:08Z")

</div>

how do I move the label on the side menu under the icon like the following example?

---

## [Issue with NR - Losing connection on Azure Cloud](https://discourse.nodered.org/t/issue-with-nr-losing-connection-on-azure-cloud/67357)

<div class="topic-metadata">

**Author:** [@SandeepA](https://discourse.nodered.org/u/SandeepA)\
**Replies:** 18\
**Last updated:** [6 October 2022 19:14 UTC](https://discourse.nodered.org/t/issue-with-nr-losing-connection-on-azure-cloud/67357 "2022-10-06T19:14:35Z")

</div>

Hi , I have NR based on docker. Its on Azure Cloud. No internet access. The Editor keeps giving lost connection. We removed all flows and made it empty. Yet process starts and in few minutes we get "Lost Connection"…

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

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