# General

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

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

**Page:** 397

---

## [Convert array to a specified string for a telnet connection](https://discourse.nodered.org/t/convert-array-to-a-specified-string-for-a-telnet-connection/60701)

<div class="topic-metadata">

**Author:** [@tim26](https://discourse.nodered.org/u/tim26)\
**Replies:** 3\
**Last updated:** [3 April 2022 10:21 UTC](https://discourse.nodered.org/t/convert-array-to-a-specified-string-for-a-telnet-connection/60701 "2022-04-03T10:21:59Z")

</div>

Hey, i please need help with a function node. From a sql query i get an array with a variable number of objects. Example: Now i need to send this data via a telnet connection to my device as follows: 101000002132…

---

## [Problem with cookie extraction](https://discourse.nodered.org/t/problem-with-cookie-extraction/60685)

<div class="topic-metadata">

**Author:** [@df5zx](https://discourse.nodered.org/u/df5zx)\
**Replies:** 12\
**Last updated:** [2 April 2022 19:14 UTC](https://discourse.nodered.org/t/problem-with-cookie-extraction/60685 "2022-04-02T19:14:03Z")

</div>

Hello, I am not a permanent user of NODE-RED, I am more using CURL and JQ ... NOW, I have a small project where the LOGIN of a webserver is returning 3 cookies named JSESSION ID CatchMe SID-TOKEN . In the flows, u…

---

## [Create HL7 Message with segments](https://discourse.nodered.org/t/create-hl7-message-with-segments/59869)

<div class="topic-metadata">

**Author:** [@sinmeera](https://discourse.nodered.org/u/sinmeera)\
**Replies:** 5\
**Last updated:** [2 April 2022 19:01 UTC](https://discourse.nodered.org/t/create-hl7-message-with-segments/59869 "2022-04-02T19:01:03Z")

</div>

Hi All, I am trying to create a HL7 messages from the JSON input.I need to create HL7 message sgements with the nodes MSH,EVN,PID,PV1 with the fields values. i need to write the javascript using node red. Could you pl…

---

## [Node-red mongodb update record](https://discourse.nodered.org/t/node-red-mongodb-update-record/6783)

<div class="topic-metadata">

**Author:** [@turkdoktoru](https://discourse.nodered.org/u/turkdoktoru)\
**Replies:** 14\
**Last updated:** [2 April 2022 17:20 UTC](https://discourse.nodered.org/t/node-red-mongodb-update-record/6783 "2022-04-02T17:20:24Z")

</div>

Hi friends, I connect to the node-red server with mqtt and send a json object as follows. {"nodebolge": "tttttt", "nodename": "device5", "nodeabone": "144", "index": "655477"} If you have the same record with the "nod…

---

## [Can node-Red program Oculus VR](https://discourse.nodered.org/t/can-node-red-program-oculus-vr/60688)

<div class="topic-metadata">

**Author:** [@anguslou](https://discourse.nodered.org/u/anguslou)\
**Replies:** 1\
**Last updated:** [2 April 2022 16:48 UTC](https://discourse.nodered.org/t/can-node-red-program-oculus-vr/60688 "2022-04-02T16:48:11Z")

</div>

I have no idea about VR or how it works, but want to know if I can start something in VR with Node-Red.

---

## [Make Timecode for forward and backward 10 seconds](https://discourse.nodered.org/t/make-timecode-for-forward-and-backward-10-seconds/60693)

<div class="topic-metadata">

**Author:** [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Replies:** 0\
**Last updated:** [2 April 2022 16:36 UTC](https://discourse.nodered.org/t/make-timecode-for-forward-and-backward-10-seconds/60693 "2022-04-02T16:36:24Z")

</div>

after 2 Weeks hard work :wink: for an beginner i have some questions i have an player wich can´t get out timecode, so i get an toggle on beginning of the clip. this toggle should start the timer. this works. now i have …

---

## [Missing notification output](https://discourse.nodered.org/t/missing-notification-output/60649)

<div class="topic-metadata">

**Author:** [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Replies:** 9\
**Last updated:** [2 April 2022 12:06 UTC](https://discourse.nodered.org/t/missing-notification-output/60649 "2022-04-02T12:06:36Z")

</div>

Continuing the discussion from Pass data throught a button to SQL Table: I Steve, could you help me on this flow? I'm using this flow, but I have a problem. When I enter in the tab (by http://127.0.0.1:1880/ui) for the…

---

## [Wrong Timezone data in sql query result?!?](https://discourse.nodered.org/t/wrong-timezone-data-in-sql-query-result/60658)

<div class="topic-metadata">

**Author:** [@markush](https://discourse.nodered.org/u/markush)\
**Replies:** 13\
**Last updated:** [2 April 2022 09:39 UTC](https://discourse.nodered.org/t/wrong-timezone-data-in-sql-query-result/60658 "2022-04-02T09:39:35Z")

</div>

Hello, i try to show some data of my postgresql database in node-red via the table node. The query in pg-admin show the following result sets: The same query results the following data in node-red: The "tag" (day …

---

## [Toggle GPIO Input](https://discourse.nodered.org/t/toggle-gpio-input/60643)

<div class="topic-metadata">

**Author:** [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Replies:** 6\
**Last updated:** [2 April 2022 06:32 UTC](https://discourse.nodered.org/t/toggle-gpio-input/60643 "2022-04-02T06:32:58Z")

</div>

Hi i am looking for an funktion that does the following: on my Raspberry when i push an button (GPIO in 7), than i want to send out udp1, if i push the same button a second time i want to send out udp2, and than if i p…

---

## [How/When do you tidy up your code/Fix up edge use workarounds?](https://discourse.nodered.org/t/how-when-do-you-tidy-up-your-code-fix-up-edge-use-workarounds/60625)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 5\
**Last updated:** [2 April 2022 03:43 UTC](https://discourse.nodered.org/t/how-when-do-you-tidy-up-your-code-fix-up-edge-use-workarounds/60625 "2022-04-02T03:43:19Z")

</div>

Guys, Just wondering what the general approach here is (as there are a great range of levels of programming ability on here) to going back and redoing code once it gets too messy/difficult to maintain ? In my instance …

---

## [Request object deleted](https://discourse.nodered.org/t/request-object-deleted/60515)

<div class="topic-metadata">

**Author:** [@nodeautomata](https://discourse.nodered.org/u/nodeautomata)\
**Replies:** 5\
**Last updated:** [2 April 2022 02:19 UTC](https://discourse.nodered.org/t/request-object-deleted/60515 "2022-04-02T02:19:46Z")

</div>

I'm using File Lister node. It wipes out msg.payload. I can see that, ok, whatever. But it also whacks msg.req and msg.res. I'm using a http in node and having msg.res/req get wiped causes much trouble. I tried…

---

## [HTML CSS Website get input in Node RED](https://discourse.nodered.org/t/html-css-website-get-input-in-node-red/60604)

<div class="topic-metadata">

**Author:** [@Zyan](https://discourse.nodered.org/u/Zyan)\
**Replies:** 2\
**Last updated:** [2 April 2022 01:33 UTC](https://discourse.nodered.org/t/html-css-website-get-input-in-node-red/60604 "2022-04-02T01:33:24Z")

</div>

Hello, i found that example for a Node Red Website: https://flows.nodered.org/flow/1bffe6808d37bd96cce283939983e758 I changed it to an Dashboard Navigation Bar, that worked great. Now i am looking for a Way that when…

---

## [Back and forward in an array](https://discourse.nodered.org/t/back-and-forward-in-an-array/60659)

<div class="topic-metadata">

**Author:** [@SmartHomeNewbie](https://discourse.nodered.org/u/SmartHomeNewbie)\
**Replies:** 4\
**Last updated:** [1 April 2022 21:35 UTC](https://discourse.nodered.org/t/back-and-forward-in-an-array/60659 "2022-04-01T21:35:53Z")

</div>

Hello, I am trying to make a flow to go back and forward in an array of colors, and for the most part it works But when I go from pressing "forward" to "backward", the first time I press backward it goes forward in the…

---

## [Changing Link Out Destination at Run Time](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656)

<div class="topic-metadata">

**Author:** [@cabh](https://discourse.nodered.org/u/cabh)\
**Replies:** 2\
**Last updated:** [1 April 2022 21:01 UTC](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656 "2022-04-01T21:01:17Z")

</div>

I am wondering if there is a way to change the out link (or property Links) at runtime. I attempted to set the 'Link' property to a specific Node ID in the Flow I want to trigger (as a test). Does this have to be a Jason…

---

## [Automatic charge current creation](https://discourse.nodered.org/t/automatic-charge-current-creation/60662)

<div class="topic-metadata">

**Author:** [@slapperia](https://discourse.nodered.org/u/slapperia)\
**Replies:** 0\
**Last updated:** [1 April 2022 20:26 UTC](https://discourse.nodered.org/t/automatic-charge-current-creation/60662 "2022-04-01T20:26:47Z")

</div>

Hello guys, I am new to Node RED and have made some simle function and dashboard to use on my boat. I am now trying to make the code in the picture. It is not working and I made it just for illustration only. What …

---

## [Benchmarking node-red execution](https://discourse.nodered.org/t/benchmarking-node-red-execution/60660)

<div class="topic-metadata">

**Author:** [@cloud-rocket](https://discourse.nodered.org/u/cloud-rocket)\
**Replies:** 3\
**Last updated:** [1 April 2022 20:22 UTC](https://discourse.nodered.org/t/benchmarking-node-red-execution/60660 "2022-04-01T20:22:13Z")

</div>

Is there any way to benchmark node-red execution to try to find out functions where the main thread spends most of the time? As a single-threaded application dealing with I/O - I'd like to find out potential bottlenecks…

---

## [Function for yesterday?](https://discourse.nodered.org/t/function-for-yesterday/60654)

<div class="topic-metadata">

**Author:** [@jasazick](https://discourse.nodered.org/u/jasazick)\
**Replies:** 1\
**Last updated:** [1 April 2022 19:58 UTC](https://discourse.nodered.org/t/function-for-yesterday/60654 "2022-04-01T19:58:28Z")

</div>

I have an global variable that stores as the following date/timestamp example: April 1, 2022 12:57 PM I'm pretty sure this maps to LLL in the Date/Time Formatter Node What I'd like to do is be able to have a function …

---

## [Node-red-contrib-postgresql 0.9.0 with global variables](https://discourse.nodered.org/t/node-red-contrib-postgresql-0-9-0-with-global-variables/60648)

<div class="topic-metadata">

**Author:** [@luis.brito](https://discourse.nodered.org/u/luis.brito)\
**Replies:** 9\
**Last updated:** [1 April 2022 19:19 UTC](https://discourse.nodered.org/t/node-red-contrib-postgresql-0-9-0-with-global-variables/60648 "2022-04-01T19:19:53Z")

</div>

Hi, I'm using "node-red-contrib-postgresql 0.9.0" to change data with a PostgresSQL database. To use variables in my query it's necessary to use {{{msg.payload.VARIABLE}}}, and it's working fine. But when i tried to us…

---

## [Hash, Salt and beyond](https://discourse.nodered.org/t/hash-salt-and-beyond/60591)

<div class="topic-metadata">

**Author:** [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Replies:** 5\
**Last updated:** [1 April 2022 18:23 UTC](https://discourse.nodered.org/t/hash-salt-and-beyond/60591 "2022-04-01T18:23:16Z")

</div>

Hi all! I need to generate a Hash with these procedure: The algorithm will be AES (that's not a problem). Method AES/CBC/PKCS5PADDING HASH in SHA-512 The first three points will be covered with a node. But here come…

---

## [Should I automate homebridge nodes or homekit nodes](https://discourse.nodered.org/t/should-i-automate-homebridge-nodes-or-homekit-nodes/60270)

<div class="topic-metadata">

**Author:** [@Maddie](https://discourse.nodered.org/u/Maddie)\
**Replies:** 4\
**Last updated:** [1 April 2022 16:39 UTC](https://discourse.nodered.org/t/should-i-automate-homebridge-nodes-or-homekit-nodes/60270 "2022-04-01T16:39:18Z")

</div>

Hi! New to Node Red, but ive used HomeAssistant, Smarthings and Hubitat in the past. Node red looks pretty awesome, and im ready to dive in and create flows, but before i go in too deep, should i automate homebride no…

---

## [Trigger Node - Original versus Latest then Send option](https://discourse.nodered.org/t/trigger-node-original-versus-latest-then-send-option/60606)

<div class="topic-metadata">

**Author:** [@gil27255](https://discourse.nodered.org/u/gil27255)\
**Replies:** 10\
**Last updated:** [1 April 2022 15:55 UTC](https://discourse.nodered.org/t/trigger-node-original-versus-latest-then-send-option/60606 "2022-04-01T15:55:35Z")

</div>

Node-RED version 2.2, Node version 16.14.0: I was working on a semi-complex flow containing a Trigger Node. The flow was not producing the desired result. I narrowed it down to the Trigger node by creating a simple te…

---

## [Is it possible to pass query SQL result to a notification node?](https://discourse.nodered.org/t/is-it-possible-to-pass-query-sql-result-to-a-notification-node/59990)

<div class="topic-metadata">

**Author:** [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Replies:** 8\
**Last updated:** [1 April 2022 12:55 UTC](https://discourse.nodered.org/t/is-it-possible-to-pass-query-sql-result-to-a-notification-node/59990 "2022-04-01T12:55:39Z")

</div>

Hello, I would like to send the result of a query to a database sql table to a notification node (like a pop-up in which is reported the list output of the query, which an array). By a botton I want to send the query t…

---

## [How to divide JSONATA payload term?](https://discourse.nodered.org/t/how-to-divide-jsonata-payload-term/60644)

<div class="topic-metadata">

**Author:** [@kuhnino](https://discourse.nodered.org/u/kuhnino)\
**Replies:** 3\
**Last updated:** [1 April 2022 11:45 UTC](https://discourse.nodered.org/t/how-to-divide-jsonata-payload-term/60644 "2022-04-01T11:45:24Z")

</div>

I have collected data thru "serial in" and forwarded that to an MQTT message. Tx to all here who hellped me already. Problem now is some of the values, e.g. for the temperature are 10 times higher. So instead of 20 degr…

---

## [MQTT json file to influxdb](https://discourse.nodered.org/t/mqtt-json-file-to-influxdb/60634)

<div class="topic-metadata">

**Author:** [@MaxJ](https://discourse.nodered.org/u/MaxJ)\
**Replies:** 8\
**Last updated:** [1 April 2022 11:20 UTC](https://discourse.nodered.org/t/mqtt-json-file-to-influxdb/60634 "2022-04-01T11:20:53Z")

</div>

Hello! Im trying to send a JSON with data over MQTT which i convert to a javascript object and then send to influxDB which will later go to my grafana. However when i insert my data in influx the values come in as strin…

---

## [Strange error in eztimer, "Call-Service attempted without connection to server" in debug window](https://discourse.nodered.org/t/strange-error-in-eztimer-call-service-attempted-without-connection-to-server-in-debug-window/59874)

<div class="topic-metadata">

**Author:** [@pimmen85](https://discourse.nodered.org/u/pimmen85)\
**Replies:** 2\
**Last updated:** [1 April 2022 10:28 UTC](https://discourse.nodered.org/t/strange-error-in-eztimer-call-service-attempted-without-connection-to-server-in-debug-window/59874 "2022-04-01T10:28:45Z")

</div>

my automation looks like this, it says "Call-Service attempted without connection to server." in the debug window. Home assistant server is correctly configured and i only have one instance.

---

## [Activate flow with QR code from internet](https://discourse.nodered.org/t/activate-flow-with-qr-code-from-internet/60642)

<div class="topic-metadata">

**Author:** [@nodenewbie](https://discourse.nodered.org/u/nodenewbie)\
**Replies:** 0\
**Last updated:** [1 April 2022 10:00 UTC](https://discourse.nodered.org/t/activate-flow-with-qr-code-from-internet/60642 "2022-04-01T10:00:25Z")

</div>

Hello! I have a disco ball connected to smart switches/lights, and I want people on the street to be able to turn it on by visiting a website through a QR code. I tried using ikea buttons but they keep getting stolen! B…

---

## [Get filename of created files from exec](https://discourse.nodered.org/t/get-filename-of-created-files-from-exec/60599)

<div class="topic-metadata">

**Author:** [@smitterer](https://discourse.nodered.org/u/smitterer)\
**Replies:** 7\
**Last updated:** [1 April 2022 09:31 UTC](https://discourse.nodered.org/t/get-filename-of-created-files-from-exec/60599 "2022-04-01T09:31:25Z")

</div>

Hi! I have a java program which is triggered by the exec node. The output of it are several files with different names. (automatically generated with timestamp in the name) How would I get these names, then transfer t…

---

## [Login, sessions, cookies, scraping](https://discourse.nodered.org/t/login-sessions-cookies-scraping/60636)

<div class="topic-metadata">

**Author:** [@ketpa](https://discourse.nodered.org/u/ketpa)\
**Replies:** 0\
**Last updated:** [1 April 2022 08:12 UTC](https://discourse.nodered.org/t/login-sessions-cookies-scraping/60636 "2022-04-01T08:12:55Z")

</div>

I try to scrape page. When I login, and copy header, and send post to website, I have data from website, but only about 15 minutes. After 15 minutes session close and I haven't access to site. I try to login to page. W…

---

## [Reading a USB nfc/rfid reader into node red](https://discourse.nodered.org/t/reading-a-usb-nfc-rfid-reader-into-node-red/60629)

<div class="topic-metadata">

**Author:** [@John\_Barry](https://discourse.nodered.org/u/John_Barry)\
**Replies:** 0\
**Last updated:** [1 April 2022 07:20 UTC](https://discourse.nodered.org/t/reading-a-usb-nfc-rfid-reader-into-node-red/60629 "2022-04-01T07:20:59Z")

</div>

Hi, I am building a product with a thin client pc (running Ubuntu) and node red. Currently i have a generic usb RFID reader The problem is this reader acts like an HID device so my terrible workaround has been to add…

---

## [OPC UA unsubscribe not working properly sometimes](https://discourse.nodered.org/t/opc-ua-unsubscribe-not-working-properly-sometimes/60628)

<div class="topic-metadata">

**Author:** [@dinesh](https://discourse.nodered.org/u/dinesh)\
**Replies:** 0\
**Last updated:** [1 April 2022 07:16 UTC](https://discourse.nodered.org/t/opc-ua-unsubscribe-not-working-properly-sometimes/60628 "2022-04-01T07:16:48Z")

</div>

Hi, I'm using OPC UA in my node red. I am using the action 'INFO' in my OPC UA client. I want to use info because it allows me to subscribe and unsubscribe. However, sometimes when I select unsubscribe, the OPC UA clie…

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

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