# General

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

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

**Page:** 488

---

## [Reset counter - function flow](https://discourse.nodered.org/t/reset-counter-function-flow/51609)

<div class="topic-metadata">

**Author:** [@cysoz](https://discourse.nodered.org/u/cysoz)\
**Replies:** 5\
**Last updated:** [4 October 2021 08:42 UTC](https://discourse.nodered.org/t/reset-counter-function-flow/51609 "2021-10-04T08:42:42Z")

</div>

I have project, but when I do deployed counter reset to 0, but timer switch not reset. I would like when I do deployed value counter not change timer switch reset counter per times \[{"id":"7f5ecbe2.d53fe4","type":"com…

---

## [Parsing a JSON file](https://discourse.nodered.org/t/parsing-a-json-file/51824)

<div class="topic-metadata">

**Author:** [@mathgoy](https://discourse.nodered.org/u/mathgoy)\
**Replies:** 2\
**Last updated:** [4 October 2021 08:29 UTC](https://discourse.nodered.org/t/parsing-a-json-file/51824 "2021-10-04T08:29:22Z")

</div>

Gents, I am getting the JSON below from my boiler and zould like to extract the L\_statetext value. { "pe1":{ "L\_temp\_act":"681", "L\_temp\_set":"700", "L\_ext\_temp":"-32768", "L\_frt\_temp\_act":"8…

---

## [Function execution time](https://discourse.nodered.org/t/function-execution-time/51819)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 6\
**Last updated:** [4 October 2021 08:27 UTC](https://discourse.nodered.org/t/function-execution-time/51819 "2021-10-04T08:27:52Z")

</div>

Hi, at start of my home automation project, I read a text file to load the default values of my system. These are 80 and more variables that I update, are subdivided into groups and I have a delay node before each gro…

---

## [Get cookies in server](https://discourse.nodered.org/t/get-cookies-in-server/51822)

<div class="topic-metadata">

**Author:** [@jaap](https://discourse.nodered.org/u/jaap)\
**Replies:** 2\
**Last updated:** [4 October 2021 08:13 UTC](https://discourse.nodered.org/t/get-cookies-in-server/51822 "2021-10-04T08:13:46Z")

</div>

Hi. I'm struggling with cookies. I can set and read it back with the UI template Node. But this is running in the browser. Is it possible to get the cookie in a server node for example in a function node or template node…

---

## [Transform array in Function](https://discourse.nodered.org/t/transform-array-in-function/51809)

<div class="topic-metadata">

**Author:** [@rploeg](https://discourse.nodered.org/u/rploeg)\
**Replies:** 10\
**Last updated:** [4 October 2021 06:36 UTC](https://discourse.nodered.org/t/transform-array-in-function/51809 "2021-10-04T06:36:34Z")

</div>

Hello, I am trying to convert an array to send the item as a number to an API. I get the data from a Modbus connector and receive it this way: I have tried several functions to get the data point (509) and send it as…

---

## [Search in a Json with two criteria](https://discourse.nodered.org/t/search-in-a-json-with-two-criteria/51807)

<div class="topic-metadata">

**Author:** [@zamzon](https://discourse.nodered.org/u/zamzon)\
**Replies:** 4\
**Last updated:** [3 October 2021 20:55 UTC](https://discourse.nodered.org/t/search-in-a-json-with-two-criteria/51807 "2021-10-03T20:55:38Z")

</div>

Hi I need help searching in a json file where two criteria must be met before proceeding I need it to proceed when only Device\_code and box\_number is the same, as it is now it proceed when only the box\_number is meth a…

---

## [MODBUS connection problems](https://discourse.nodered.org/t/modbus-connection-problems/51786)

<div class="topic-metadata">

**Author:** [@blunoz](https://discourse.nodered.org/u/blunoz)\
**Replies:** 3\
**Last updated:** [3 October 2021 12:05 UTC](https://discourse.nodered.org/t/modbus-connection-problems/51786 "2021-10-03T12:05:26Z")

</div>

I've got a problem connecting to a Modbus device using the Modbus Getter modules of node-red-contrib-modbus https://github.com/BiancoRoyal/node-red-contrib-modbus I have tested the device with a USB RS485 interface to c…

---

## [Nibe Uplink API (Oauth2)](https://discourse.nodered.org/t/nibe-uplink-api-oauth2/51076)

<div class="topic-metadata">

**Author:** [@smort](https://discourse.nodered.org/u/smort)\
**Replies:** 1\
**Last updated:** [3 October 2021 09:12 UTC](https://discourse.nodered.org/t/nibe-uplink-api-oauth2/51076 "2021-10-03T09:12:10Z")

</div>

Have anyone had success talking to the Nibe Uplink API with Node red?

---

## [Docker/Portainer gives Error: EACCES: permission denied, copyfile -\> '/data/settings.js'](https://discourse.nodered.org/t/docker-portainer-gives-error-eacces-permission-denied-copyfile-data-settings-js/51797)

<div class="topic-metadata">

**Author:** [@Nap](https://discourse.nodered.org/u/Nap)\
**Replies:** 2\
**Last updated:** [3 October 2021 09:03 UTC](https://discourse.nodered.org/t/docker-portainer-gives-error-eacces-permission-denied-copyfile-data-settings-js/51797 "2021-10-03T09:03:31Z")

</div>

I am trying to install Node-RED using Docker/Portainer on my Pi4 running Raspbian but I'm getting permission errors when the container starts up. From the error message, this is a permission problem. I have tried creat…

---

## [Philips HUE return lux](https://discourse.nodered.org/t/philips-hue-return-lux/51794)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 4\
**Last updated:** [3 October 2021 08:56 UTC](https://discourse.nodered.org/t/philips-hue-return-lux/51794 "2021-10-03T08:56:04Z")

</div>

Hello I am communicating to my philips HUE sensor via node-red -\> Conbee II. My flow simply uses it to turn a light on the room. It works very well but I only want this thing to trigger the light when its dark (no dayli…

---

## [How to detect specific dates (daylight savings) with cron+ node](https://discourse.nodered.org/t/how-to-detect-specific-dates-daylight-savings-with-cron-node/51793)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 5\
**Last updated:** [3 October 2021 08:19 UTC](https://discourse.nodered.org/t/how-to-detect-specific-dates-daylight-savings-with-cron-node/51793 "2021-10-03T08:19:32Z")

</div>

I know it should be easy, but I'm not that smart. I want to get cron+ (as an example) to tell me when 2 events happen. Daylight Savings - Start and Daylight Savings - End Starting: 02:00 First Sunday of October. En…

---

## [Doorbell with node red](https://discourse.nodered.org/t/doorbell-with-node-red/51779)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 2\
**Last updated:** [3 October 2021 07:15 UTC](https://discourse.nodered.org/t/doorbell-with-node-red/51779 "2021-10-03T07:15:32Z")

</div>

Hello I am looking for a doorbell that will integrate with node red. I know a few of them integrate with node red via home assistant, but I'd prefer to not use home assistant if possible. I'd also like the doorbell to …

---

## [Duplicate flow multiple times](https://discourse.nodered.org/t/duplicate-flow-multiple-times/51567)

<div class="topic-metadata">

**Author:** [@bar-shiratech](https://discourse.nodered.org/u/bar-shiratech)\
**Replies:** 8\
**Last updated:** [3 October 2021 04:33 UTC](https://discourse.nodered.org/t/duplicate-flow-multiple-times/51567 "2021-10-03T04:33:55Z")

</div>

Hi All, I have written a flow (attached is a shorter flow than mine, but it is the same) and I would like to duplicate this flow N times, at the request of the user I receive from the HTTP request node. Since I have a T…

---

## [Switch node with loops until 1 of 2 conditions is met](https://discourse.nodered.org/t/switch-node-with-loops-until-1-of-2-conditions-is-met/51171)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 30\
**Last updated:** [3 October 2021 03:09 UTC](https://discourse.nodered.org/t/switch-node-with-loops-until-1-of-2-conditions-is-met/51171 "2021-10-03T03:09:33Z")

</div>

I have a dispensing system that uses a vibratory scale to "shake off" the material over a set period of time. The key is to know the initial weight of the scale in order to calculate how many kg were shaken off. I am e…

---

## ["http in" and "file out" nodes in a subflow](https://discourse.nodered.org/t/http-in-and-file-out-nodes-in-a-subflow/51784)

<div class="topic-metadata">

**Author:** [@mdkrieg](https://discourse.nodered.org/u/mdkrieg)\
**Replies:** 0\
**Last updated:** [2 October 2021 23:36 UTC](https://discourse.nodered.org/t/http-in-and-file-out-nodes-in-a-subflow/51784 "2021-10-02T23:36:41Z")

</div>

Hello, I've been working today on integrating the w2ui grid library to Node-RED. I almost created a custom node for it but decided to go the subflow route. Link to Gist on GitHub: Overall, it was moderately painless,…

---

## [Node-Red DNS Resolution](https://discourse.nodered.org/t/node-red-dns-resolution/51781)

<div class="topic-metadata">

**Author:** [@chrismo16](https://discourse.nodered.org/u/chrismo16)\
**Replies:** 5\
**Last updated:** [2 October 2021 18:28 UTC](https://discourse.nodered.org/t/node-red-dns-resolution/51781 "2021-10-02T18:28:50Z")

</div>

I have NR running as an addon in HomeAssistant. I have a msg.payload.url that only works when I use the ip address instead of the hostname. How can I make sure NR is using my internal dns servers? I read elsewhere that a…

---

## [How to create msg keys?](https://discourse.nodered.org/t/how-to-create-msg-keys/51777)

<div class="topic-metadata">

**Author:** [@waquete](https://discourse.nodered.org/u/waquete)\
**Replies:** 12\
**Last updated:** [2 October 2021 15:04 UTC](https://discourse.nodered.org/t/how-to-create-msg-keys/51777 "2021-10-02T15:04:10Z")

</div>

Hi ! I have some trouble creating "sub-keys" in msg.payload. This is for telegram bot, I need: msg.payload.content msg.payload.chatId msg.payload.type I want to build the message in a function node. Sometime using…

---

## [Search for value in an array](https://discourse.nodered.org/t/search-for-value-in-an-array/51733)

<div class="topic-metadata">

**Author:** [@fabien](https://discourse.nodered.org/u/fabien)\
**Replies:** 9\
**Last updated:** [2 October 2021 14:14 UTC](https://discourse.nodered.org/t/search-for-value-in-an-array/51733 "2021-10-02T14:14:13Z")

</div>

hello, i am trying a quick and easy way to look up a value in an array. I know who he discussed several times on the forum on the subject, but I did not find my happiness. my array contains 2 columns and 38,000 rows. I…

---

## [What to use to play WAV files](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681)

<div class="topic-metadata">

**Author:** [@mcdonald\_ajr](https://discourse.nodered.org/u/mcdonald_ajr)\
**Replies:** 4\
**Last updated:** [2 October 2021 11:39 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681 "2021-10-02T11:39:35Z")

</div>

I am looking for a node that can play WAV files on multiple operating systems (linux, windows, mac). It would be good to have control over the volume too. This is more complex than it seems, as it would be good to have…

---

## [$.ajax is not including Bearer if called from HTML](https://discourse.nodered.org/t/ajax-is-not-including-bearer-if-called-from-html/51773)

<div class="topic-metadata">

**Author:** [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Replies:** 2\
**Last updated:** [2 October 2021 09:54 UTC](https://discourse.nodered.org/t/ajax-is-not-including-bearer-if-called-from-html/51773 "2021-10-02T09:54:38Z")

</div>

Hi I am working on some security updates, that involves locking down some RED.httpAdmin endpoints. RED.httpAdmin.get( '/zwave-js/cfg-version', RED.auth.needsPermission('flows.read'), function (req, res) { …

---

## [Read Registers From Modbus Not in Sequence](https://discourse.nodered.org/t/read-registers-from-modbus-not-in-sequence/51710)

<div class="topic-metadata">

**Author:** [@ELParreira](https://discourse.nodered.org/u/ELParreira)\
**Replies:** 15\
**Last updated:** [2 October 2021 03:11 UTC](https://discourse.nodered.org/t/read-registers-from-modbus-not-in-sequence/51710 "2021-10-02T03:11:44Z")

</div>

Hello, I want to read multiple registers from modbus that are not in a sequence, what would be the best way? Is there any modbus node that I can use to do it, or shoud I use two modbus flex read and then join. I was try…

---

## [Failed to install ncd-red-ads1115 in Node Red v2.0.6](https://discourse.nodered.org/t/failed-to-install-ncd-red-ads1115-in-node-red-v2-0-6/51674)

<div class="topic-metadata">

**Author:** [@Chansen2108](https://discourse.nodered.org/u/Chansen2108)\
**Replies:** 6\
**Last updated:** [1 October 2021 20:45 UTC](https://discourse.nodered.org/t/failed-to-install-ncd-red-ads1115-in-node-red-v2-0-6/51674 "2021-10-01T20:45:14Z")

</div>

Hello, Failed to install ncd-red-ads1115 in Node Red v2.0.6 Are running Node Red on two raspberry pi 4 one with Node Red version v2.0.5 and the other with v2.0.6 Only experience the problem with the v2.0.6 have tried …

---

## [Creating a message using fixed strings and strings typed in a text box](https://discourse.nodered.org/t/creating-a-message-using-fixed-strings-and-strings-typed-in-a-text-box/51761)

<div class="topic-metadata">

**Author:** [@Quevedo](https://discourse.nodered.org/u/Quevedo)\
**Replies:** 0\
**Last updated:** [1 October 2021 16:43 UTC](https://discourse.nodered.org/t/creating-a-message-using-fixed-strings-and-strings-typed-in-a-text-box/51761 "2021-10-01T16:43:33Z")

</div>

Hello, I am using the dashboard plugin to generate control messages to be sent to a remote system by MQTT. I will give the example of one of the control functions, as the others are similar in structure. If I want to s…

---

## [Arduino Nano RP2040 failing to connect to Aedes MQTT Broker](https://discourse.nodered.org/t/arduino-nano-rp2040-failing-to-connect-to-aedes-mqtt-broker/51745)

<div class="topic-metadata">

**Author:** [@jprez1998](https://discourse.nodered.org/u/jprez1998)\
**Replies:** 3\
**Last updated:** [1 October 2021 16:14 UTC](https://discourse.nodered.org/t/arduino-nano-rp2040-failing-to-connect-to-aedes-mqtt-broker/51745 "2021-10-01T16:14:15Z")

</div>

Hi, I am new to node-red and IoT databases. I am in frustration as i cannot figure out why i cannot connect to an MQTT broker using my arduino nano rp2040. I can successfully connect on node-red using the aedes MQTT bro…

---

## [How to send a Integer From PLC to Siemens Mindsphere](https://discourse.nodered.org/t/how-to-send-a-integer-from-plc-to-siemens-mindsphere/51143)

<div class="topic-metadata">

**Author:** [@Ario669](https://discourse.nodered.org/u/Ario669)\
**Replies:** 1\
**Last updated:** [1 October 2021 14:23 UTC](https://discourse.nodered.org/t/how-to-send-a-integer-from-plc-to-siemens-mindsphere/51143 "2021-10-01T14:23:12Z")

</div>

Hello everyone. I am student and total new to Node Red. Right now, I am working on a project at the university regarding to sending data from PLC to Siemens cloud servers (Mind Sphere) with the help of a Node Red. In our…

---

## [Node-red use as a full stack backend?](https://discourse.nodered.org/t/node-red-use-as-a-full-stack-backend/50392)

<div class="topic-metadata">

**Author:** [@Peter](https://discourse.nodered.org/u/Peter)\
**Replies:** 14\
**Last updated:** [1 October 2021 12:14 UTC](https://discourse.nodered.org/t/node-red-use-as-a-full-stack-backend/50392 "2021-10-01T12:14:32Z")

</div>

Hi Guys, sorry for the stupid question but I need to make a decision on the backend stack for a mobile application, and I feel really tempted to use Node-red just because I absolutely love it and came to understand the …

---

## [How to read file date information](https://discourse.nodered.org/t/how-to-read-file-date-information/51706)

<div class="topic-metadata">

**Author:** [@yfhzs](https://discourse.nodered.org/u/yfhzs)\
**Replies:** 8\
**Last updated:** [1 October 2021 12:04 UTC](https://discourse.nodered.org/t/how-to-read-file-date-information/51706 "2021-10-01T12:04:47Z")

</div>

Hi I am using node red to try to read the date information of the file and determine whether the file exceeds the storage period.everybody have a solution？ thank you

---

## [Create a node without restart node-red](https://discourse.nodered.org/t/create-a-node-without-restart-node-red/9649)

<div class="topic-metadata">

**Author:** [@Jack](https://discourse.nodered.org/u/Jack)\
**Replies:** 19\
**Last updated:** [1 October 2021 08:28 UTC](https://discourse.nodered.org/t/create-a-node-without-restart-node-red/9649 "2021-10-01T08:28:17Z")

</div>

when I created a node and put it input "/nodes",I must restart node-red to load it. so,Can we have any method to load a node without restart node-red?

---

## [Node-red LAN network security, updating and DNS settings](https://discourse.nodered.org/t/node-red-lan-network-security-updating-and-dns-settings/51633)

<div class="topic-metadata">

**Author:** [@nerevar](https://discourse.nodered.org/u/nerevar)\
**Replies:** 12\
**Last updated:** [1 October 2021 07:52 UTC](https://discourse.nodered.org/t/node-red-lan-network-security-updating-and-dns-settings/51633 "2021-10-01T07:52:22Z")

</div>

Hello all, After a year and a half of use I can say: well done to Node-RED devs and contributors, it is a wonderful piece of software. Thanks to it I have succeeded to fulfill my some-time-now dream to code after being …

---

## ["Error: Timeout while connecting to server" When I try to do File transfer via FTP](https://discourse.nodered.org/t/error-timeout-while-connecting-to-server-when-i-try-to-do-file-transfer-via-ftp/51717)

<div class="topic-metadata">

**Author:** [@KrishnanRavichandran](https://discourse.nodered.org/u/KrishnanRavichandran)\
**Replies:** 2\
**Last updated:** [1 October 2021 06:49 UTC](https://discourse.nodered.org/t/error-timeout-while-connecting-to-server-when-i-try-to-do-file-transfer-via-ftp/51717 "2021-10-01T06:49:02Z")

</div>

Hello Node-RED enthusiasts, I am using Node-RED to obtain certain data from a remote server to my local server hosted on my PC via the FIle zilla. I am able to access the remote server on the hardware and check my file…

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

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