# Latest

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

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

**Page:** 641

---

## [How to disconnect a websocket programmatically?](https://discourse.nodered.org/t/how-to-disconnect-a-websocket-programmatically/57637)

<div class="topic-metadata">

**Author:** [@rozek](https://discourse.nodered.org/u/rozek)\
**Replies:** 5\
**Last updated:** [2 February 2022 15:20 UTC](https://discourse.nodered.org/t/how-to-disconnect-a-websocket-programmatically/57637 "2022-02-02T15:20:48Z")

</div>

Well, normally, one wants a "websocket out" node to connect to a server in order to send a message and a "websocket in" node to connect as well in order to receive the response. But, how can one programmatically shut d…

---

## [Question in debuging a flow - How to stopp node RED in a certain condition?](https://discourse.nodered.org/t/question-in-debuging-a-flow-how-to-stopp-node-red-in-a-certain-condition/57648)

<div class="topic-metadata">

**Author:** [@lostbits](https://discourse.nodered.org/u/lostbits)\
**Replies:** 1\
**Last updated:** [2 February 2022 14:22 UTC](https://discourse.nodered.org/t/question-in-debuging-a-flow-how-to-stopp-node-red-in-a-certain-condition/57648 "2022-02-02T14:22:31Z")

</div>

Hi, I have some strange effects in my flow (multiple feedback loops) and i cant find out where the message came from, since there are by far too many messages around and the wrong message content happens one of 1000 mes…

---

## [Strange issue with reading files cyclic from a local drive on windows \[Error: EBUSY: resource busy or locked, lstat 'C:\\hiberfil.sys'\] maybe \[red\] Uncaught Exception:](https://discourse.nodered.org/t/strange-issue-with-reading-files-cyclic-from-a-local-drive-on-windows-error-ebusy-resource-busy-or-locked-lstat-c-hiberfil-sys-maybe-red-uncaught-exception/55336)

<div class="topic-metadata">

**Author:** [@lostbits](https://discourse.nodered.org/u/lostbits)\
**Replies:** 9\
**Last updated:** [2 February 2022 14:17 UTC](https://discourse.nodered.org/t/strange-issue-with-reading-files-cyclic-from-a-local-drive-on-windows-error-ebusy-resource-busy-or-locked-lstat-c-hiberfil-sys-maybe-red-uncaught-exception/55336 "2022-02-02T14:17:11Z")

</div>

Hi, I have a strange behavior by my flow ... I ingest by timer a message. This will be added with a starting dir and pattern and forwarded to a watcher node. After some time (hours till days) the node red stops wit…

---

## [How to change the default color of ui\_gauge](https://discourse.nodered.org/t/how-to-change-the-default-color-of-ui-gauge/57640)

<div class="topic-metadata">

**Author:** [@radjunior](https://discourse.nodered.org/u/radjunior)\
**Replies:** 1\
**Last updated:** [2 February 2022 12:53 UTC](https://discourse.nodered.org/t/how-to-change-the-default-color-of-ui-gauge/57640 "2022-02-02T12:53:25Z")

</div>

Hello everyone, I would like to know if it is possible for me to change the selected color in the image through a ui-control, or some other external css file That way I can enter the max and min values dynamically, si…

---

## [Multidroping on Modbus RTU node](https://discourse.nodered.org/t/multidroping-on-modbus-rtu-node/57618)

<div class="topic-metadata">

**Author:** [@DSongra11\_forum.com](https://discourse.nodered.org/u/DSongra11_forum.com)\
**Replies:** 4\
**Last updated:** [2 February 2022 12:44 UTC](https://discourse.nodered.org/t/multidroping-on-modbus-rtu-node/57618 "2022-02-02T12:44:28Z")

</div>

Hello, How to do Multidroping on Modbus RTU node. I have multiple Energy Meters, I want to read parameters from each meter. I have checked with 1 Energy Meter and was able to get the data in node-red. So how to config…

---

## [Node red http in node with sensor data](https://discourse.nodered.org/t/node-red-http-in-node-with-sensor-data/57631)

<div class="topic-metadata">

**Author:** [@amila](https://discourse.nodered.org/u/amila)\
**Replies:** 3\
**Last updated:** [2 February 2022 12:11 UTC](https://discourse.nodered.org/t/node-red-http-in-node-with-sensor-data/57631 "2022-02-02T12:11:15Z")

</div>

I use http in node & post method to receive esp 32 data as in figure 1. I am getting msg.payload in debug as in figure 2. My requirement is to create two separate array to display in two gauges. As an example in f…

---

## [Stuck with variables in getting value from flow context](https://discourse.nodered.org/t/stuck-with-variables-in-getting-value-from-flow-context/57613)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [2 February 2022 00:21 UTC](https://discourse.nodered.org/t/stuck-with-variables-in-getting-value-from-flow-context/57613 "2022-02-02T00:21:38Z")

</div>

Node: change \[{"id":"821066fcf882d5bf","type":"change","z":"a1911aa3.c45be8","name":"","rules":\[{"t":"set","p":"payload","pt":"msg","to":"LEDSTRIP\[6\]","tot":"flow"}\],"action":"","property":"","from":"","to":"","reg":fa…

---

## [Regex - insert a space - but only once!](https://discourse.nodered.org/t/regex-insert-a-space-but-only-once/57610)

<div class="topic-metadata">

**Author:** [@dclear](https://discourse.nodered.org/u/dclear)\
**Replies:** 3\
**Last updated:** [1 February 2022 23:28 UTC](https://discourse.nodered.org/t/regex-insert-a-space-but-only-once/57610 "2022-02-01T23:28:08Z")

</div>

Anyone know how to modify this regex to insert a space into a UK phone number but only do it once after the 5 digits and not again at 10 digits? msg.payload = msg.payload.replace(/(.{5})/g,'$1 '); return msg; thanks!

---

## [Change node to function node (newbie problem)](https://discourse.nodered.org/t/change-node-to-function-node-newbie-problem/57607)

<div class="topic-metadata">

**Author:** [@thierry-rhone](https://discourse.nodered.org/u/thierry-rhone)\
**Replies:** 4\
**Last updated:** [1 February 2022 22:40 UTC](https://discourse.nodered.org/t/change-node-to-function-node-newbie-problem/57607 "2022-02-01T22:40:04Z")

</div>

Hi, I would like to do the same thing as this node in a function node and I can't do it. can you help me Thanks

---

## [(Beginner) Sunset, timer, blinds](https://discourse.nodered.org/t/beginner-sunset-timer-blinds/57567)

<div class="topic-metadata">

**Author:** [@ZzZzleepy](https://discourse.nodered.org/u/ZzZzleepy)\
**Replies:** 5\
**Last updated:** [1 February 2022 21:24 UTC](https://discourse.nodered.org/t/beginner-sunset-timer-blinds/57567 "2022-02-01T21:24:54Z")

</div>

Hi I am totaly new to this and struggeling to find the right nodes for the job I want to roll up my blinds at 06:20 in the morning and roll down my blinds at sunset, if sunset is before 21:00 I have the blinds worki…

---

## [I think I saw Nic's doppelganger on youtube](https://discourse.nodered.org/t/i-think-i-saw-nics-doppelganger-on-youtube/57578)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [1 February 2022 20:12 UTC](https://discourse.nodered.org/t/i-think-i-saw-nics-doppelganger-on-youtube/57578 "2022-02-01T20:12:06Z")

</div>

And I am annoyed I didn't get a screen grab. Just the other day I was wasting time looking at youtube and I am sure I saw a picture/thumbnail of someone who would/could be Nic's doppelganger. Recent. Program release o…

---

## [Another question about the \`switch\` node. (not the GUI)](https://discourse.nodered.org/t/another-question-about-the-switch-node-not-the-gui/57574)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 14\
**Last updated:** [1 February 2022 20:05 UTC](https://discourse.nodered.org/t/another-question-about-the-switch-node-not-the-gui/57574 "2022-02-01T20:05:19Z")

</div>

Ok, I've been called up a few times that I do things back to front when filtering messages. If I am looking for a message that isn't of a certain type I find all messages of type and send them to output #1 of the switch …

---

## [Error connecting to Database (MSSQL)](https://discourse.nodered.org/t/error-connecting-to-database-mssql/57598)

<div class="topic-metadata">

**Author:** [@rathishhere](https://discourse.nodered.org/u/rathishhere)\
**Replies:** 3\
**Last updated:** [1 February 2022 19:32 UTC](https://discourse.nodered.org/t/error-connecting-to-database-mssql/57598 "2022-02-01T19:32:29Z")

</div>

"ConnectionError: Login failed for user ''." is the error i get when i try to connect to the database can anyone help

---

## [Capture snapshot data for UI table](https://discourse.nodered.org/t/capture-snapshot-data-for-ui-table/57599)

<div class="topic-metadata">

**Author:** [@WBr](https://discourse.nodered.org/u/WBr)\
**Replies:** 3\
**Last updated:** [1 February 2022 17:23 UTC](https://discourse.nodered.org/t/capture-snapshot-data-for-ui-table/57599 "2022-02-01T17:23:17Z")

</div>

I have been struggling with this UI table for a while I have a sensor running. I would like to create a snapshot of the data (time and temperature) when a certain event is happening so I can store it in my UI table for …

---

## [Is this or is this not valid JSONata?](https://discourse.nodered.org/t/is-this-or-is-this-not-valid-jsonata/57582)

<div class="topic-metadata">

**Author:** [@danielbrunt57](https://discourse.nodered.org/u/danielbrunt57)\
**Replies:** 22\
**Last updated:** [1 February 2022 17:04 UTC](https://discourse.nodered.org/t/is-this-or-is-this-not-valid-jsonata/57582 "2022-02-01T17:04:18Z")

</div>

$number($globalContext('homeassistant.homeAssistant.states\["input\_number.bathroom\_minimum\_turn\_on"\].state')) I am using a switch node and want to compare the values of these two entities but I have spent all day on i…

---

## [Node-RED node installed as dependency requires restart](https://discourse.nodered.org/t/node-red-node-installed-as-dependency-requires-restart/56647)

<div class="topic-metadata">

**Author:** [@sverre](https://discourse.nodered.org/u/sverre)\
**Replies:** 5\
**Last updated:** [1 February 2022 16:02 UTC](https://discourse.nodered.org/t/node-red-node-installed-as-dependency-requires-restart/56647 "2022-02-01T16:02:14Z")

</div>

I would like to install common Node-RED "support nodes" as a dependency of other Node-RED nodes I'm developing. I've confirmed that a dependency node is installed when installing the dependent node via the palette manage…

---

## [Variable inside payload](https://discourse.nodered.org/t/variable-inside-payload/57590)

<div class="topic-metadata">

**Author:** [@toppe](https://discourse.nodered.org/u/toppe)\
**Replies:** 6\
**Last updated:** [1 February 2022 15:50 UTC](https://discourse.nodered.org/t/variable-inside-payload/57590 "2022-02-01T15:50:17Z")

</div>

Hi, I'm having the following function: data :{ title : msg.title, message : msg.message, data: { push: { sound: { name: 'default', …

---

## [Cleaning up flow connections?](https://discourse.nodered.org/t/cleaning-up-flow-connections/57589)

<div class="topic-metadata">

**Author:** [@WBr](https://discourse.nodered.org/u/WBr)\
**Replies:** 7\
**Last updated:** [1 February 2022 14:05 UTC](https://discourse.nodered.org/t/cleaning-up-flow-connections/57589 "2022-02-01T14:05:25Z")

</div>

I am looking for a node or method to clean up the wiring between nodes I have a huge flow wich contains multiple sensors and functions. There are wires between nodes that obstructs the visual simplicity of following the…

---

## [TCP/IP receive and send specific message](https://discourse.nodered.org/t/tcp-ip-receive-and-send-specific-message/57581)

<div class="topic-metadata">

**Author:** [@rupak](https://discourse.nodered.org/u/rupak)\
**Replies:** 1\
**Last updated:** [1 February 2022 13:32 UTC](https://discourse.nodered.org/t/tcp-ip-receive-and-send-specific-message/57581 "2022-02-01T13:32:43Z")

</div>

Hello, I am receiving data from my devices in a specific port/ip. However, based on device, I want to send specific message back to the device. Any help will be hugely appreciated. Thanks And Regards, Rupak Banerjee. …

---

## [Clickbot for web application](https://discourse.nodered.org/t/clickbot-for-web-application/57570)

<div class="topic-metadata">

**Author:** [@noodie](https://discourse.nodered.org/u/noodie)\
**Replies:** 2\
**Last updated:** [1 February 2022 13:21 UTC](https://discourse.nodered.org/t/clickbot-for-web-application/57570 "2022-02-01T13:21:58Z")

</div>

is it possible to automate a web application with a kind of clickbot with node red? So I mean, is there a pre-made palette for this?

---

## [My first use of telegram bot](https://discourse.nodered.org/t/my-first-use-of-telegram-bot/57592)

<div class="topic-metadata">

**Author:** [@x\_dadu](https://discourse.nodered.org/u/x_dadu)\
**Replies:** 4\
**Last updated:** [1 February 2022 13:08 UTC](https://discourse.nodered.org/t/my-first-use-of-telegram-bot/57592 "2022-02-01T13:08:52Z")

</div>

I'm trying to send messages from node-red. I installed and configured the telegram according to the instructions here Send messages using Telegram and Node-RED – IoT with us When executed, it send the message "hello fro…

---

## [NODERED good solution for multi users?](https://discourse.nodered.org/t/nodered-good-solution-for-multi-users/57587)

<div class="topic-metadata">

**Author:** [@corso66](https://discourse.nodered.org/u/corso66)\
**Replies:** 0\
**Last updated:** [1 February 2022 11:33 UTC](https://discourse.nodered.org/t/nodered-good-solution-for-multi-users/57587 "2022-02-01T11:33:40Z")

</div>

Hi everyone, I almost done my project with node red and a IoT from my own design. It was hard for me because programming in C my processor is easy, but node red with javascript language is new for me since one year ! …

---

## [Support bracket name to specify array index in Mustache](https://discourse.nodered.org/t/support-bracket-name-to-specify-array-index-in-mustache/57585)

<div class="topic-metadata">

**Author:** [@kazuhitoyokoi](https://discourse.nodered.org/u/kazuhitoyokoi)\
**Replies:** 5\
**Last updated:** [1 February 2022 10:51 UTC](https://discourse.nodered.org/t/support-bracket-name-to-specify-array-index-in-mustache/57585 "2022-02-01T10:51:23Z")

</div>

When beginner users write Mustache in template node, they tend to encounter problems to specify array index. For example: How to access array element by index in mustache in template node - #4 by Steve-Mcl Node-REDのmus…

---

## [How can I find Google Home IP addresses?](https://discourse.nodered.org/t/how-can-i-find-google-home-ip-addresses/57556)

<div class="topic-metadata">

**Author:** [@manjha](https://discourse.nodered.org/u/manjha)\
**Replies:** 6\
**Last updated:** [1 February 2022 09:17 UTC](https://discourse.nodered.org/t/how-can-i-find-google-home-ip-addresses/57556 "2022-02-01T09:17:48Z")

</div>

I use cast nodes to transmit text to my Google Home speaker devices. Works like a charm, but the IP address changes every so often (after reboot of my router). I could set a static address based on mac address, but I won…

---

## [Machine Learning Node RED blocks](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535)

<div class="topic-metadata">

**Author:** [@smalhao](https://discourse.nodered.org/u/smalhao)\
**Replies:** 12\
**Last updated:** [1 February 2022 07:43 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535 "2022-02-01T07:43:20Z")

</div>

Hello, I need to start working with the machine learning library, is there any document explaining it with examples?

---

## [Is it possible to use node-red-node-sqlite in user-authentication.js and dashboard-auth.js?](https://discourse.nodered.org/t/is-it-possible-to-use-node-red-node-sqlite-in-user-authentication-js-and-dashboard-auth-js/57552)

<div class="topic-metadata">

**Author:** [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Replies:** 7\
**Last updated:** [1 February 2022 07:41 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-node-red-node-sqlite-in-user-authentication-js-and-dashboard-auth-js/57552 "2022-02-01T07:41:05Z")

</div>

I'm investigating an sqlite3 db corruption currently and going through the checklist here: https://www.sqlite.org/howtocorrupt.html I realised that as we are securing our node-red editor and the dashboard by enhancing …

---

## [🎉 Node-RED 2.2.0-beta.1 released](https://discourse.nodered.org/t/node-red-2-2-0-beta-1-released/56601)

<div class="topic-metadata">

**Author:** [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Replies:** 21\
**Last updated:** [1 February 2022 07:40 UTC](https://discourse.nodered.org/t/node-red-2-2-0-beta-1-released/56601 "2022-02-01T07:40:51Z")

</div>

:tada: The first beta release of Node-RED 2.2.0 is now available. There are not a lot of new features in this release, but here are the highlights. The Change Log has the full list of changes. Note: if any issues are …

---

## [\[Announce\] node-red-contrib-image-tools - updated v1.3.1](https://discourse.nodered.org/t/announce-node-red-contrib-image-tools-updated-v1-3-1/10751)

<div class="topic-metadata">

**Author:** [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Replies:** 67\
**Last updated:** [12 January 2022 13:47 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-image-tools-updated-v1-3-1/10751 "2022-01-12T13:47:54Z")

</div>

Do you think there is any interest in this... It uses Jimp and XZING to do what it does. Features include image conversion, reading writing to file, convolution (custom kernel matrix filters), batch mode processing, ou…

---

## [How to check if there is an upgrade](https://discourse.nodered.org/t/how-to-check-if-there-is-an-upgrade/57551)

<div class="topic-metadata">

**Author:** [@eantonya](https://discourse.nodered.org/u/eantonya)\
**Replies:** 2\
**Last updated:** [1 February 2022 01:53 UTC](https://discourse.nodered.org/t/how-to-check-if-there-is-an-upgrade/57551 "2022-02-01T01:53:09Z")

</div>

Can I check if there is an upgrade available to either Node Red itself or any of the installed packages from within a flow? I want to setup a notification for myself for upgrading if an upgrade is available. My install…

---

## [Simplest way to get Google Home work with Node-RED or MQTT](https://discourse.nodered.org/t/simplest-way-to-get-google-home-work-with-node-red-or-mqtt/57505)

<div class="topic-metadata">

**Author:** [@syoma755](https://discourse.nodered.org/u/syoma755)\
**Replies:** 8\
**Last updated:** [1 February 2022 01:27 UTC](https://discourse.nodered.org/t/simplest-way-to-get-google-home-work-with-node-red-or-mqtt/57505 "2022-02-01T01:27:57Z")

</div>

Hi there The more I get into this the more I confused. I basically have two Smart Home systems in my house: one is DIY system, based on OpenHAB, Node-RED, some Z-Wave Devices and MQTT bus, which connencts local Table…

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

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