# General

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

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

**Page:** 71

---

## [Msg Not Defined, Yet Can't Define it?](https://discourse.nodered.org/t/msg-not-defined-yet-cant-define-it/93396)

<div class="topic-metadata">

**Author:** [@OffGridNoob](https://discourse.nodered.org/u/OffGridNoob)\
**Replies:** 9\
**Last updated:** [24 November 2024 18:23 UTC](https://discourse.nodered.org/t/msg-not-defined-yet-cant-define-it/93396 "2024-11-24T18:23:50Z")

</div>

I've got several flows and I've just started cobbling together a dashboard. On my dashboard flow that I use to populate the dashboard, I have a stand alone function that I use to call a global context GasTankStatus, so …

---

## [The session validation should be checked before every page is loaded and the login page should be redirected](https://discourse.nodered.org/t/the-session-validation-should-be-checked-before-every-page-is-loaded-and-the-login-page-should-be-redirected/93380)

<div class="topic-metadata">

**Author:** [@LoganathanSambath](https://discourse.nodered.org/u/LoganathanSambath)\
**Replies:** 9\
**Last updated:** [24 November 2024 18:22 UTC](https://discourse.nodered.org/t/the-session-validation-should-be-checked-before-every-page-is-loaded-and-the-login-page-should-be-redirected/93380 "2024-11-24T18:22:58Z")

</div>

"I am working on session validation that needs to be checked before every page is loaded. If the validation fails, the user should be redirected to the login page. How do I achieve this? My server-side code is expressJ…

---

## [Nodes suggestion for timed rolling average and desynchronised sum](https://discourse.nodered.org/t/nodes-suggestion-for-timed-rolling-average-and-desynchronised-sum/4933)

<div class="topic-metadata">

**Author:** [@abajolle](https://discourse.nodered.org/u/abajolle)\
**Replies:** 46\
**Last updated:** [24 November 2024 17:53 UTC](https://discourse.nodered.org/t/nodes-suggestion-for-timed-rolling-average-and-desynchronised-sum/4933 "2024-11-24T17:53:15Z")

</div>

Hi dear Node-RED community, For one of my projects I am looking to do a rolling/moving average over the last 15 minutes of a machine throughput. Using a function node, recording the value for each cycle, with the times…

---

## [Node-RED: Tabulator Column Not Hiding](https://discourse.nodered.org/t/node-red-tabulator-column-not-hiding/92759)

<div class="topic-metadata">

**Author:** [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Replies:** 5\
**Last updated:** [24 November 2024 15:14 UTC](https://discourse.nodered.org/t/node-red-tabulator-column-not-hiding/92759 "2024-11-24T15:14:04Z")

</div>

I'm working with Node-RED and using the Tabulator component to display a table. I want to hide the "gender" column based on user input. In my function node, I have this code: msg.payload = { tbCmd: "hideColumn", …

---

## [Change msg.payload does not work](https://discourse.nodered.org/t/change-msg-payload-does-not-work/93395)

<div class="topic-metadata">

**Author:** [@Tillmario](https://discourse.nodered.org/u/Tillmario)\
**Replies:** 2\
**Last updated:** [23 November 2024 21:30 UTC](https://discourse.nodered.org/t/change-msg-payload-does-not-work/93395 "2024-11-23T21:30:51Z")

</div>

Hi there, I'm a beginner and was hoping someone could help me. I have a Tasoma IR-Reader for my digital electricity meter. I configured MQTT, set the topic to "smartmeter" and then added an mqtt in node. I configured …

---

## [Merging Values to a single payload](https://discourse.nodered.org/t/merging-values-to-a-single-payload/92947)

<div class="topic-metadata">

**Author:** [@gerribaldi](https://discourse.nodered.org/u/gerribaldi)\
**Replies:** 10\
**Last updated:** [23 November 2024 21:00 UTC](https://discourse.nodered.org/t/merging-values-to-a-single-payload/92947 "2024-11-23T21:00:31Z")

</div>

Hi, i want to sent this value "2c1426085000" via MQTT to a valve. This is basicly no problem. But the point ist this: I need to join the value from different sources. Most of the sources are always the same and i can i…

---

## [New line in message sent to Debug?](https://discourse.nodered.org/t/new-line-in-message-sent-to-debug/93391)

<div class="topic-metadata">

**Author:** [@OffGridNoob](https://discourse.nodered.org/u/OffGridNoob)\
**Replies:** 4\
**Last updated:** [23 November 2024 18:08 UTC](https://discourse.nodered.org/t/new-line-in-message-sent-to-debug/93391 "2024-11-23T18:08:38Z")

</div>

I've got a msg sent to a debug and am trying to put new lines in that message. I've tried "\\n" and \< br \> (without the spaces) but none are working. Is it possible to get new lines in the Debug Messages output window?

---

## [Writing a CSV is kicking my butt](https://discourse.nodered.org/t/writing-a-csv-is-kicking-my-butt/93372)

<div class="topic-metadata">

**Author:** [@DWoodlock](https://discourse.nodered.org/u/DWoodlock)\
**Replies:** 2\
**Last updated:** [23 November 2024 14:53 UTC](https://discourse.nodered.org/t/writing-a-csv-is-kicking-my-butt/93372 "2024-11-23T14:53:07Z")

</div>

Working on a data logging flow, and I am gathering a list of tags through OPC UA. I receive the tags in what I believe is a JSON object (pictured below): I then do a bunch of checking and flow control, and if all co…

---

## [Transfer NR "App" to another RPI -- need Help, please](https://discourse.nodered.org/t/transfer-nr-app-to-another-rpi-need-help-please/93319)

<div class="topic-metadata">

**Author:** [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Replies:** 6\
**Last updated:** [23 November 2024 10:48 UTC](https://discourse.nodered.org/t/transfer-nr-app-to-another-rpi-need-help-please/93319 "2024-11-23T10:48:44Z")

</div>

A somewhat extensive NR "App" with Tasmota devices and MQTT control is to be transferred from one RPI to another one. The new/different RPI naturally has a different host name and a different IP address, but the Tasmota…

---

## [Creating a global context variable?](https://discourse.nodered.org/t/creating-a-global-context-variable/93377)

<div class="topic-metadata">

**Author:** [@OffGridNoob](https://discourse.nodered.org/u/OffGridNoob)\
**Replies:** 8\
**Last updated:** [23 November 2024 10:24 UTC](https://discourse.nodered.org/t/creating-a-global-context-variable/93377 "2024-11-23T10:24:40Z")

</div>

I have a few flows that are working for starting and stopping a generator through a relay. One flow checks to see if the generator has quit (running out of fuel) and then de-energizes the relay. What I would like to do…

---

## [HTTP response at port 80](https://discourse.nodered.org/t/http-response-at-port-80/93348)

<div class="topic-metadata">

**Author:** [@JesFo](https://discourse.nodered.org/u/JesFo)\
**Replies:** 3\
**Last updated:** [23 November 2024 08:23 UTC](https://discourse.nodered.org/t/http-response-at-port-80/93348 "2024-11-23T08:23:52Z")

</div>

I'm trying to serve a webpage following this tutorial: Create an HTTP Endpoint : Node-RED And it works fine, but I'm looking for a way to serve the endpoint on port 80, without having to change NodeRED's dashboard port …

---

## [Anybody tried already an SMLIGHT SLZB-06](https://discourse.nodered.org/t/anybody-tried-already-an-smlight-slzb-06/92113)

<div class="topic-metadata">

**Author:** [@Bogi1](https://discourse.nodered.org/u/Bogi1)\
**Replies:** 17\
**Last updated:** [22 November 2024 20:45 UTC](https://discourse.nodered.org/t/anybody-tried-already-an-smlight-slzb-06/92113 "2024-11-22T20:45:28Z")

</div>

I am a newbee and need help. As ask in the headline already, i need to know if anybody tried already this part? If yes it is maybe possible to get a brief description how to install and use it. Thanks to everbody in a…

---

## [Communication GSK CNC](https://discourse.nodered.org/t/communication-gsk-cnc/90893)

<div class="topic-metadata">

**Author:** [@DiogoI4.0](https://discourse.nodered.org/u/DiogoI4.0)\
**Replies:** 1\
**Last updated:** [22 November 2024 16:49 UTC](https://discourse.nodered.org/t/communication-gsk-cnc/90893 "2024-11-22T16:49:43Z")

</div>

Hi everyone, I would like to collect data from GSK control, today I can do this with FANUC via FOCAS2 and SIEMENS via OPCUA using node-red. I've been looking, but haven't found anyone who has done this on GSK controlle…

---

## [Uibuilder - passing variables from node-red to frontend](https://discourse.nodered.org/t/uibuilder-passing-variables-from-node-red-to-frontend/93327)

<div class="topic-metadata">

**Author:** [@skytrackerdave](https://discourse.nodered.org/u/skytrackerdave)\
**Replies:** 2\
**Last updated:** [22 November 2024 16:47 UTC](https://discourse.nodered.org/t/uibuilder-passing-variables-from-node-red-to-frontend/93327 "2024-11-22T16:47:57Z")

</div>

Imagine the following in a webpage; \<script\> var myvar = 'foobar'; \</script\> Now I would like to change that variable from Node-red - uibuilder. Is there a way to do this? I have reviewed much of the documentatio…

---

## [Accessing global context values in function?](https://discourse.nodered.org/t/accessing-global-context-values-in-function/93318)

<div class="topic-metadata">

**Author:** [@OffGridNoob](https://discourse.nodered.org/u/OffGridNoob)\
**Replies:** 18\
**Last updated:** [22 November 2024 16:47 UTC](https://discourse.nodered.org/t/accessing-global-context-values-in-function/93318 "2024-11-22T16:47:25Z")

</div>

Apologies for the noob question, I'm just starting off with Node Red. I'm trying to make a flow such that If the Generator is Running then set in a time delay ....then after the delay check to see if Battery Charge - AC…

---

## [Wired communication to Pi Pico](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358)

<div class="topic-metadata">

**Author:** [@sammachin](https://discourse.nodered.org/u/sammachin)\
**Replies:** 3\
**Last updated:** [22 November 2024 15:38 UTC](https://discourse.nodered.org/t/wired-communication-to-pi-pico/93358 "2024-11-22T15:38:13Z")

</div>

I need to send some 'commands' to a pi pico device thats running some custom micropython code over a wired connection from Node-RED running on a RasPi. Anyone got a good solution to this, I only need a few basic state s…

---

## [Influence the path in the flow. on/off/auto](https://discourse.nodered.org/t/influence-the-path-in-the-flow-on-off-auto/93355)

<div class="topic-metadata">

**Author:** [@trombose009](https://discourse.nodered.org/u/trombose009)\
**Replies:** 3\
**Last updated:** [22 November 2024 14:42 UTC](https://discourse.nodered.org/t/influence-the-path-in-the-flow-on-off-auto/93355 "2024-11-22T14:42:10Z")

</div>

Hello, I have this flow. It switches a socket on and off based on the power consumption. I would now like to implement a possibility with the help of which I can operate this socket permanently off, permanently on or i…

---

## [Context \<ref\> contains a circular reference that cannot be persisted](https://discourse.nodered.org/t/context-ref-contains-a-circular-reference-that-cannot-be-persisted/93349)

<div class="topic-metadata">

**Author:** [@lorccan](https://discourse.nodered.org/u/lorccan)\
**Replies:** 4\
**Last updated:** [22 November 2024 11:07 UTC](https://discourse.nodered.org/t/context-ref-contains-a-circular-reference-that-cannot-be-persisted/93349 "2024-11-22T11:07:56Z")

</div>

I have this code: const intervalId = setInterval(() =\> { node.send({ payload: "test string }); }, interval); When I check the value of intervalId using node.warn, it appears to be an integer" intervalId…

---

## [Issue with Access Control After Page Reload — Admin User Sees All Pages](https://discourse.nodered.org/t/issue-with-access-control-after-page-reload-admin-user-sees-all-pages/93335)

<div class="topic-metadata">

**Author:** [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Replies:** 0\
**Last updated:** [22 November 2024 06:40 UTC](https://discourse.nodered.org/t/issue-with-access-control-after-page-reload-admin-user-sees-all-pages/93335 "2024-11-22T06:40:11Z")

</div>

I'm facing an issue with access control in my application. I have a system where users are assigned roles (e.g., admin), and certain pages should only be accessible to specific roles. However, after I reload the page, ev…

---

## [Victron SmartSolar MPPT 150/70](https://discourse.nodered.org/t/victron-smartsolar-mppt-150-70/93159)

<div class="topic-metadata">

**Author:** [@meccip](https://discourse.nodered.org/u/meccip)\
**Replies:** 1\
**Last updated:** [21 November 2024 22:57 UTC](https://discourse.nodered.org/t/victron-smartsolar-mppt-150-70/93159 "2024-11-21T22:57:53Z")

</div>

Hello. I am trying to get some data out of my controller to nodered. I use a FTDI cable and connected to ve.direct port. I tested the cable with my phone and i run victronconect without bluetooth active and i can read a…

---

## [Securing Node Red API](https://discourse.nodered.org/t/securing-node-red-api/93324)

<div class="topic-metadata">

**Author:** [@jaredlgeorge](https://discourse.nodered.org/u/jaredlgeorge)\
**Replies:** 4\
**Last updated:** [21 November 2024 21:50 UTC](https://discourse.nodered.org/t/securing-node-red-api/93324 "2024-11-21T21:50:58Z")

</div>

I am creating an api to communicate from an iis webpage to node red and back to the page. I have a http in and a http out node. I am wanting to secure this api from unauthorized get request. Any suggestions on where I…

---

## [Variable used for websocket node url](https://discourse.nodered.org/t/variable-used-for-websocket-node-url/92984)

<div class="topic-metadata">

**Author:** [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Replies:** 2\
**Last updated:** [21 November 2024 20:27 UTC](https://discourse.nodered.org/t/variable-used-for-websocket-node-url/92984 "2024-11-21T20:27:07Z")

</div>

Hi, Is there a way to set the URL used for websocket connection dynamically, like we can do for http request nodes ? Thanks, Jerome

---

## [Exec-Node: Works fine in Linux Terminal, but not in Exec-Node](https://discourse.nodered.org/t/exec-node-works-fine-in-linux-terminal-but-not-in-exec-node/93126)

<div class="topic-metadata">

**Author:** [@PeterSmarthome](https://discourse.nodered.org/u/PeterSmarthome)\
**Replies:** 45\
**Last updated:** [21 November 2024 20:24 UTC](https://discourse.nodered.org/t/exec-node-works-fine-in-linux-terminal-but-not-in-exec-node/93126 "2024-11-21T20:24:25Z")

</div>

Hi, I use terminal command to control my Samsung Oven mit SmartThings CLI. The command in the terminal is as follows and it works fine in the linux terminal: smartthings devices:commands \<myDeviceID\> --token=\<myToken\> …

---

## [Detecting disconnection of MQTT out node](https://discourse.nodered.org/t/detecting-disconnection-of-mqtt-out-node/83914)

<div class="topic-metadata">

**Author:** [@j2002](https://discourse.nodered.org/u/j2002)\
**Replies:** 120\
**Last updated:** [21 November 2024 17:26 UTC](https://discourse.nodered.org/t/detecting-disconnection-of-mqtt-out-node/83914 "2024-11-21T17:26:21Z")

</div>

I am using the logic in the image to send data over MQTT and, in the past, it has worked correctly: the status node is supposed to detect the connection status of the mqtt out node and, if disconnected, store the data lo…

---

## [array split node](https://discourse.nodered.org/t/array-split-node/93313)

<div class="topic-metadata">

**Author:** [@Roelof](https://discourse.nodered.org/u/Roelof)\
**Replies:** 2\
**Last updated:** [21 November 2024 16:20 UTC](https://discourse.nodered.org/t/array-split-node/93313 "2024-11-21T16:20:02Z")

</div>

Good afternoon. I get the following data in my debug node: debug 21 polling : msg.payload : array\[8\] array\[8\] 0: false 1: false 2: false 3: false 4: false 5: false 6: false 7: false I would like to have only…

---

## [Search into payload.items(i).description](https://discourse.nodered.org/t/search-into-payload-items-i-description/93275)

<div class="topic-metadata">

**Author:** [@s1r](https://discourse.nodered.org/u/s1r)\
**Replies:** 7\
**Last updated:** [21 November 2024 14:52 UTC](https://discourse.nodered.org/t/search-into-payload-items-i-description/93275 "2024-11-21T14:52:33Z")

</div>

With a msg.payload like the following: How do I get only payload.items\[i\].description matching a search term ("team1" or "team2" in this case)?

---

## [Http://localhost:1880/serialports](https://discourse.nodered.org/t/http-localhost-1880-serialports/93303)

<div class="topic-metadata">

**Author:** [@yhur](https://discourse.nodered.org/u/yhur)\
**Replies:** 5\
**Last updated:** [21 November 2024 14:28 UTC](https://discourse.nodered.org/t/http-localhost-1880-serialports/93303 "2024-11-21T14:28:18Z")

</div>

Hello team, http://localhost:1880/serialports used to return the list of serial ports for the server. But it seems changed and returns 'Unauthorized' when called. I know it works on the editor page, but I need to call t…

---

## [MQTT proxy for the Node-RED HTTP API](https://discourse.nodered.org/t/mqtt-proxy-for-the-node-red-http-api/93308)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 0\
**Last updated:** [21 November 2024 12:32 UTC](https://discourse.nodered.org/t/mqtt-proxy-for-the-node-red-http-api/93308 "2024-11-21T12:32:56Z")

</div>

Hi There, I'm just wondering whether anyone has developed a proxy that maps the NR HTTP API (with web socket) to a MQTT stream of packets? Why? I get the feeling that many applications of NR require a small device to …

---

## [Energy Meter - energy consumption](https://discourse.nodered.org/t/energy-meter-energy-consumption/92751)

<div class="topic-metadata">

**Author:** [@Tomtom](https://discourse.nodered.org/u/Tomtom)\
**Replies:** 15\
**Last updated:** [21 November 2024 09:17 UTC](https://discourse.nodered.org/t/energy-meter-energy-consumption/92751 "2024-11-21T09:17:34Z")

</div>

Hi everyone, Is there somewhere a simple node able to act as a virtual energy meter, which could provide the consumption of a device on a daily/monthly/yearly base ? I have not find one while searching the forum. Than…

---

## [OPC UA server - read all tags in a node](https://discourse.nodered.org/t/opc-ua-server-read-all-tags-in-a-node/93237)

<div class="topic-metadata">

**Author:** [@DWoodlock](https://discourse.nodered.org/u/DWoodlock)\
**Replies:** 4\
**Last updated:** [21 November 2024 07:33 UTC](https://discourse.nodered.org/t/opc-ua-server-read-all-tags-in-a-node/93237 "2024-11-21T07:33:09Z")

</div>

Hello, node red amateur novice here, looking for some clarification from those more experienced. I am working on a project for data logging on a rexroth PLC. I have connection to the OPC UA server and I was able to use…

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

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