# General

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

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

**Page:** 254

---

## [How to add a Sentry breadcrumb to every node?](https://discourse.nodered.org/t/how-to-add-a-sentry-breadcrumb-to-every-node/74614)

<div class="topic-metadata">

**Author:** [@watadarkstar](https://discourse.nodered.org/u/watadarkstar)\
**Replies:** 11\
**Last updated:** [2 February 2023 21:43 UTC](https://discourse.nodered.org/t/how-to-add-a-sentry-breadcrumb-to-every-node/74614 "2023-02-02T21:43:10Z")

</div>

I want to add a Sentry breadcrumb with the node ID so when an error occurs I know what path was taken. For example, Sentry.addBreadcrumb({ nodeId, flowId }) Is there some kind of node middleware that I can add this cod…

---

## [MQTT subscribe node and topic via a variable](https://discourse.nodered.org/t/mqtt-subscribe-node-and-topic-via-a-variable/74507)

<div class="topic-metadata">

**Author:** [@mizar62](https://discourse.nodered.org/u/mizar62)\
**Replies:** 17\
**Last updated:** [2 February 2023 20:06 UTC](https://discourse.nodered.org/t/mqtt-subscribe-node-and-topic-via-a-variable/74507 "2023-02-02T20:06:18Z")

</div>

Hi, I'm writing code for a dashboard to display data and set parameters via MQTT. The issue I have is that we have multiple instruments that has a bunch of different sensors and pump/valves connected. There are over h…

---

## [Node html request](https://discourse.nodered.org/t/node-html-request/74618)

<div class="topic-metadata">

**Author:** [@Epsylon](https://discourse.nodered.org/u/Epsylon)\
**Replies:** 4\
**Last updated:** [2 February 2023 18:43 UTC](https://discourse.nodered.org/t/node-html-request/74618 "2023-02-02T18:43:58Z")

</div>

Hallo, ich lese mit einem kleinen Python Programm einen Temperatur und Feuchtigkeitssensor aus und lasse mir diese Werte auf einer primitiven "Webseite" anzeigen. Nun möchte ich mit Node-Red die Werte von der "Webseite…

---

## [I am having a problem with VERY slow response in NodeRed, Modbus, UIBuilder](https://discourse.nodered.org/t/i-am-having-a-problem-with-very-slow-response-in-nodered-modbus-uibuilder/74607)

<div class="topic-metadata">

**Author:** [@VOGEL100](https://discourse.nodered.org/u/VOGEL100)\
**Replies:** 2\
**Last updated:** [2 February 2023 18:22 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-very-slow-response-in-nodered-modbus-uibuilder/74607 "2023-02-02T18:22:57Z")

</div>

Excuse me if I don't put this in the right place, don't ask the question correctly, or anything else a new person would do. I am trying to develop a NodeRed system to run several motors through an Eaton PLC. Ladder logi…

---

## [Hide multiple tab's with ui\_control](https://discourse.nodered.org/t/hide-multiple-tabs-with-ui-control/74609)

<div class="topic-metadata">

**Author:** [@allacmc](https://discourse.nodered.org/u/allacmc)\
**Replies:** 4\
**Last updated:** [2 February 2023 17:58 UTC](https://discourse.nodered.org/t/hide-multiple-tabs-with-ui-control/74609 "2023-02-02T17:58:20Z")

</div>

I've been parsing and using the ui\_control node. Is it possible only in a command line to hide several tabs? I tried here and failed. Does anyone have a way I can do this in an elegant way? \[{"id":"215bd10b8e5bb52…

---

## [Node-RED flow review process](https://discourse.nodered.org/t/node-red-flow-review-process/74546)

<div class="topic-metadata">

**Author:** [@ChangeTheCode](https://discourse.nodered.org/u/ChangeTheCode)\
**Replies:** 6\
**Last updated:** [2 February 2023 17:13 UTC](https://discourse.nodered.org/t/node-red-flow-review-process/74546 "2023-02-02T17:13:44Z")

</div>

I am currently working with Node-RED and ask myself how a professional review process for the flows can look like. The way I found with export the flow and add it to git isn't that nice from my point of view. At least if…

---

## [How to define Data Type STRING for opcua iiot flex server node](https://discourse.nodered.org/t/how-to-define-data-type-string-for-opcua-iiot-flex-server-node/74503)

<div class="topic-metadata">

**Author:** [@saraltech](https://discourse.nodered.org/u/saraltech)\
**Replies:** 4\
**Last updated:** [2 February 2023 17:10 UTC](https://discourse.nodered.org/t/how-to-define-data-type-string-for-opcua-iiot-flex-server-node/74503 "2023-02-02T17:10:29Z")

</div>

Dear Friends, I am trying to create opc ua server using from "node-red-contrib-iiot-opcua". I am able to get it working with data type as double. definition as shown below is working perfect: const gpioDI1 = namespace…

---

## [Problem comparison between the highest value of an array and a numerical value](https://discourse.nodered.org/t/problem-comparison-between-the-highest-value-of-an-array-and-a-numerical-value/74608)

<div class="topic-metadata">

**Author:** [@Acii](https://discourse.nodered.org/u/Acii)\
**Replies:** 0\
**Last updated:** [2 February 2023 14:56 UTC](https://discourse.nodered.org/t/problem-comparison-between-the-highest-value-of-an-array-and-a-numerical-value/74608 "2023-02-02T14:56:32Z")

</div>

Hello everyone, I have a problem with NodeRed I'll explain what I'm trying to do so you have the context, I make an http request using the GET method, I make this request on a web page that is only accessible from my lo…

---

## [Sum of values in an array](https://discourse.nodered.org/t/sum-of-values-in-an-array/74594)

<div class="topic-metadata">

**Author:** [@dineshaj](https://discourse.nodered.org/u/dineshaj)\
**Replies:** 8\
**Last updated:** [2 February 2023 13:39 UTC](https://discourse.nodered.org/t/sum-of-values-in-an-array/74594 "2023-02-02T13:39:07Z")

</div>

Hi, I have an array like the following I am using the function to calculate the value of Download and upload in MB. The result is coming out as a single object for each occurrence. The goal is to sum all the upload v…

---

## [Use Numeric Node in Dashboard UI to set a Time Interval Instead of Inject Node](https://discourse.nodered.org/t/use-numeric-node-in-dashboard-ui-to-set-a-time-interval-instead-of-inject-node/74512)

<div class="topic-metadata">

**Author:** [@Robby](https://discourse.nodered.org/u/Robby)\
**Replies:** 8\
**Last updated:** [2 February 2023 13:24 UTC](https://discourse.nodered.org/t/use-numeric-node-in-dashboard-ui-to-set-a-time-interval-instead-of-inject-node/74512 "2023-02-02T13:24:58Z")

</div>

Hi. It's soon to be everyone's favorite Node-RED noob here. I'm saving a log file to a directory on my Raspberry Pi. As a default in the inject node, I have it saving once every minute. I want the user to be able to chan…

---

## [Counter by day shift and night shift](https://discourse.nodered.org/t/counter-by-day-shift-and-night-shift/74581)

<div class="topic-metadata">

**Author:** [@atiki.nokin](https://discourse.nodered.org/u/atiki.nokin)\
**Replies:** 3\
**Last updated:** [2 February 2023 11:37 UTC](https://discourse.nodered.org/t/counter-by-day-shift-and-night-shift/74581 "2023-02-02T11:37:18Z")

</div>

Hello, I'm new in node red so basically I just understand to make counter by shift just using if, else if logic only but I've confused how to use the time format because it depends on AM PM format, can you help me what c…

---

## [JSONATA subtraction in arrays](https://discourse.nodered.org/t/jsonata-subtraction-in-arrays/74593)

<div class="topic-metadata">

**Author:** [@tobiasselin](https://discourse.nodered.org/u/tobiasselin)\
**Replies:** 4\
**Last updated:** [2 February 2023 11:16 UTC](https://discourse.nodered.org/t/jsonata-subtraction-in-arrays/74593 "2023-02-02T11:16:19Z")

</div>

Hello all. I have an array of arrays like the one below and I would like to subtract the second object in the inner arrays from the first \[ \[ 1675324800000, 1675324680000 \], \[ 1675324…

---

## [Subscribing to OPC UA Events](https://discourse.nodered.org/t/subscribing-to-opc-ua-events/73903)

<div class="topic-metadata">

**Author:** [@haph-vi](https://discourse.nodered.org/u/haph-vi)\
**Replies:** 2\
**Last updated:** [2 February 2023 09:17 UTC](https://discourse.nodered.org/t/subscribing-to-opc-ua-events/73903 "2023-02-02T09:17:04Z")

</div>

Hello, I am using Node-RED 3.0.2 with node-red-contrib-opcua 0.2.292. I want to subscribe to events but I get no data and also no error. Subscribing/reading normal nodes (ExtensionObjects) works fine. If I subscribe …

---

## [OPC UA Client continues reading](https://discourse.nodered.org/t/opc-ua-client-continues-reading/74175)

<div class="topic-metadata">

**Author:** [@Kamal8393](https://discourse.nodered.org/u/Kamal8393)\
**Replies:** 1\
**Last updated:** [2 February 2023 08:49 UTC](https://discourse.nodered.org/t/opc-ua-client-continues-reading/74175 "2023-02-02T08:49:59Z")

</div>

Hello, I have OPC UA Client where I read two items as shown in the picture. I have set the inject timer to 10ms interval, each 10ms, the node fetches the updated data. This is an issue for me as I will have continue…

---

## [Hosting node red](https://discourse.nodered.org/t/hosting-node-red/74582)

<div class="topic-metadata">

**Author:** [@t4amit](https://discourse.nodered.org/u/t4amit)\
**Replies:** 5\
**Last updated:** [2 February 2023 08:37 UTC](https://discourse.nodered.org/t/hosting-node-red/74582 "2023-02-02T08:37:20Z")

</div>

Dear Sir, I have Raspberry Pi that is connected with SIM7600X 4G Hat . it has in build internet and IP address. how can i host my raspberry pi node red programming consol to the raspberry pi IP. remotly i want to prog…

---

## [Can TDD be done for Nodered Flows?](https://discourse.nodered.org/t/can-tdd-be-done-for-nodered-flows/74588)

<div class="topic-metadata">

**Author:** [@Josh](https://discourse.nodered.org/u/Josh)\
**Replies:** 0\
**Last updated:** [2 February 2023 07:33 UTC](https://discourse.nodered.org/t/can-tdd-be-done-for-nodered-flows/74588 "2023-02-02T07:33:42Z")

</div>

Hi Forum, I am curious to know if there are any ways to do UNIT TESTING and TDD for nodered flows? Suggestions with appropriate tools are much welcomed.

---

## [Strange Array/Object behaviour DataValue](https://discourse.nodered.org/t/strange-array-object-behaviour-datavalue/74463)

<div class="topic-metadata">

**Author:** [@fabi](https://discourse.nodered.org/u/fabi)\
**Replies:** 17\
**Last updated:** [2 February 2023 05:57 UTC](https://discourse.nodered.org/t/strange-array-object-behaviour-datavalue/74463 "2023-02-02T05:57:07Z")

</div>

I am using the node-red-contrib-opcua client node to read multiple variables at once. When i use node.warn() to debug the whole msg.payload array, i can access the different objects in it how i am used to it: But whe…

---

## [Installation on Ubuntu 22.4. Only works on 1880 and no SSL](https://discourse.nodered.org/t/installation-on-ubuntu-22-4-only-works-on-1880-and-no-ssl/74286)

<div class="topic-metadata">

**Author:** [@Thor](https://discourse.nodered.org/u/Thor)\
**Replies:** 4\
**Last updated:** [2 February 2023 05:09 UTC](https://discourse.nodered.org/t/installation-on-ubuntu-22-4-only-works-on-1880-and-no-ssl/74286 "2023-02-02T05:09:38Z")

</div>

Hi, Not exactly sure what I am missing here. I followed the tutorials from this website. (How to Connect Your Internet of Things with Node-RED on Ubuntu 16.04 | DigitalOcean) Installed Nginx on Ubuntu 22.04. \> works …

---

## [Timer for count total time when get trigger from inject node true](https://discourse.nodered.org/t/timer-for-count-total-time-when-get-trigger-from-inject-node-true/74537)

<div class="topic-metadata">

**Author:** [@atiki.nokin](https://discourse.nodered.org/u/atiki.nokin)\
**Replies:** 11\
**Last updated:** [2 February 2023 03:44 UTC](https://discourse.nodered.org/t/timer-for-count-total-time-when-get-trigger-from-inject-node-true/74537 "2023-02-02T03:44:44Z")

</div>

Hi, I'm new in node red and I confused when I try to make some simple timer to count for a total time when the true value injected here's the code I write var counterLStime = flow.get("counter")||0; var trigger = msg.pa…

---

## [Docker and the \_cred file](https://discourse.nodered.org/t/docker-and-the-cred-file/73936)

<div class="topic-metadata">

**Author:** [@garrenr14](https://discourse.nodered.org/u/garrenr14)\
**Replies:** 3\
**Last updated:** [2 February 2023 02:08 UTC](https://discourse.nodered.org/t/docker-and-the-cred-file/73936 "2023-02-02T02:08:01Z")

</div>

I've been using this fantastic tutorial https://nodered.org/docs/getting-started/docker and I have been able to use a bindMount to update and persist my flows.json file. It works great - but I cannot get the credentials …

---

## [Why my Node-red cant install](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525)

<div class="topic-metadata">

**Author:** [@f3lixlee](https://discourse.nodered.org/u/f3lixlee)\
**Replies:** 7\
**Last updated:** [2 February 2023 01:26 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525 "2023-02-02T01:26:10Z")

</div>

My node.js version is v18.13.0 when i run cmd he will show me Error: EPERM: operation not permitted mkdir 'C:\\Users\\Programmer4\\.node-red'

---

## [Advice on JSON format](https://discourse.nodered.org/t/advice-on-json-format/74558)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 7\
**Last updated:** [1 February 2023 21:50 UTC](https://discourse.nodered.org/t/advice-on-json-format/74558 "2023-02-01T21:50:32Z")

</div>

Please can people tell me which of these JSON formats is the most appropriate? Object. { "services": { "nodered":{"State":"running","enabled":"enabled"}, "mariadb":{"State":"running","enabled":"enabled"} …

---

## [How to discard first message(s) and pass only the last message in a set period of time?](https://discourse.nodered.org/t/how-to-discard-first-message-s-and-pass-only-the-last-message-in-a-set-period-of-time/74570)

<div class="topic-metadata">

**Author:** [@t0mZ4](https://discourse.nodered.org/u/t0mZ4)\
**Replies:** 2\
**Last updated:** [1 February 2023 20:06 UTC](https://discourse.nodered.org/t/how-to-discard-first-message-s-and-pass-only-the-last-message-in-a-set-period-of-time/74570 "2023-02-01T20:06:15Z")

</div>

Hi :slight\_smile: Any idea on how to achieve the following case? for topic A: in a window of 5 seconds Message A - delete Message B - delete Message C (last message) - pass thanks champions!

---

## [Generating visual code for ws2812b using Node Red](https://discourse.nodered.org/t/generating-visual-code-for-ws2812b-using-node-red/74568)

<div class="topic-metadata">

**Author:** [@sefaguntepe](https://discourse.nodered.org/u/sefaguntepe)\
**Replies:** 0\
**Last updated:** [1 February 2023 19:15 UTC](https://discourse.nodered.org/t/generating-visual-code-for-ws2812b-using-node-red/74568 "2023-02-01T19:15:03Z")

</div>

Hello, I have an area of 17x17 pixels by creating a matrix with ws2812b. As you know, we use the following format to add images to the code. My purpose: I want to upload the image via NodeRed and send the relevant HEX c…

---

## [Junction nodes think they are bigger than they are](https://discourse.nodered.org/t/junction-nodes-think-they-are-bigger-than-they-are/74474)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 7\
**Last updated:** [1 February 2023 17:11 UTC](https://discourse.nodered.org/t/junction-nodes-think-they-are-bigger-than-they-are/74474 "2023-02-01T17:11:52Z")

</div>

I find that some of my junction nodes think they are bigger than they should be, so if they are not widely separated from adjacent nodes then they show the ! warning of overlapping nodes. If I move the function node (…

---

## [Work with deployed flows on /ui and run the editor for different flows](https://discourse.nodered.org/t/work-with-deployed-flows-on-ui-and-run-the-editor-for-different-flows/74366)

<div class="topic-metadata">

**Author:** [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Replies:** 15\
**Last updated:** [1 February 2023 15:19 UTC](https://discourse.nodered.org/t/work-with-deployed-flows-on-ui-and-run-the-editor-for-different-flows/74366 "2023-02-01T15:19:01Z")

</div>

My first flows are build and deployed at port 1880 and stored with .node-red/flows.json. While the first version is in use, I would like to continue "working on it". I thought that this should go with a copy at another …

---

## [Save more variables in file with function node](https://discourse.nodered.org/t/save-more-variables-in-file-with-function-node/74560)

<div class="topic-metadata">

**Author:** [@\_mirjka](https://discourse.nodered.org/u/_mirjka)\
**Replies:** 2\
**Last updated:** [1 February 2023 14:18 UTC](https://discourse.nodered.org/t/save-more-variables-in-file-with-function-node/74560 "2023-02-01T14:18:49Z")

</div>

Hi, I try to save more or one variable in the nodered file system with the same function node. I have two different MQTT sources, one is a zyklic response with all variables at once and the other source only sends one …

---

## [Node-red returns empty when sending query to Microsoft SQL Server](https://discourse.nodered.org/t/node-red-returns-empty-when-sending-query-to-microsoft-sql-server/74555)

<div class="topic-metadata">

**Author:** [@Davih\_andrade](https://discourse.nodered.org/u/Davih_andrade)\
**Replies:** 4\
**Last updated:** [1 February 2023 13:21 UTC](https://discourse.nodered.org/t/node-red-returns-empty-when-sending-query-to-microsoft-sql-server/74555 "2023-02-01T13:21:43Z")

</div>

Hi, i’m having a problem using Microsoft SQL server with node-red and i hope someone can help me, also sorry if i'm not using the correct format for the post. I’m using the mssql-plus pallete and it Works in general, i s…

---

## [Display Wifi infomation on a PLC touch screen](https://discourse.nodered.org/t/display-wifi-infomation-on-a-plc-touch-screen/15665)

<div class="topic-metadata">

**Author:** [@Jeroen](https://discourse.nodered.org/u/Jeroen)\
**Replies:** 14\
**Last updated:** [1 February 2023 13:20 UTC](https://discourse.nodered.org/t/display-wifi-infomation-on-a-plc-touch-screen/15665 "2023-02-01T13:20:28Z")

</div>

I have a plc wired to my raspberry pi and it is comunicating over TCP IP. Now I want to show on the display of the plc that the pi is connected to WiFi and the strength of the signal. I used Wifi scanner but now I don't …

---

## [Unset property overwrites text node](https://discourse.nodered.org/t/unset-property-overwrites-text-node/74473)

<div class="topic-metadata">

**Author:** [@dondario](https://discourse.nodered.org/u/dondario)\
**Replies:** 5\
**Last updated:** [1 February 2023 13:14 UTC](https://discourse.nodered.org/t/unset-property-overwrites-text-node/74473 "2023-02-01T13:14:24Z")

</div>

Hi, I'm using node red since more than 4 years and i have a question regarding the text node. When I am using the mustache syntax to set the value format to e.g.: "{{msg.payload.second}}" everything works fine, if the…

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

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