# Latest

**URL:** https://discourse.nodered.org/latest.md?page=148

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

**Page:** 149

---

## [Debugging Node-RED ui\_base.js and Understanding WebSocket Behavior](https://discourse.nodered.org/t/debugging-node-red-ui-base-js-and-understanding-websocket-behavior/91131)

<div class="topic-metadata">

**Author:** [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Replies:** 6\
**Last updated:** [24 September 2024 08:44 UTC](https://discourse.nodered.org/t/debugging-node-red-ui-base-js-and-understanding-websocket-behavior/91131 "2024-09-24T08:44:24Z")

</div>

I'm working on debugging the ui\_base.js file from the FlowFuse Node-RED Dashboard located at /home/nandhini/CTCDSERV/nodered/node-red/node\_modules/@flowfuse/node-red-dashboard/nodes/config/ui\_base.js. Challenges: Meth…

---

## [Values getting dropped in chart 2.0 - Bar graph](https://discourse.nodered.org/t/values-getting-dropped-in-chart-2-0-bar-graph/90998)

<div class="topic-metadata">

**Author:** [@shubhamnodered](https://discourse.nodered.org/u/shubhamnodered)\
**Replies:** 8\
**Last updated:** [24 September 2024 08:37 UTC](https://discourse.nodered.org/t/values-getting-dropped-in-chart-2-0-bar-graph/90998 "2024-09-24T08:37:43Z")

</div>

Hi Team, For the given bar chart (Chart 2.0) visualized, i am feeding random numerical number every 1 second. However, the thing i observed: Some of the value get dropped. Bar chart is not updating/appending values d…

---

## [ADS protocol data structure,how tomerge these multiple nodes into a json object return?](https://discourse.nodered.org/t/ads-protocol-data-structure-how-tomerge-these-multiple-nodes-into-a-json-object-return/91221)

<div class="topic-metadata">

**Author:** [@Leon001](https://discourse.nodered.org/u/Leon001)\
**Replies:** 3\
**Last updated:** [24 September 2024 08:04 UTC](https://discourse.nodered.org/t/ads-protocol-data-structure-how-tomerge-these-multiple-nodes-into-a-json-object-return/91221 "2024-09-24T08:04:35Z")

</div>

The ADS protocol has multiple read nodes, how can I merge these multiple nodes into a json object return?

---

## [Help how to change the icon depending on value](https://discourse.nodered.org/t/help-how-to-change-the-icon-depending-on-value/91204)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 18\
**Last updated:** [24 September 2024 02:10 UTC](https://discourse.nodered.org/t/help-how-to-change-the-icon-depending-on-value/91204 "2024-09-24T02:10:14Z")

</div>

This is an extract from my code: if (pstate \> 2) { msg2 = { payload: '\<font color = "green"\> \<i class="fa fa-bullseye fa-2x" \>\</i\>\</font\>', colour: "green" }; } Which works. What I want to …

---

## [How to upgrade NR from 3.0.2 to 3.1.5](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 11\
**Last updated:** [24 September 2024 01:44 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173 "2024-09-24T01:44:46Z")

</div>

I may need to update NR on my 3 RasPis. They have NR 3.0.2 They need 3.1.5 so they are the same version as this machine. Sorry, how would I do that?

---

## [Warning in systemd / journalctl: referenced but unset environment](https://discourse.nodered.org/t/warning-in-systemd-journalctl-referenced-but-unset-environment/91190)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 3\
**Last updated:** [23 September 2024 19:50 UTC](https://discourse.nodered.org/t/warning-in-systemd-journalctl-referenced-but-unset-environment/91190 "2024-09-23T19:50:18Z")

</div>

Hi, I saw in journalctl the following warning message nodered.service: Referenced but unset environment variable evaluates to an empty string: NODE\_RED\_OPTIONS in both of my Ubuntu VM. Can you tell me what is the prob…

---

## [R pi PIR triggering playing mp3 file](https://discourse.nodered.org/t/r-pi-pir-triggering-playing-mp3-file/91194)

<div class="topic-metadata">

**Author:** [@thecybo](https://discourse.nodered.org/u/thecybo)\
**Replies:** 3\
**Last updated:** [23 September 2024 15:38 UTC](https://discourse.nodered.org/t/r-pi-pir-triggering-playing-mp3-file/91194 "2024-09-23T15:38:54Z")

</div>

I am new to node-red and have spent days trying to get a simple project to play a sound file when triggered from a PIR and turn on a light with a Raspberry Pi. I have tried all the nodes that deal with audio. Even tr…

---

## [Button group selection reset](https://discourse.nodered.org/t/button-group-selection-reset/91106)

<div class="topic-metadata">

**Author:** [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Replies:** 1\
**Last updated:** [23 September 2024 11:23 UTC](https://discourse.nodered.org/t/button-group-selection-reset/91106 "2024-09-23T11:23:13Z")

</div>

WIth version v1.13 I'm able to reset button group state \[ { "id": "2059f95a381c4ee9", "type": "ui-button-group", "z": "b5b01e12c2d27ec0", "g": "b5e2b560f2a5f66d", "name": "SDS…

---

## [Facing an issue of connecting modbus TCP](https://discourse.nodered.org/t/facing-an-issue-of-connecting-modbus-tcp/91203)

<div class="topic-metadata">

**Author:** [@Rajmohan](https://discourse.nodered.org/u/Rajmohan)\
**Replies:** 1\
**Last updated:** [23 September 2024 09:17 UTC](https://discourse.nodered.org/t/facing-an-issue-of-connecting-modbus-tcp/91203 "2024-09-23T09:17:12Z")

</div>

hi myself Rajmohan iam using the following version of node v22.4.1 and npm 10.8.1 Recently i connected Modbus TCP of Temperature and Humidity sensor to read the temperature and Humidity data.... I have a created a …

---

## [UDP out cant set host IP](https://discourse.nodered.org/t/udp-out-cant-set-host-ip/90844)

<div class="topic-metadata">

**Author:** [@xty19](https://discourse.nodered.org/u/xty19)\
**Replies:** 8\
**Last updated:** [23 September 2024 07:38 UTC](https://discourse.nodered.org/t/udp-out-cant-set-host-ip/90844 "2024-09-23T07:38:58Z")

</div>

Node-Red Version 3.0.2 Node Version V18.16.1 (MACOS) Electron Version No response Platform MACOS12.1 Architecture x64 My PC has multiple IP addresses, 192.168.8.47 and 192.168.0.17. I want to use UDP with IP …

---

## [Compare time in string format](https://discourse.nodered.org/t/compare-time-in-string-format/91176)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 2\
**Last updated:** [23 September 2024 06:37 UTC](https://discourse.nodered.org/t/compare-time-in-string-format/91176 "2024-09-23T06:37:45Z")

</div>

Hello i have a variable with time 10:00AM formatted as a string, I need to compare this against the current time. The date function returns integers. if I use parseInt on the string and slice it up, I don't get the lead…

---

## [Reading registers from electricity meters with modbus](https://discourse.nodered.org/t/reading-registers-from-electricity-meters-with-modbus/91168)

<div class="topic-metadata">

**Author:** [@LWfromPY](https://discourse.nodered.org/u/LWfromPY)\
**Replies:** 3\
**Last updated:** [23 September 2024 02:19 UTC](https://discourse.nodered.org/t/reading-registers-from-electricity-meters-with-modbus/91168 "2024-09-23T02:19:51Z")

</div>

Hello everyone, I need help with the following issue. I am trying to read data from a Modbus (RTU) electricity meter with a Raspberry Pi. So far everything is working fine, I can read almost all values, but I am havin…

---

## [Using blockly timer section](https://discourse.nodered.org/t/using-blockly-timer-section/91182)

<div class="topic-metadata">

**Author:** [@magicman](https://discourse.nodered.org/u/magicman)\
**Replies:** 7\
**Last updated:** [22 September 2024 22:05 UTC](https://discourse.nodered.org/t/using-blockly-timer-section/91182 "2024-09-22T22:05:06Z")

</div>

Hi, I am trying to script a timer function using blockly, i can start a timer and stop it using blockly but i need to be able to restart the timer BEFORE it completes its present timer setting. eg 10 seconds into its 30 …

---

## [How do I change the height or the spacing between the \`ui\_switch\` elements?](https://discourse.nodered.org/t/how-do-i-change-the-height-or-the-spacing-between-the-ui-switch-elements/90983)

<div class="topic-metadata">

**Author:** [@xxxSRxxx](https://discourse.nodered.org/u/xxxSRxxx)\
**Replies:** 21\
**Last updated:** [22 September 2024 10:51 UTC](https://discourse.nodered.org/t/how-do-i-change-the-height-or-the-spacing-between-the-ui-switch-elements/90983 "2024-09-22T10:51:15Z")

</div>

I want to reduce the height or spacing of the ui\_switch elements in a specific group so that I can display multiple switches on a single page.

---

## [Node-red-contrib-custom-chatgpt4o Range Error](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181)

<div class="topic-metadata">

**Author:** [@imperium85](https://discourse.nodered.org/u/imperium85)\
**Replies:** 6\
**Last updated:** [22 September 2024 09:56 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181 "2024-09-22T09:56:58Z")

</div>

Hi People, I'm experimenting with Chatgpt in Flow Fuse. I have a Text\_input for asking a question and ui-text to desplay the resoult. In the debug window I see the reply but in the ui text node I'm getting this error an…

---

## [clearInterval() not working](https://discourse.nodered.org/t/clearinterval-not-working/91169)

<div class="topic-metadata">

**Author:** [@wangenkuesse](https://discourse.nodered.org/u/wangenkuesse)\
**Replies:** 14\
**Last updated:** [22 September 2024 08:54 UTC](https://discourse.nodered.org/t/clearinterval-not-working/91169 "2024-09-22T08:54:33Z")

</div>

Hello everyone... I am working on a project with a countdown/timer. I call a function every second via setInterval(). When I edit the node in the editor an deploy, cleaInterval() is not stopping the function. The functi…

---

## [Help with what's (not) happening](https://discourse.nodered.org/t/help-with-whats-not-happening/91177)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 6\
**Last updated:** [22 September 2024 01:52 UTC](https://discourse.nodered.org/t/help-with-whats-not-happening/91177 "2024-09-22T01:52:07Z")

</div>

Seems I am really asking for trouble just now. I am trying to get some stuff working - which I thought was. So, quickly: If I send a DEBUG message it sets a bit and so when messages arrive I get node.warn() stuff. So…

---

## [Function nodes doing different things with different NR versions](https://discourse.nodered.org/t/function-nodes-doing-different-things-with-different-nr-versions/91174)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 3\
**Last updated:** [21 September 2024 23:13 UTC](https://discourse.nodered.org/t/function-nodes-doing-different-things-with-different-nr-versions/91174 "2024-09-21T23:13:28Z")

</div>

Following on from my other question about updating NR from 3.0.2 to 3.1.5.... I made a lump of code in a function node on the 3.1.5 machine. In the on start tab I have: // Code added here will be run once // whenever …

---

## [The nrg cli was released!](https://discourse.nodered.org/t/the-nrg-cli-was-released/90872)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 8\
**Last updated:** [21 September 2024 22:54 UTC](https://discourse.nodered.org/t/the-nrg-cli-was-released/90872 "2024-09-21T22:54:37Z")

</div>

I would like to share with you that I released the first iteration of the nrg cli. https://www.npmjs.com/package/@allanoricil/nrg-cli This is a template you can use to test the cli, and later use to create your own no…

---

## [Node red stopped due to interruption and reconnection of internet connection](https://discourse.nodered.org/t/node-red-stopped-due-to-interruption-and-reconnection-of-internet-connection/91155)

<div class="topic-metadata">

**Author:** [@delei](https://discourse.nodered.org/u/delei)\
**Replies:** 4\
**Last updated:** [21 September 2024 20:42 UTC](https://discourse.nodered.org/t/node-red-stopped-due-to-interruption-and-reconnection-of-internet-connection/91155 "2024-09-21T20:42:30Z")

</div>

I have installed node-red on a windows 11 PC which is running 24/7. Node-red is started by the autostart function of windows. Problem is, node-red will closed automatically without any failure in flows or the installati…

---

## [Debugging "Missing" nodes](https://discourse.nodered.org/t/debugging-missing-nodes/91161)

<div class="topic-metadata">

**Author:** [@jpadie](https://discourse.nodered.org/u/jpadie)\
**Replies:** 9\
**Last updated:** [21 September 2024 15:36 UTC](https://discourse.nodered.org/t/debugging-missing-nodes/91161 "2024-09-21T15:36:08Z")

</div>

I've been rewriting a large set of custom JS nodes into typescript to improve maintainability with some dependencies. In doing so I'm faced with a situation where the nodes load up OK on a blank flow and can be dropped …

---

## [Form output and placeholder template\_ui](https://discourse.nodered.org/t/form-output-and-placeholder-template-ui/91160)

<div class="topic-metadata">

**Author:** [@Panda](https://discourse.nodered.org/u/Panda)\
**Replies:** 6\
**Last updated:** [21 September 2024 15:30 UTC](https://discourse.nodered.org/t/form-output-and-placeholder-template-ui/91160 "2024-09-21T15:30:06Z")

</div>

Hey guys, I want to make a form in the template node and then make an output for the next node. Unfortunately I can't get it right, do any of you have an idea where the problem is? Thanks in advance \<style\> .input…

---

## [Dashboard 2 - number input node enquiry](https://discourse.nodered.org/t/dashboard-2-number-input-node-enquiry/91137)

<div class="topic-metadata">

**Author:** [@Surefire01](https://discourse.nodered.org/u/Surefire01)\
**Replies:** 5\
**Last updated:** [21 September 2024 10:27 UTC](https://discourse.nodered.org/t/dashboard-2-number-input-node-enquiry/91137 "2024-09-21T10:27:23Z")

</div>

Greetings folks. Thought it was about time to embrace the latest dashboard developments for my home heating project and have begun to recreate my old dashboard into dashboard 2. All is going well but I have noticed some…

---

## [Issues with udp node. Extra characters are added](https://discourse.nodered.org/t/issues-with-udp-node-extra-characters-are-added/91143)

<div class="topic-metadata">

**Author:** [@ygreq](https://discourse.nodered.org/u/ygreq)\
**Replies:** 3\
**Last updated:** [21 September 2024 09:19 UTC](https://discourse.nodered.org/t/issues-with-udp-node-extra-characters-are-added/91143 "2024-09-21T09:19:24Z")

</div>

Hi folks! I managed to get input from smart switches and send them via Zigbee2MQTT and Node-RED and OSC / UDP to another app (Cycling '74 Max in my case). You can see how in the attached images. Now I am trying to cont…

---

## [This is not working and I don't understand why. (Complicated kinda)](https://discourse.nodered.org/t/this-is-not-working-and-i-dont-understand-why-complicated-kinda/91158)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [21 September 2024 09:26 UTC](https://discourse.nodered.org/t/this-is-not-working-and-i-dont-understand-why-complicated-kinda/91158 "2024-09-21T09:26:18Z")

</div>

Yeah, I write dog's breakfast for code. That's who I am. I am TRYING to optimise this code from the already big dog's breakfast. The existing one is convoluted and I've found problems with it. (calling the setBit and…

---

## [Reading memory Logo Siemens](https://discourse.nodered.org/t/reading-memory-logo-siemens/91122)

<div class="topic-metadata">

**Author:** [@wcordova](https://discourse.nodered.org/u/wcordova)\
**Replies:** 1\
**Last updated:** [21 September 2024 08:20 UTC](https://discourse.nodered.org/t/reading-memory-logo-siemens/91122 "2024-09-21T08:20:58Z")

</div>

Hi all I have a variable in logo siemens (which is a temperature setpoint , could be positive or negative). This variable is located in VW37 in logo memory So, I want to get this information using node red (raspberr…

---

## [How to understand why node-red restarts?](https://discourse.nodered.org/t/how-to-understand-why-node-red-restarts/91146)

<div class="topic-metadata">

**Author:** [@tkreks](https://discourse.nodered.org/u/tkreks)\
**Replies:** 5\
**Last updated:** [21 September 2024 07:35 UTC](https://discourse.nodered.org/t/how-to-understand-why-node-red-restarts/91146 "2024-09-21T07:35:32Z")

</div>

Hello! In one of my projects, I use Node-RED for automation. I'm not a programmer at all, but Node-RED allows me to automate certain things and deepen my understanding. The gist is: I have agents on Selenium, and these a…

---

## [Best way to push DB1 data series to DB2 for chart?](https://discourse.nodered.org/t/best-way-to-push-db1-data-series-to-db2-for-chart/91029)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 6\
**Last updated:** [21 September 2024 07:19 UTC](https://discourse.nodered.org/t/best-way-to-push-db1-data-series-to-db2-for-chart/91029 "2024-09-21T07:19:44Z")

</div>

I use the payload below to push data to a DB1 line chart... That works nice. What would be the best way to push it to a DB2.0 chart ? \[{"series":\["Leitung 1","Leitung 2","Leitung 3","Alle Leitungen"\], "data":\[\[{"x":1726…

---

## [Reading contents of txt file into object](https://discourse.nodered.org/t/reading-contents-of-txt-file-into-object/91157)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 1\
**Last updated:** [21 September 2024 06:13 UTC](https://discourse.nodered.org/t/reading-contents-of-txt-file-into-object/91157 "2024-09-21T06:13:04Z")

</div>

hello I have a payload which has consists of: payload.value1 = abc; payload.value2 = def; payload.value3= hij; I write this to a text file, the text file contains: {"value1":"abc", "value2":"def","value3":"hij"} I…

---

## [D2 - Google Analytics?](https://discourse.nodered.org/t/d2-google-analytics/91140)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 3\
**Last updated:** [20 September 2024 20:22 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140 "2024-09-20T20:22:23Z")

</div>

Hi, just happened to see the sw.js service worker script contents that D2 uses and I noticed that it seems to include a link to Google Analytics? If that is so, I believe you need to declare that clearly in the docs to …

[Previous page](https://discourse.nodered.org/latest.md?page=147)

[Next page](https://discourse.nodered.org/latest.md?page=149)
