# General

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

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

**Page:** 198

---

## [Converting inject nodes to function block](https://discourse.nodered.org/t/converting-inject-nodes-to-function-block/79579)

<div class="topic-metadata">

**Author:** [@SK\_30](https://discourse.nodered.org/u/SK_30)\
**Replies:** 7\
**Last updated:** [5 July 2023 07:22 UTC](https://discourse.nodered.org/t/converting-inject-nodes-to-function-block/79579 "2023-07-05T07:22:58Z")

</div>

Hello, I want to convert all inject nodes in my flow to the function node so that I do not have to inject each node manually. I have tried to implement it but only "addVariable3" is being executed. What could be the pro…

---

## [How can we share one program on several devices while they will respond to each others?](https://discourse.nodered.org/t/how-can-we-share-one-program-on-several-devices-while-they-will-respond-to-each-others/79585)

<div class="topic-metadata">

**Author:** [@cccuirq](https://discourse.nodered.org/u/cccuirq)\
**Replies:** 3\
**Last updated:** [5 July 2023 05:55 UTC](https://discourse.nodered.org/t/how-can-we-share-one-program-on-several-devices-while-they-will-respond-to-each-others/79585 "2023-07-05T05:55:33Z")

</div>

I’m finishing one flow and I want to run it in three different computer. If my program fail to run at some point in one of my computer, the other computer will take action to this problem. So basically, the three devices…

---

## [MQTT - DS18B20 Sensors and Rules Question](https://discourse.nodered.org/t/mqtt-ds18b20-sensors-and-rules-question/79572)

<div class="topic-metadata">

**Author:** [@scargill](https://discourse.nodered.org/u/scargill)\
**Replies:** 18\
**Last updated:** [5 July 2023 00:20 UTC](https://discourse.nodered.org/t/mqtt-ds18b20-sensors-and-rules-question/79572 "2023-07-05T00:20:36Z")

</div>

Hi I have an ESP12 board with a pair of DS18B20 temperature sensors on GPIO2 - the MQTT input node returns an object including names DS18B20-1 and DS18B20-2 which I cannot seem to extract to get values out. I noted on …

---

## [Trigger Automation in Home Assistant Not Working](https://discourse.nodered.org/t/trigger-automation-in-home-assistant-not-working/79568)

<div class="topic-metadata">

**Author:** [@SuperJonotron](https://discourse.nodered.org/u/SuperJonotron)\
**Replies:** 5\
**Last updated:** [4 July 2023 18:47 UTC](https://discourse.nodered.org/t/trigger-automation-in-home-assistant-not-working/79568 "2023-07-04T18:47:03Z")

</div>

I have a very basic flow to test home assistant integration by trying to trigger an automation. I setup the server and can see it's connected by the sheer fact that all the drop downs are filled up with information from…

---

## [Http\_in URL from environment variable](https://discourse.nodered.org/t/http-in-url-from-environment-variable/79561)

<div class="topic-metadata">

**Author:** [@Barbudor](https://discourse.nodered.org/u/Barbudor)\
**Replies:** 9\
**Last updated:** [4 July 2023 13:08 UTC](https://discourse.nodered.org/t/http-in-url-from-environment-variable/79561 "2023-07-04T13:08:22Z")

</div>

Hello I have a use case where it would be very convenient for me to be able to specify the URL of a http-in node from an environment variable. Actually I want to build a generic "webhook" subflow which would be made fr…

---

## [Database transactions - can I open in one node and close in a node further along a flow?](https://discourse.nodered.org/t/database-transactions-can-i-open-in-one-node-and-close-in-a-node-further-along-a-flow/79432)

<div class="topic-metadata">

**Author:** [@hughsheehy](https://discourse.nodered.org/u/hughsheehy)\
**Replies:** 10\
**Last updated:** [4 July 2023 10:21 UTC](https://discourse.nodered.org/t/database-transactions-can-i-open-in-one-node-and-close-in-a-node-further-along-a-flow/79432 "2023-07-04T10:21:25Z")

</div>

In Node-red, can I open a database transaction in one node (to lock a row, or several rows), perform calculations/checks etc on the data in subsequent function nodes, then update the database and close the transaction in…

---

## [Unable to inject SQL query](https://discourse.nodered.org/t/unable-to-inject-sql-query/79520)

<div class="topic-metadata">

**Author:** [@Kamiz](https://discourse.nodered.org/u/Kamiz)\
**Replies:** 13\
**Last updated:** [3 July 2023 19:45 UTC](https://discourse.nodered.org/t/unable-to-inject-sql-query/79520 "2023-07-03T19:45:26Z")

</div>

Hi, I want to perform an SQL query against a database (MariaDB). As soon as I configure a plugin (node-red-mysql-r2 for example), I cannot deploy my flow if I have an SQL query in my inject node (deploy failed: forbidd…

---

## [Mssql plus connection is closed/timeout](https://discourse.nodered.org/t/mssql-plus-connection-is-closed-timeout/79389)

<div class="topic-metadata">

**Author:** [@SandeepA](https://discourse.nodered.org/u/SandeepA)\
**Replies:** 5\
**Last updated:** [3 July 2023 16:39 UTC](https://discourse.nodered.org/t/mssql-plus-connection-is-closed-timeout/79389 "2023-07-03T16:39:48Z")

</div>

Hi , I have a flow which triggers a bunch of 15-20 messages at the same time. They all go through the same flow. And hit the mssql node. I keep running into connect closed/ connection timeout from MSSSQL Plus node. I…

---

## [Problem using isNaN()](https://discourse.nodered.org/t/problem-using-isnan/79496)

<div class="topic-metadata">

**Author:** [@amineDH](https://discourse.nodered.org/u/amineDH)\
**Replies:** 13\
**Last updated:** [3 July 2023 15:36 UTC](https://discourse.nodered.org/t/problem-using-isnan/79496 "2023-07-03T15:36:00Z")

</div>

function only\_num(s) { for (const character of s) { if (isNaN(character)) { return false; } }; return true; }; var space\_removed = msg.packet.replace(" ", ''); return { "packet…

---

## [Syslog / daemon.log get full](https://discourse.nodered.org/t/syslog-daemon-log-get-full/79547)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 8\
**Last updated:** [3 July 2023 14:18 UTC](https://discourse.nodered.org/t/syslog-daemon-log-get-full/79547 "2023-07-03T14:18:38Z")

</div>

Hi, I´m using node-red-contrib-tibber-api without problems, but something internal seems to be wrong, my micro-sd card has been written full (20GB) with these messages from Node-Red: \[info\] \[tibber-feed\] Message contain…

---

## [Use the separate data from a message](https://discourse.nodered.org/t/use-the-separate-data-from-a-message/79554)

<div class="topic-metadata">

**Author:** [@Dylantje](https://discourse.nodered.org/u/Dylantje)\
**Replies:** 3\
**Last updated:** [3 July 2023 10:17 UTC](https://discourse.nodered.org/t/use-the-separate-data-from-a-message/79554 "2023-07-03T10:17:48Z")

</div>

Dear a Windows noop trying to play with NR. I would like to use the data from a message in my Domoticz system. 3-7-2023 11:14:45node: debug 546 domoticz/out : msg.payload : Object object Battery: 255 LastUpdate: "2023-…

---

## [Persisting values across restarts and deploys](https://discourse.nodered.org/t/persisting-values-across-restarts-and-deploys/79508)

<div class="topic-metadata">

**Author:** [@serendipitist](https://discourse.nodered.org/u/serendipitist)\
**Replies:** 5\
**Last updated:** [3 July 2023 06:38 UTC](https://discourse.nodered.org/t/persisting-values-across-restarts-and-deploys/79508 "2023-07-03T06:38:35Z")

</div>

I need to persist certain values to disk across restarts and deploys. I found node-red-contrib-persist but it appears to have been abandoned and throws some warnings about deprecated calls on startup. Is there a more up-…

---

## [How to modify the icon and name in the upper left corner of the top icon (如何修改顶部图标左上角图标以及名称)](https://discourse.nodered.org/t/how-to-modify-the-icon-and-name-in-the-upper-left-corner-of-the-top-icon/79550)

<div class="topic-metadata">

**Author:** [@dangliufeng](https://discourse.nodered.org/u/dangliufeng)\
**Replies:** 2\
**Last updated:** [3 July 2023 03:41 UTC](https://discourse.nodered.org/t/how-to-modify-the-icon-and-name-in-the-upper-left-corner-of-the-top-icon/79550 "2023-07-03T03:41:05Z")

</div>

---

## [Sending data with tcp out node](https://discourse.nodered.org/t/sending-data-with-tcp-out-node/79534)

<div class="topic-metadata">

**Author:** [@Muschelpuster](https://discourse.nodered.org/u/Muschelpuster)\
**Replies:** 9\
**Last updated:** [2 July 2023 15:57 UTC](https://discourse.nodered.org/t/sending-data-with-tcp-out-node/79534 "2023-07-02T15:57:15Z")

</div>

I try to build a very tiny LDAP-service to learn much about LDAP and the structure of ASN.1 coded IP packages. I receive a bind request over the 'tcp in' node and can read all necessary information (user, password, sessi…

---

## [Combine different messages send sequentially](https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537)

<div class="topic-metadata">

**Author:** [@Osiris](https://discourse.nodered.org/u/Osiris)\
**Replies:** 1\
**Last updated:** [2 July 2023 09:43 UTC](https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537 "2023-07-02T09:43:38Z")

</div>

Hello, I would like to build a flow that receives a telegram message (works) then downloads a file (works), append something to the file, based on the original content and the telegram message and uploads the file again…

---

## [Node-red-contrib-sia-ultimate (Philips Hue)](https://discourse.nodered.org/t/node-red-contrib-sia-ultimate-philips-hue/79533)

<div class="topic-metadata">

**Author:** [@markuutgrunnen](https://discourse.nodered.org/u/markuutgrunnen)\
**Replies:** 0\
**Last updated:** [2 July 2023 07:46 UTC](https://discourse.nodered.org/t/node-red-contrib-sia-ultimate-philips-hue/79533 "2023-07-02T07:46:15Z")

</div>

Hello, Has anyone got Philips Heu working on an Ajax systemsystem? Could someone help?. Greetings Mark

---

## [Unable to install node-red-contrib-usbhid](https://discourse.nodered.org/t/unable-to-install-node-red-contrib-usbhid/79454)

<div class="topic-metadata">

**Author:** [@melbnz](https://discourse.nodered.org/u/melbnz)\
**Replies:** 14\
**Last updated:** [2 July 2023 06:21 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-contrib-usbhid/79454 "2023-07-02T06:21:13Z")

</div>

HI, i'm new to this and having some annoying node install issues using Palette Manager. I've appended to an existing ticket... I have tried this on different /fresh builds and the issues are repeatable (for me!) I ha…

---

## [Non-starting Node-RED on my RPI](https://discourse.nodered.org/t/non-starting-node-red-on-my-rpi/79510)

<div class="topic-metadata">

**Author:** [@cybix](https://discourse.nodered.org/u/cybix)\
**Replies:** 11\
**Last updated:** [1 July 2023 23:15 UTC](https://discourse.nodered.org/t/non-starting-node-red-on-my-rpi/79510 "2023-07-01T23:15:24Z")

</div>

I havent got the "Manage Palette" option, just recently went from 1.x to 3. Read something about that it had to do with old npm so I followed some commands... Now I am stuck with at non starting Node-RED installation o…

---

## [How to compare two message - times and see if they are different?](https://discourse.nodered.org/t/how-to-compare-two-message-times-and-see-if-they-are-different/79516)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 12\
**Last updated:** [1 July 2023 23:09 UTC](https://discourse.nodered.org/t/how-to-compare-two-message-times-and-see-if-they-are-different/79516 "2023-07-01T23:09:34Z")

</div>

I am not really sure what I am doing, but to keep the hamster happy upstairs, I am just asking this. I have a RasPi that is MY NTP server. All my devices use it. It has a RTC also. Not sure how that is important just…

---

## [Problème de lecture modbus-read sur compteur électrique Tomzn DDS238-2 SN/Z](https://discourse.nodered.org/t/probleme-de-lecture-modbus-read-sur-compteur-electrique-tomzn-dds238-2-sn-z/79524)

<div class="topic-metadata">

**Author:** [@Bertrand](https://discourse.nodered.org/u/Bertrand)\
**Replies:** 0\
**Last updated:** [1 July 2023 12:45 UTC](https://discourse.nodered.org/t/probleme-de-lecture-modbus-read-sur-compteur-electrique-tomzn-dds238-2-sn-z/79524 "2023-07-01T12:45:25Z")

</div>

Bonjour, j'installe chez moi un routeur solaire à l'aide d'un Raspberry, compteur et relais statique. Je me suis inspiré de l'installation un copain chez qui j'ai écrit le programme node-red et chez qui ça tourne. Mon …

---

## [More fun with message formatting](https://discourse.nodered.org/t/more-fun-with-message-formatting/79394)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 21\
**Last updated:** [1 July 2023 11:26 UTC](https://discourse.nodered.org/t/more-fun-with-message-formatting/79394 "2023-07-01T11:26:42Z")

</div>

Ok, to keep things separate: I'm stuck now with a message I have made with a python3 script to make a JSON message. The message as given is: {"ssid": "Marys\_Farm\_2.4", "signal\_level": "-72"} {"ssid": "PiNet", "signal\_…

---

## [Getting value out of message](https://discourse.nodered.org/t/getting-value-out-of-message/79523)

<div class="topic-metadata">

**Author:** [@warnert](https://discourse.nodered.org/u/warnert)\
**Replies:** 2\
**Last updated:** [1 July 2023 12:23 UTC](https://discourse.nodered.org/t/getting-value-out-of-message/79523 "2023-07-01T12:23:04Z")

</div>

I try to get the value for nextEvent from eztimer where I used sunsetStart as triggermoment. I get back: 1-7-2023 11:54:44node: debug 7 info : msg.payload : Object object name: "eztimer" state: undefined trigger: objec…

---

## [Imported unrecognized types](https://discourse.nodered.org/t/imported-unrecognized-types/79515)

<div class="topic-metadata">

**Author:** [@threehappypenguins](https://discourse.nodered.org/u/threehappypenguins)\
**Replies:** 4\
**Last updated:** [1 July 2023 08:35 UTC](https://discourse.nodered.org/t/imported-unrecognized-types/79515 "2023-07-01T08:35:23Z")

</div>

I am a total noob to Node-Red (and node in general), so forgive me if the issue is obvious. I own an Obi 202 ATA that has SIP credentials for my home phone. I need to record all calls (legal here in Canada). I found this…

---

## [JSONata $filter](https://discourse.nodered.org/t/jsonata-filter/79494)

<div class="topic-metadata">

**Author:** [@Quesnt](https://discourse.nodered.org/u/Quesnt)\
**Replies:** 1\
**Last updated:** [30 June 2023 06:22 UTC](https://discourse.nodered.org/t/jsonata-filter/79494 "2023-06-30T06:22:22Z")

</div>

I posted here about a merge expression I was attempting to get working and received an answer. However, I notice that the match expression includes all records for Obj1 regardless of whether there is a matching key or no…

---

## [Gpio(d) - gpiomon - possible speed problem](https://discourse.nodered.org/t/gpio-d-gpiomon-possible-speed-problem/79464)

<div class="topic-metadata">

**Author:** [@habakuk25](https://discourse.nodered.org/u/habakuk25)\
**Replies:** 1\
**Last updated:** [30 June 2023 21:35 UTC](https://discourse.nodered.org/t/gpio-d-gpiomon-possible-speed-problem/79464 "2023-06-30T21:35:48Z")

</div>

Hi everybody! I am trying to capture a digital signal (hall-signal) with an maximum Freqency of 160Hz (tik every 6ms) over a gpio of an android C4 . It is a speed signal from a classic tachometer of a car. I am gather…

---

## [Back to sending message sequences from a \`function\` node](https://discourse.nodered.org/t/back-to-sending-message-sequences-from-a-function-node/79484)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 11\
**Last updated:** [30 June 2023 21:19 UTC](https://discourse.nodered.org/t/back-to-sending-message-sequences-from-a-function-node/79484 "2023-06-30T21:19:24Z")

</div>

I have been here before but this is a new twist on the message. This is the code as I have it working. But it sends RGB messages to RGB-LEDs. if (msg.delay\_time == undefined) msg.delay\_time = 400; var delay\_time =…

---

## [Problem with "get started" bash command on "fresh" Raspian on Raspi3, while two Raspi2 work](https://discourse.nodered.org/t/problem-with-get-started-bash-command-on-fresh-raspian-on-raspi3-while-two-raspi2-work/79407)

<div class="topic-metadata">

**Author:** [@Ekki\_b](https://discourse.nodered.org/u/Ekki_b)\
**Replies:** 19\
**Last updated:** [30 June 2023 20:30 UTC](https://discourse.nodered.org/t/problem-with-get-started-bash-command-on-fresh-raspian-on-raspi3-while-two-raspi2-work/79407 "2023-06-30T20:30:32Z")

</div>

After issues with the SD cards on the running Raspis I decided to change the SD-cards and put the newest Raspian on the Raspis. This worked for two Raspi 2, but failed repeatedly for a Raspi 3 Model B Vi.2. The bash co…

---

## [ERROR WebSocket connection to 'ws://localhost:3001/red/comms' failed:](https://discourse.nodered.org/t/error-websocket-connection-to-ws-localhost-3001-red-comms-failed/79507)

<div class="topic-metadata">

**Author:** [@ax2382](https://discourse.nodered.org/u/ax2382)\
**Replies:** 2\
**Last updated:** [30 June 2023 17:55 UTC](https://discourse.nodered.org/t/error-websocket-connection-to-ws-localhost-3001-red-comms-failed/79507 "2023-06-30T17:55:19Z")

</div>

I have just embedded node-red in a Node.js web app with all default settings and I am getting this web browser error: ERROR WebSocket connection to 'ws://localhost:3001/red/comms' failed Clearly, I have not created an …

---

## [Install from my dropbox backup?](https://discourse.nodered.org/t/install-from-my-dropbox-backup/79502)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 0\
**Last updated:** [30 June 2023 09:24 UTC](https://discourse.nodered.org/t/install-from-my-dropbox-backup/79502 "2023-06-30T09:24:13Z")

</div>

I managed to do something I shouldnt have done I think, was trying to update my node red, and now I have a clean window on my start up page. I use the dropbox backup, so I have the backup from this morning: But I am not …

---

## [UI\_Builder and FlowForge-Device-Agent](https://discourse.nodered.org/t/ui-builder-and-flowforge-device-agent/79373)

<div class="topic-metadata">

**Author:** [@allacmc](https://discourse.nodered.org/u/allacmc)\
**Replies:** 11\
**Last updated:** [29 June 2023 23:14 UTC](https://discourse.nodered.org/t/ui-builder-and-flowforge-device-agent/79373 "2023-06-29T23:14:45Z")

</div>

I've been using UI\_Builder and a certain problem is causing me a certain amount of trouble. The plugin works well although I still don't know all the features it is very good. But my application: It is distributed in s…

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

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