# Latest

**URL:** https://discourse.nodered.org/latest.md?no_subcategories=false&page=405

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

**Page:** 406

---

## [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…

---

## [What webcam node accept as an input msg?](https://discourse.nodered.org/t/what-webcam-node-accept-as-an-input-msg/74615)

<div class="topic-metadata">

**Author:** [@amine1](https://discourse.nodered.org/u/amine1)\
**Replies:** 1\
**Last updated:** [2 February 2023 17:22 UTC](https://discourse.nodered.org/t/what-webcam-node-accept-as-an-input-msg/74615 "2023-02-02T17:22:42Z")

</div>

hi every one ,i ask if there's a tutorial about webcam node ,else ,is there a way to turn off/on the camera and save te image captured by the button node

---

## [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…

---

## [Extract data from Node-Red](https://discourse.nodered.org/t/extract-data-from-node-red/74606)

<div class="topic-metadata">

**Author:** [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Replies:** 2\
**Last updated:** [2 February 2023 15:13 UTC](https://discourse.nodered.org/t/extract-data-from-node-red/74606 "2023-02-02T15:13:43Z")

</div>

hello, so I am collecting a information from a plc and operators running a line. so far I have this viewable live. I would like save the data captured at the end of the shift into a database. select the data and be able …

---

## [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…

---

## [Insert a security in a certain TAB?](https://discourse.nodered.org/t/insert-a-security-in-a-certain-tab/74531)

<div class="topic-metadata">

**Author:** [@allacmc](https://discourse.nodered.org/u/allacmc)\
**Replies:** 17\
**Last updated:** [2 February 2023 14:38 UTC](https://discourse.nodered.org/t/insert-a-security-in-a-certain-tab/74531 "2023-02-02T14:38:03Z")

</div>

Hello guys, Is there any way to insert a security in a certain TAB? I have a system with several TAB's and a specific TAB is for system settings and it doesn't make sense for the common user to have access, just let's …

---

## [Alternative to PI](https://discourse.nodered.org/t/alternative-to-pi/74374)

<div class="topic-metadata">

**Author:** [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Replies:** 2\
**Last updated:** [2 February 2023 13:57 UTC](https://discourse.nodered.org/t/alternative-to-pi/74374 "2023-02-02T13:57:06Z")

</div>

Hi, What alternative are there to a PI, to run Node-red on. Need to be the same, just about, as a Pi Zero. I have one flow with 15 nodes handling about 10 messages per hour, so really low consumption Thank you

---

## [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…

---

## [There is a way to turn off/on & save the image captured webcam by button](https://discourse.nodered.org/t/there-is-a-way-to-turn-off-on-save-the-image-captured-webcam-by-button/74599)

<div class="topic-metadata">

**Author:** [@amine1](https://discourse.nodered.org/u/amine1)\
**Replies:** 0\
**Last updated:** [2 February 2023 12:18 UTC](https://discourse.nodered.org/t/there-is-a-way-to-turn-off-on-save-the-image-captured-webcam-by-button/74599 "2023-02-02T12:18:30Z")

</div>

hi every one ,i ask if there's a tutorial about webcam node ,else ,is there a way to turn off/on the camera and save te image captured by the button node

---

## [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…

---

## [How to decrypt and pass a credential value in custom node](https://discourse.nodered.org/t/how-to-decrypt-and-pass-a-credential-value-in-custom-node/74584)

<div class="topic-metadata">

**Author:** [@syedhannan](https://discourse.nodered.org/u/syedhannan)\
**Replies:** 1\
**Last updated:** [2 February 2023 09:50 UTC](https://discourse.nodered.org/t/how-to-decrypt-and-pass-a-credential-value-in-custom-node/74584 "2023-02-02T09:50:45Z")

</div>

In my custom node, I fetch the username and password which I have to pass to a function of node-ansible npm package to initiate an ansible playbook. Since I have stored the password under credentials, a value required:…

---

## [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 server giving “TypeError: Cannot read properties of undefined (reading ‘indexOf’)”](https://discourse.nodered.org/t/opc-ua-server-giving-typeerror-cannot-read-properties-of-undefined-reading-indexof/73197)

<div class="topic-metadata">

**Author:** [@sahannt](https://discourse.nodered.org/u/sahannt)\
**Replies:** 4\
**Last updated:** [2 February 2023 08:58 UTC](https://discourse.nodered.org/t/opc-ua-server-giving-typeerror-cannot-read-properties-of-undefined-reading-indexof/73197 "2023-02-02T08:58:31Z")

</div>

Hi, I am using node-red-contrib-opcua. I tried to create opcua server using this library. but, when I inject the data, it gives error TypeError: Cannot read properties of undefined (reading ‘indexOf’). I cannot figure …

---

## [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…

---

## [Recommendation for remote or wired digital I/O to combine with NR running on Raspberry Pi](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463)

<div class="topic-metadata">

**Author:** [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Replies:** 16\
**Last updated:** [2 February 2023 02:56 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463 "2023-02-02T02:56:38Z")

</div>

I'm renovating a house and since it's quite big, I was thinking of automating things like lights, heating, and so on. I have a small Raspbery Pi 4 that I could use as dedicated NR server, but the I/O is clearly insuffic…

---

## [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"} …

---

## [Get sender objects](https://discourse.nodered.org/t/get-sender-objects/74561)

<div class="topic-metadata">

**Author:** [@superlogan72](https://discourse.nodered.org/u/superlogan72)\
**Replies:** 4\
**Last updated:** [1 February 2023 20:25 UTC](https://discourse.nodered.org/t/get-sender-objects/74561 "2023-02-01T20:25:17Z")

</div>

Hello i have 4 switches connected to a function that needs to check the state of each one. how can i get from which switch came the msg???? Thanks

[Previous page](https://discourse.nodered.org/latest.md?no_subcategories=false&page=404)

[Next page](https://discourse.nodered.org/latest.md?no_subcategories=false&page=406)
