# General

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

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

**Page:** 687

---

## [Regex help node-red](https://discourse.nodered.org/t/regex-help-node-red/32651)

<div class="topic-metadata">

**Author:** [@niclas.w82](https://discourse.nodered.org/u/niclas.w82)\
**Replies:** 1\
**Last updated:** [9 September 2020 16:43 UTC](https://discourse.nodered.org/t/regex-help-node-red/32651 "2020-09-09T16:43:47Z")

</div>

Hi. Trying to learn regex to use in a change node. I have succeeded to get the expression right but don't make it to work in node-red. Probably some easy misstake but I'm stuck.

---

## [Grouping in Jsonata](https://discourse.nodered.org/t/grouping-in-jsonata/32304)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 11\
**Last updated:** [9 September 2020 16:43 UTC](https://discourse.nodered.org/t/grouping-in-jsonata/32304 "2020-09-09T16:43:04Z")

</div>

Hi folks, In my daily job I need to do some calculations on a json, so I thought that Jsonata might perhaps be the solution for my problem. I have a (very long) json, but here is a small part of it: { "indices" : { …

---

## [Update query in sqlite3 with fob id coming from gateway code](https://discourse.nodered.org/t/update-query-in-sqlite3-with-fob-id-coming-from-gateway-code/32292)

<div class="topic-metadata">

**Author:** [@shipra](https://discourse.nodered.org/u/shipra)\
**Replies:** 134\
**Last updated:** [9 September 2020 16:20 UTC](https://discourse.nodered.org/t/update-query-in-sqlite3-with-fob-id-coming-from-gateway-code/32292 "2020-09-09T16:20:36Z")

</div>

I have to update sqlite3 query with Door status and only on that column which is coming from successfully database entry

---

## [Serving a big archive (.zip or.tar) file built on the fly](https://discourse.nodered.org/t/serving-a-big-archive-zip-or-tar-file-built-on-the-fly/32647)

<div class="topic-metadata">

**Author:** [@iurly](https://discourse.nodered.org/u/iurly)\
**Replies:** 0\
**Last updated:** [9 September 2020 14:25 UTC](https://discourse.nodered.org/t/serving-a-big-archive-zip-or-tar-file-built-on-the-fly/32647 "2020-09-09T14:25:08Z")

</div>

Hi, I'm running Node-RED on a Raspberry Pi and I'm looking for a way to easily export (over HTTP) a bunch of files from the local file system. I managed to build a simple dashboard where you can just click a button and…

---

## [DeCONZ / Home Assistant: can't get it going with Node Red](https://discourse.nodered.org/t/deconz-home-assistant-cant-get-it-going-with-node-red/32544)

<div class="topic-metadata">

**Author:** [@Edwinek](https://discourse.nodered.org/u/Edwinek)\
**Replies:** 4\
**Last updated:** [9 September 2020 13:19 UTC](https://discourse.nodered.org/t/deconz-home-assistant-cant-get-it-going-with-node-red/32544 "2020-09-09T13:19:17Z")

</div>

Hi, I've been struggling with this for over a week now, but can't get it running. I'll try to be as complete as possible. First of all: I have DeCONZ working in Home Assistant now, with a ConBee II USB dongle. This too…

---

## [Authentication using token and user-password](https://discourse.nodered.org/t/authentication-using-token-and-user-password/32281)

<div class="topic-metadata">

**Author:** [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Replies:** 3\
**Last updated:** [9 September 2020 12:27 UTC](https://discourse.nodered.org/t/authentication-using-token-and-user-password/32281 "2020-09-09T12:27:00Z")

</div>

Hi, I try to authenticate admins based on a header variable (with Nodered 1.1.3). If a token is present i query the LDAP for authentication. If in LDAP the user is not authorized, I resolve the user to null. Actually i…

---

## [Help for a loop functiopn](https://discourse.nodered.org/t/help-for-a-loop-functiopn/32598)

<div class="topic-metadata">

**Author:** [@stich86](https://discourse.nodered.org/u/stich86)\
**Replies:** 15\
**Last updated:** [9 September 2020 12:08 UTC](https://discourse.nodered.org/t/help-for-a-loop-functiopn/32598 "2020-09-09T12:08:56Z")

</div>

Hi guys, i'm trying to create a flow that will output the sensors in alarm to Alexa before launch a script on Home-Assistant that will close all shutter and the arm the alarm. Main problem is when i need to send the al…

---

## [How do I achieve this in Node Red](https://discourse.nodered.org/t/how-do-i-achieve-this-in-node-red/32627)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.nodered.org/u/blob)\
**Replies:** 6\
**Last updated:** [9 September 2020 12:04 UTC](https://discourse.nodered.org/t/how-do-i-achieve-this-in-node-red/32627 "2020-09-09T12:04:18Z")

</div>

Hello, This may seem absolutely easy task for someone out there but I'm stuck on this one. Scenario: I'm trying to achieve something in Node Red that has been done on Visual Basic. A very simple scenario which could …

---

## [Keypad + LCD + RFID help needed / issue](https://discourse.nodered.org/t/keypad-lcd-rfid-help-needed-issue/32638)

<div class="topic-metadata">

**Author:** [@Peter](https://discourse.nodered.org/u/Peter)\
**Replies:** 1\
**Last updated:** [9 September 2020 11:39 UTC](https://discourse.nodered.org/t/keypad-lcd-rfid-help-needed-issue/32638 "2020-09-09T11:39:47Z")

</div>

HI Superstars, I am a newbie and need some urgent help PLEASE. I have a project whereby I need to use a Captive touch keypad, OLED screen, an RFID tag reader. The user needs to identify itself with the RFID tag and in…

---

## [Node-red-contrib-tf-model installing problem](https://discourse.nodered.org/t/node-red-contrib-tf-model-installing-problem/32634)

<div class="topic-metadata">

**Author:** [@maxmsi](https://discourse.nodered.org/u/maxmsi)\
**Replies:** 1\
**Last updated:** [9 September 2020 10:37 UTC](https://discourse.nodered.org/t/node-red-contrib-tf-model-installing-problem/32634 "2020-09-09T10:37:52Z")

</div>

Hi, Im facing with installation problem of : node-red-contrib-tf-model. So, i went throught steps like here : https://www.npmjs.com/package/node-red-contrib-tf-model (skipping the Note section, cause Im working on windo…

---

## [How to edit Modbus node](https://discourse.nodered.org/t/how-to-edit-modbus-node/32619)

<div class="topic-metadata">

**Author:** [@akhtar321h](https://discourse.nodered.org/u/akhtar321h)\
**Replies:** 10\
**Last updated:** [9 September 2020 10:27 UTC](https://discourse.nodered.org/t/how-to-edit-modbus-node/32619 "2020-09-09T10:27:10Z")

</div>

Hello Everyone, I am using \[https://flows.nodered.org/node/node-red-contrib-modbus\] node. But in this node I can not pass inputs. So i want to edit this node or if edit is not possible so how can i create same node.

---

## [How to get property of config node](https://discourse.nodered.org/t/how-to-get-property-of-config-node/32615)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 2\
**Last updated:** [9 September 2020 07:19 UTC](https://discourse.nodered.org/t/how-to-get-property-of-config-node/32615 "2020-09-09T07:19:07Z")

</div>

In the config node node-red-contrib-config, I have set properties: I would like to get these properties in the Function node but an error occurred while trying to execute the following commands: // 1."ReferenceError:…

---

## [Issue to read serial port](https://discourse.nodered.org/t/issue-to-read-serial-port/32590)

<div class="topic-metadata">

**Author:** [@lowlow](https://discourse.nodered.org/u/lowlow)\
**Replies:** 6\
**Last updated:** [9 September 2020 07:00 UTC](https://discourse.nodered.org/t/issue-to-read-serial-port/32590 "2020-09-09T07:00:26Z")

</div>

I'm interfacing a Kern weight scale through serial port with Node-RED. The communication works perfectly in a terminal in both direction. However, I'm only able to write to the serial port with NR with the "serial out" …

---

## [Inject node - using the initial "inject once at start" event as a separate trigger when using intervals?](https://discourse.nodered.org/t/inject-node-using-the-initial-inject-once-at-start-event-as-a-separate-trigger-when-using-intervals/32486)

<div class="topic-metadata">

**Author:** [@gadget](https://discourse.nodered.org/u/gadget)\
**Replies:** 4\
**Last updated:** [9 September 2020 06:18 UTC](https://discourse.nodered.org/t/inject-node-using-the-initial-inject-once-at-start-event-as-a-separate-trigger-when-using-intervals/32486 "2020-09-09T06:18:13Z")

</div>

I would like to use the initial fire of the inject node to trigger a flow and from then trigger a different flow at each interval period. Would there be a simple-ish way to achieve this? Thanks!

---

## [Node-red-contrib-mssql-plus 0.5.1 --\> Can't connect to MSSQL](https://discourse.nodered.org/t/node-red-contrib-mssql-plus-0-5-1-cant-connect-to-mssql/32501)

<div class="topic-metadata">

**Author:** [@kabuto-gyu](https://discourse.nodered.org/u/kabuto-gyu)\
**Replies:** 14\
**Last updated:** [9 September 2020 03:16 UTC](https://discourse.nodered.org/t/node-red-contrib-mssql-plus-0-5-1-cant-connect-to-mssql/32501 "2020-09-09T03:16:37Z")

</div>

Hello guys! I tried to query simple data from local MS SQL but not success. I also tried with another SQL Client software with same configuration, it worked well. I tried to reinstall it and run again, but it does…

---

## [Does node-red support FormData()?](https://discourse.nodered.org/t/does-node-red-support-formdata/32594)

<div class="topic-metadata">

**Author:** [@QIoT](https://discourse.nodered.org/u/QIoT)\
**Replies:** 2\
**Last updated:** [9 September 2020 00:30 UTC](https://discourse.nodered.org/t/does-node-red-support-formdata/32594 "2020-09-09T00:30:26Z")

</div>

Hi, I need to use Form data to send messages. So used this var formData = new FormData(); However, I got a reference error: FormData is not defined. How to use FormData and other syntax supported by js?

---

## [How to create a definition file to use in multiple nodes](https://discourse.nodered.org/t/how-to-create-a-definition-file-to-use-in-multiple-nodes/32606)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 8\
**Last updated:** [8 September 2020 22:09 UTC](https://discourse.nodered.org/t/how-to-create-a-definition-file-to-use-in-multiple-nodes/32606 "2020-09-08T22:09:04Z")

</div>

I would like to create a definition file containing general information such as path, constants, ... to use in multiple nodes, I think it is related to global variable, but don't know how is it good. Can you please sug…

---

## [Handling retry on failure from HTTP nodes](https://discourse.nodered.org/t/handling-retry-on-failure-from-http-nodes/32600)

<div class="topic-metadata">

**Author:** [@kartikn](https://discourse.nodered.org/u/kartikn)\
**Replies:** 3\
**Last updated:** [8 September 2020 19:09 UTC](https://discourse.nodered.org/t/handling-retry-on-failure-from-http-nodes/32600 "2020-09-08T19:09:20Z")

</div>

Hi, I am trying to implement a simple HTTP call with retry on failure. The failure could be a network issue that generates an "exception" or a service failure, where the HTTP call returns a failure code (say, not 200) a…

---

## [Run python script in Node red and export with MQTT](https://discourse.nodered.org/t/run-python-script-in-node-red-and-export-with-mqtt/32548)

<div class="topic-metadata">

**Author:** [@Sidr](https://discourse.nodered.org/u/Sidr)\
**Replies:** 15\
**Last updated:** [8 September 2020 16:47 UTC](https://discourse.nodered.org/t/run-python-script-in-node-red-and-export-with-mqtt/32548 "2020-09-08T16:47:27Z")

</div>

I have connected a CCS811 sensor with Raspberry PI and I have written a python script to output/print the sensor values. It works fine in the linux terminal. What are the methods to read the sensor data in Node-red and …

---

## [Node Red with django CSRF](https://discourse.nodered.org/t/node-red-with-django-csrf/32500)

<div class="topic-metadata">

**Author:** [@QIoT](https://discourse.nodered.org/u/QIoT)\
**Replies:** 2\
**Last updated:** [8 September 2020 13:43 UTC](https://discourse.nodered.org/t/node-red-with-django-csrf/32500 "2020-09-08T13:43:22Z")

</div>

Hi, I need to establish communication with django under csrf protection. After getting the token, how to add the token and cookie to the header for post request?

---

## [Node Red HTML Node Can't Read Past FRAME or FRAMESET?](https://discourse.nodered.org/t/node-red-html-node-cant-read-past-frame-or-frameset/32578)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 3\
**Last updated:** [8 September 2020 13:37 UTC](https://discourse.nodered.org/t/node-red-html-node-cant-read-past-frame-or-frameset/32578 "2020-09-08T13:37:38Z")

</div>

Node Red HTML Node Can't Read Past FRAME or FRAMESET? Noticed the curl has the same issue actually. I wrote a python script some ago that can parse HTML status from my cable modem. So I can tell when my ISP is doing s…

---

## [Group Merge makes group loosing it's properties](https://discourse.nodered.org/t/group-merge-makes-group-loosing-its-properties/32588)

<div class="topic-metadata">

**Author:** [@pgScorpio](https://discourse.nodered.org/u/pgScorpio)\
**Replies:** 2\
**Last updated:** [8 September 2020 12:55 UTC](https://discourse.nodered.org/t/group-merge-makes-group-loosing-its-properties/32588 "2020-09-08T12:55:22Z")

</div>

Hi Folks ! I love the new grouping feature in node-red (v1.1.3), but besides the "freeze" problem with cut&paste (as already addressed in another topic) I found another issue with groups. When using groups-\>'Merge sele…

---

## [Inject node firing after deploy](https://discourse.nodered.org/t/inject-node-firing-after-deploy/32586)

<div class="topic-metadata">

**Author:** [@sylvanoMTL](https://discourse.nodered.org/u/sylvanoMTL)\
**Replies:** 3\
**Last updated:** [8 September 2020 12:29 UTC](https://discourse.nodered.org/t/inject-node-firing-after-deploy/32586 "2020-09-08T12:29:23Z")

</div>

I have edited my post, after some investigation: Hi, I have an issue with my inject node. I configured it as pictured bellow, but it fires as soon as I deploy the application: My original flow consist of the inject …

---

## [Convert text to json](https://discourse.nodered.org/t/convert-text-to-json/32558)

<div class="topic-metadata">

**Author:** [@niclas.w82](https://discourse.nodered.org/u/niclas.w82)\
**Replies:** 11\
**Last updated:** [8 September 2020 10:54 UTC](https://discourse.nodered.org/t/convert-text-to-json/32558 "2020-09-08T10:54:06Z")

</div>

Hi. Any idea how I should do with this output. I should want to convert it to json format somehow so i can point out the path to different values easily. \[{"id":"339b5903.704d06","type":"debug","z":"7d7120c8.6f011","na…

---

## [Dashboard installation Error](https://discourse.nodered.org/t/dashboard-installation-error/32545)

<div class="topic-metadata">

**Author:** [@Kyra](https://discourse.nodered.org/u/Kyra)\
**Replies:** 6\
**Last updated:** [8 September 2020 09:52 UTC](https://discourse.nodered.org/t/dashboard-installation-error/32545 "2020-09-08T09:52:23Z")

</div>

Hello, I try to install node-red dashboard in a node-red environment. Node-red is functioning normal and the dashboard items are added. During installation I get the installation log as below. When I try to use a dasb…

---

## [How to buffer data and output them once the array reach a defined size](https://discourse.nodered.org/t/how-to-buffer-data-and-output-them-once-the-array-reach-a-defined-size/32571)

<div class="topic-metadata">

**Author:** [@sylvanoMTL](https://discourse.nodered.org/u/sylvanoMTL)\
**Replies:** 4\
**Last updated:** [8 September 2020 09:52 UTC](https://discourse.nodered.org/t/how-to-buffer-data-and-output-them-once-the-array-reach-a-defined-size/32571 "2020-09-08T09:52:20Z")

</div>

I am trying to downsample streamed data I am receiving via MQTT. I wish to build a buffer array and push values/objects to it, then pass the bufferin a payload before a reset. For instance I want to use a defined number…

---

## [Function check payload of 10 diffrent mqtt topics](https://discourse.nodered.org/t/function-check-payload-of-10-diffrent-mqtt-topics/32542)

<div class="topic-metadata">

**Author:** [@monster400](https://discourse.nodered.org/u/monster400)\
**Replies:** 4\
**Last updated:** [8 September 2020 09:20 UTC](https://discourse.nodered.org/t/function-check-payload-of-10-diffrent-mqtt-topics/32542 "2020-09-08T09:20:18Z")

</div>

Hello I'm trying to check state of 10 relays on different mqtt topics, i need to turn a pump on / off based on if all relays are off or just one on for floor heating with water. Can anyone help me how to do this functi…

---

## [Lines over a picture (edit picture)](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture/32567)

<div class="topic-metadata">

**Author:** [@softy2k](https://discourse.nodered.org/u/softy2k)\
**Replies:** 5\
**Last updated:** [8 September 2020 09:10 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture/32567 "2020-09-08T09:10:31Z")

</div>

I would like to draw some lines over a picture. Something like canvas in HTML: ctx.moveTo (x0, y0); ctx.lineTo (x1, y1); ctx.lineTo (x2, y2); ctx.lineTo (x3, y3); ctx.moveTo (x0, y0); ctx.fill (); Is it possible …

---

## [How to pass msg.payload to file-in node](https://discourse.nodered.org/t/how-to-pass-msg-payload-to-file-in-node/32582)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 3\
**Last updated:** [8 September 2020 08:20 UTC](https://discourse.nodered.org/t/how-to-pass-msg-payload-to-file-in-node/32582 "2020-09-08T08:20:39Z")

</div>

Hi, I would like to pass msg.payload to file-in node, but got warning "No filename specified" When I directly specify the path of the file to the Filename property of file-in node, the file can be read normally. \[{…

---

## [My Twitter out node doesn't work](https://discourse.nodered.org/t/my-twitter-out-node-doesnt-work/32553)

<div class="topic-metadata">

**Author:** [@foobrizio](https://discourse.nodered.org/u/foobrizio)\
**Replies:** 6\
**Last updated:** [8 September 2020 08:07 UTC](https://discourse.nodered.org/t/my-twitter-out-node-doesnt-work/32553 "2020-09-08T08:07:02Z")

</div>

Hi everyone, I'm testing a simple and essential flow in which I inject a message into a twitter output node, in order to write a tweet with my Twitter account. If I try to do it, I receive "TypeError: Cannot read prope…

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

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