# General

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

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

**Page:** 430

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Problem with decoding Hex string](https://discourse.nodered.org/t/problem-with-decoding-hex-string/57401)

<div class="topic-metadata">

**Author:** [@Supr3meleader](https://discourse.nodered.org/u/Supr3meleader)\
**Replies:** 9\
**Last updated:** [31 January 2022 22:17 UTC](https://discourse.nodered.org/t/problem-with-decoding-hex-string/57401 "2022-01-31T22:17:01Z")

</div>

Hello, I am kinda new to this and can not write code. My problem is that I can't decode a Hex String that I am getting from my RakWireless gateway. It is the data (in this case: 0100E00216070E2314000F9392) that I can'…

---

## [Write file node only errors once and always returns the payload, even when it can't write](https://discourse.nodered.org/t/write-file-node-only-errors-once-and-always-returns-the-payload-even-when-it-cant-write/57563)

<div class="topic-metadata">

**Author:** [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Replies:** 2\
**Last updated:** [31 January 2022 22:12 UTC](https://discourse.nodered.org/t/write-file-node-only-errors-once-and-always-returns-the-payload-even-when-it-cant-write/57563 "2022-01-31T22:12:01Z")

</div>

I was playing with a flow today to create a simple API for writing data to a CSV file. If it is able to write to the file then I want it to write the data and return a simple success message. If it's not able to write to…

---

## [More project simultaneously opened with different port number](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 5\
**Last updated:** [31 January 2022 21:03 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271 "2022-01-31T21:03:44Z")

</div>

Hi all, I would like use a server with nodered to create more than one projects and user could switch from one project to other opening different web page: 192.168.1.10:1880 or 192.168.1.10:1881 etc. Is possible to cre…

---

## [Update PODs on Deploy Flow](https://discourse.nodered.org/t/update-pods-on-deploy-flow/57569)

<div class="topic-metadata">

**Author:** [@renatocampos](https://discourse.nodered.org/u/renatocampos)\
**Replies:** 0\
**Last updated:** [31 January 2022 20:50 UTC](https://discourse.nodered.org/t/update-pods-on-deploy-flow/57569 "2022-01-31T20:50:13Z")

</div>

Hi Folks, I\`m facing an issue when I deploy my flow. I\`m running Node-Red 2.2 on Kubernetes with 3 replicas (3 PODs). When I press deploy on my flow, and I make a request to my http-in of my flow, one of these requ…

---

## [Range node - non linear](https://discourse.nodered.org/t/range-node-non-linear/57284)

<div class="topic-metadata">

**Author:** [@HS10](https://discourse.nodered.org/u/HS10)\
**Replies:** 35\
**Last updated:** [31 January 2022 19:38 UTC](https://discourse.nodered.org/t/range-node-non-linear/57284 "2022-01-31T19:38:21Z")

</div>

Hi Folks The range node is linear, does a non-linear conversion node exist?

---

## [Deploy message after latest update](https://discourse.nodered.org/t/deploy-message-after-latest-update/57561)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 3\
**Last updated:** [31 January 2022 18:09 UTC](https://discourse.nodered.org/t/deploy-message-after-latest-update/57561 "2022-01-31T18:09:39Z")

</div>

updated to latest node red version and now when I deploy I get the following doesn't seem normal to me? \[EDIT\] ver 2.2

---

## [Using Parquet file instead of csv?](https://discourse.nodered.org/t/using-parquet-file-instead-of-csv/57547)

<div class="topic-metadata">

**Author:** [@nodenoob](https://discourse.nodered.org/u/nodenoob)\
**Replies:** 15\
**Last updated:** [31 January 2022 15:46 UTC](https://discourse.nodered.org/t/using-parquet-file-instead-of-csv/57547 "2022-01-31T15:46:46Z")

</div>

I am currently using a csv-file dor saving and reading my data. Is there an easy way to use a parquel file instead. Because I read that this would be faster and would be saving storage. Does anyone of you have experience…

---

## [How to read a 33-bit field with "node-red-contrib-binary"?](https://discourse.nodered.org/t/how-to-read-a-33-bit-field-with-node-red-contrib-binary/57483)

<div class="topic-metadata">

**Author:** [@janedoe123](https://discourse.nodered.org/u/janedoe123)\
**Replies:** 18\
**Last updated:** [31 January 2022 09:03 UTC](https://discourse.nodered.org/t/how-to-read-a-33-bit-field-with-node-red-contrib-binary/57483 "2022-01-31T09:03:29Z")

</div>

Hi there, I'm currently using the node-red-contrib-binary, but I'm facing an issue whereby I can't seem to be able to read a 33-bit field. No issue at all for 1-32 bit, but for 33, I have no clue... Has anybody been ab…

---

## [Openweathermap with input from a GPS](https://discourse.nodered.org/t/openweathermap-with-input-from-a-gps/57538)

<div class="topic-metadata">

**Author:** [@xsilvergs](https://discourse.nodered.org/u/xsilvergs)\
**Replies:** 10\
**Last updated:** [31 January 2022 14:51 UTC](https://discourse.nodered.org/t/openweathermap-with-input-from-a-gps/57538 "2022-01-31T14:51:41Z")

</div>

I am trying to use weather data from Openweathermap and have tried both the Openweathermap node and the Http Request node but run into problems with both. With the Openweathermap node I have two issues. Firstly, I belie…

---

## [Camera Configuration using node-red-contrib-google-smarthome](https://discourse.nodered.org/t/camera-configuration-using-node-red-contrib-google-smarthome/57545)

<div class="topic-metadata">

**Author:** [@bkdfkup](https://discourse.nodered.org/u/bkdfkup)\
**Replies:** 0\
**Last updated:** [31 January 2022 11:12 UTC](https://discourse.nodered.org/t/camera-configuration-using-node-red-contrib-google-smarthome/57545 "2022-01-31T11:12:01Z")

</div>

Hi All. Working on configuring camera streaming to google assistant via node-red-contrib-google-smarthome and am having some challenging issues. I have tried several protocols, and have only had some success using FFM…

---

## [Pass payload to subflow](https://discourse.nodered.org/t/pass-payload-to-subflow/57535)

<div class="topic-metadata">

**Author:** [@toppe](https://discourse.nodered.org/u/toppe)\
**Replies:** 2\
**Last updated:** [31 January 2022 08:08 UTC](https://discourse.nodered.org/t/pass-payload-to-subflow/57535 "2022-01-31T08:08:37Z")

</div>

Hi, I've created a sub flow that has 4 variables (title, message, user, critical) and I would like a pass a msg.payload into the sub-flow message variable. Does any one know if this is possible?

---

## [Issues starting node-red because insert "/" name of db in mongo node](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516)

<div class="topic-metadata">

**Author:** [@Carles](https://discourse.nodered.org/u/Carles)\
**Replies:** 3\
**Last updated:** [31 January 2022 06:46 UTC](https://discourse.nodered.org/t/issues-starting-node-red-because-insert-name-of-db-in-mongo-node/57516 "2022-01-31T06:46:13Z")

</div>

Hi, everyone. I'm Carles and I'm starting to learn node-red and mqtt. I know a bit of python and nothing of js. I'm trying to send a message to mongodb but when inserted connection in mongo node I wrote "/" and now ever…

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

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