# General

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

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

**Page:** 142

---

## [HTTP Response based on action](https://discourse.nodered.org/t/http-response-based-on-action/84559)

<div class="topic-metadata">

**Author:** [@shershah](https://discourse.nodered.org/u/shershah)\
**Replies:** 5\
**Last updated:** [15 January 2024 13:00 UTC](https://discourse.nodered.org/t/http-response-based-on-action/84559 "2024-01-15T13:00:43Z")

</div>

Hi All, I am working on nodered flow where I am receiving data from http post and publishing the data to MQTT. Now if data is successfully published I need to send the success response back otherwise the error response. …

---

## [Hold status for x seconds](https://discourse.nodered.org/t/hold-status-for-x-seconds/84556)

<div class="topic-metadata">

**Author:** [@ic81](https://discourse.nodered.org/u/ic81)\
**Replies:** 5\
**Last updated:** [15 January 2024 11:05 UTC](https://discourse.nodered.org/t/hold-status-for-x-seconds/84556 "2024-01-15T11:05:22Z")

</div>

Hi everyone, I'm begineer....:slight\_smile: I need an info.... I've two node (iot sensors) with boolean output (updated every seconds) that pilot raspberry GPIO. I need that when one of this sensor goes true, the tru…

---

## [How to get data from rest api with pagination](https://discourse.nodered.org/t/how-to-get-data-from-rest-api-with-pagination/84541)

<div class="topic-metadata">

**Author:** [@robsonsilva](https://discourse.nodered.org/u/robsonsilva)\
**Replies:** 1\
**Last updated:** [15 January 2024 08:52 UTC](https://discourse.nodered.org/t/how-to-get-data-from-rest-api-with-pagination/84541 "2024-01-15T08:52:14Z")

</div>

Hello everyone. I need get data from REST API that using pagination control. First I call one endpoint to get a list of cars code, second I call the other endpoint that has all cars features passing cars code and page n…

---

## [Terminating the Database Connection of MySQL node in Node-Red](https://discourse.nodered.org/t/terminating-the-database-connection-of-mysql-node-in-node-red/84548)

<div class="topic-metadata">

**Author:** [@WeiChuen1118](https://discourse.nodered.org/u/WeiChuen1118)\
**Replies:** 0\
**Last updated:** [15 January 2024 07:05 UTC](https://discourse.nodered.org/t/terminating-the-database-connection-of-mysql-node-in-node-red/84548 "2024-01-15T07:05:53Z")

</div>

Good day to all of you! Have any of you tried closing the database connection of the MySQL node in Node-Red? I am working on a project that requires connecting to a shared cloud database using Node-Red. However, I have n…

---

## [Raspberry Pi "failed to open" error for "sqlite"](https://discourse.nodered.org/t/raspberry-pi-failed-to-open-error-for-sqlite/84532)

<div class="topic-metadata">

**Author:** [@Rabbit](https://discourse.nodered.org/u/Rabbit)\
**Replies:** 3\
**Last updated:** [15 January 2024 00:29 UTC](https://discourse.nodered.org/t/raspberry-pi-failed-to-open-error-for-sqlite/84532 "2024-01-15T00:29:32Z")

</div>

I get error "failed to open /tmp/splite/testdb.db" when I deploy my "sqlite" project at Node-Red. The "sqlite" node properties "Database" setting is "/tmp/splite/testdb.db". The database file is "pi@raspberrypi:/tmp/s…

---

## [Node red switch](https://discourse.nodered.org/t/node-red-switch/84535)

<div class="topic-metadata">

**Author:** [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Replies:** 4\
**Last updated:** [14 January 2024 20:43 UTC](https://discourse.nodered.org/t/node-red-switch/84535 "2024-01-14T20:43:05Z")

</div>

Hello, Can someone please help me. I would like to create a switch with true and false. It should be true if the msg.payload = "PUT operation successful." He should be bad if: "msg.error time out" Reason: If the t…

---

## [Modbus Failure On State sending Get More About It By Logging](https://discourse.nodered.org/t/modbus-failure-on-state-sending-get-more-about-it-by-logging/84536)

<div class="topic-metadata">

**Author:** [@Martin12](https://discourse.nodered.org/u/Martin12)\
**Replies:** 2\
**Last updated:** [14 January 2024 18:49 UTC](https://discourse.nodered.org/t/modbus-failure-on-state-sending-get-more-about-it-by-logging/84536 "2024-01-14T18:49:52Z")

</div>

I am using a USB to RS485 converter (Waveshare) on my Raspberry Pi 4 to query two power meter (SDM630) via Modbus RTU using the Modbus-Flex-Getter. Everything works fine and stable without any errors over days as long as…

---

## [Good documentation or manual for Node-Red or OpenJS](https://discourse.nodered.org/t/good-documentation-or-manual-for-node-red-or-openjs/84217)

<div class="topic-metadata">

**Author:** [@Karsten](https://discourse.nodered.org/u/Karsten)\
**Replies:** 4\
**Last updated:** [14 January 2024 17:45 UTC](https://discourse.nodered.org/t/good-documentation-or-manual-for-node-red-or-openjs/84217 "2024-01-14T17:45:25Z")

</div>

Hello Community, I am looking for a good documentation for Node-Red or OpenJS (preferably as free documentation). It would be important for me to have material that teaches the basics in a structured way (which of cour…

---

## [Turn off switch only if triggered by same flow](https://discourse.nodered.org/t/turn-off-switch-only-if-triggered-by-same-flow/84529)

<div class="topic-metadata">

**Author:** [@smitterer](https://discourse.nodered.org/u/smitterer)\
**Replies:** 1\
**Last updated:** [14 January 2024 10:15 UTC](https://discourse.nodered.org/t/turn-off-switch-only-if-triggered-by-same-flow/84529 "2024-01-14T10:15:13Z")

</div>

Hi everyone, I have the following flow which turns on and off pumps of a hot tub to protect it from freezing. The circulation pump should only be turned off if it wasn't turned on from a different flow which trigger…

---

## [RBPi GPIO issues](https://discourse.nodered.org/t/rbpi-gpio-issues/84519)

<div class="topic-metadata">

**Author:** [@Simone](https://discourse.nodered.org/u/Simone)\
**Replies:** 5\
**Last updated:** [13 January 2024 20:59 UTC](https://discourse.nodered.org/t/rbpi-gpio-issues/84519 "2024-01-13T20:59:07Z")

</div>

Hi friends, with the last NODE RED i've issues with RBPi's GPIOs. I've a setup with Raspberry Pi 2W and two SD cards with the following setups: SD1) Linux 5.10.17-v7+ armv7, Node Red 2.1.3, NPM v14.18.1, node-red-node…

---

## [Output a very simple JSON object instead of a string?](https://discourse.nodered.org/t/output-a-very-simple-json-object-instead-of-a-string/84414)

<div class="topic-metadata">

**Author:** [@questuk](https://discourse.nodered.org/u/questuk)\
**Replies:** 18\
**Last updated:** [13 January 2024 18:40 UTC](https://discourse.nodered.org/t/output-a-very-simple-json-object-instead-of-a-string/84414 "2024-01-13T18:40:50Z")

</div>

Hi, I have looked at the ArdiunoJSON library, but it is very complicated and I only need something very simple. At the moment I send out a string of data. Example of my code ... MQTT\_client.publish ( Module 99 /info/d…

---

## [Creating a PDF file at Google drive](https://discourse.nodered.org/t/creating-a-pdf-file-at-google-drive/84518)

<div class="topic-metadata">

**Author:** [@Heursqem](https://discourse.nodered.org/u/Heursqem)\
**Replies:** 2\
**Last updated:** [13 January 2024 15:36 UTC](https://discourse.nodered.org/t/creating-a-pdf-file-at-google-drive/84518 "2024-01-13T15:36:21Z")

</div>

Hi I am struggling to create / save a PDF file to my Google Drive. I have been able to install & run node-red-contrib-google-oauth2, this gives me access to my google account with the right permission. I am using file…

---

## [REAL datatype values from s7 node](https://discourse.nodered.org/t/real-datatype-values-from-s7-node/84513)

<div class="topic-metadata">

**Author:** [@jupiter8](https://discourse.nodered.org/u/jupiter8)\
**Replies:** 1\
**Last updated:** [13 January 2024 12:31 UTC](https://discourse.nodered.org/t/real-datatype-values-from-s7-node/84513 "2024-01-13T12:31:00Z")

</div>

Hi all, i'm struggling to make sense of values of type REAL (Floating point 32-bit number) coming from the contrib-s7 node. i have a siemens S7-1200 and the values i'm getting are 10 digit numbers. i tried the buffer par…

---

## [Advice on using hasOwnProperty](https://discourse.nodered.org/t/advice-on-using-hasownproperty/84508)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 19\
**Last updated:** [13 January 2024 09:49 UTC](https://discourse.nodered.org/t/advice-on-using-hasownproperty/84508 "2024-01-13T09:49:44Z")

</div>

Hello I need to check if a payload property exists. The payload looks like this: The path to that payload object is payload.data.dps\["5"\] Sometimes element 5 is not present. How do I check if element 5 exists in thi…

---

## [Node-red-contrib-meross crashing node-red](https://discourse.nodered.org/t/node-red-contrib-meross-crashing-node-red/84514)

<div class="topic-metadata">

**Author:** [@zoppolig](https://discourse.nodered.org/u/zoppolig)\
**Replies:** 1\
**Last updated:** [13 January 2024 04:21 UTC](https://discourse.nodered.org/t/node-red-contrib-meross-crashing-node-red/84514 "2024-01-13T04:21:52Z")

</div>

I installed the meross node to control some MSS310 plugs. I followed all instructions and got the token and IP of the plug (which is connected, pings fine, and is controlled well by the app). Issue is, when try to send m…

---

## ["RequestError: socket hang up"](https://discourse.nodered.org/t/requesterror-socket-hang-up/84509)

<div class="topic-metadata">

**Author:** [@sabir](https://discourse.nodered.org/u/sabir)\
**Replies:** 7\
**Last updated:** [12 January 2024 15:21 UTC](https://discourse.nodered.org/t/requesterror-socket-hang-up/84509 "2024-01-12T15:21:48Z")

</div>

I'm using http-request node to call with api, if my api takes more than a minute to response, I'm getting error: "RequestError: socket hang up" exactly after one minute How can I increase the request time-out to more th…

---

## [Conexion Hikvision](https://discourse.nodered.org/t/conexion-hikvision/84493)

<div class="topic-metadata">

**Author:** [@luz](https://discourse.nodered.org/u/luz)\
**Replies:** 2\
**Last updated:** [12 January 2024 15:17 UTC](https://discourse.nodered.org/t/conexion-hikvision/84493 "2024-01-12T15:17:53Z")

</div>

Hola recientemente estoy configurando detecion de camara de marca Hikvision pero me aparece este error le cambio el usuario, pero me aparece sin conexion Hikvision-config: streamPipeline: The user aborted a request ---…

---

## [BIGSSH - passing server IP to SSH connector?](https://discourse.nodered.org/t/bigssh-passing-server-ip-to-ssh-connector/84489)

<div class="topic-metadata">

**Author:** [@MCPCN](https://discourse.nodered.org/u/MCPCN)\
**Replies:** 5\
**Last updated:** [12 January 2024 14:51 UTC](https://discourse.nodered.org/t/bigssh-passing-server-ip-to-ssh-connector/84489 "2024-01-12T14:51:15Z")

</div>

Hi - I'm looking to use Node-RED to pull the same data from multiple servers via SSH and combine it into a single SQL table, which can be queried by our reporting tools. The servers all authenticate via AD, so the User/P…

---

## [Suggestions on filtering out an object in an array between SPLIT and JOIN](https://discourse.nodered.org/t/suggestions-on-filtering-out-an-object-in-an-array-between-split-and-join/84480)

<div class="topic-metadata">

**Author:** [@W6PNG](https://discourse.nodered.org/u/W6PNG)\
**Replies:** 8\
**Last updated:** [12 January 2024 12:11 UTC](https://discourse.nodered.org/t/suggestions-on-filtering-out-an-object-in-an-array-between-split-and-join/84480 "2024-01-12T12:11:13Z")

</div>

I'm looking for a suggestion on the easiest way to try and filter out objects I receive from a web site. Background is mountain top amateur radio and getting info from a web site of who is currently atop a mountain (or …

---

## [MySQL node has queue?](https://discourse.nodered.org/t/mysql-node-has-queue/84487)

<div class="topic-metadata">

**Author:** [@jttjtt](https://discourse.nodered.org/u/jttjtt)\
**Replies:** 7\
**Last updated:** [12 January 2024 09:46 UTC](https://discourse.nodered.org/t/mysql-node-has-queue/84487 "2024-01-12T09:46:52Z")

</div>

Hello I am using node-red-node-mysql 2.0.0 node to insert data to MySQL database. I am trying to insert one row every 5 second. The problem is, that i have found out, that i have some inserted data which have only 1 sec…

---

## [Modbus data not update on 2nd unit id or any other unit id](https://discourse.nodered.org/t/modbus-data-not-update-on-2nd-unit-id-or-any-other-unit-id/84501)

<div class="topic-metadata">

**Author:** [@PRABHAKAR82](https://discourse.nodered.org/u/PRABHAKAR82)\
**Replies:** 0\
**Last updated:** [12 January 2024 05:00 UTC](https://discourse.nodered.org/t/modbus-data-not-update-on-2nd-unit-id-or-any-other-unit-id/84501 "2024-01-12T05:00:49Z")

</div>

flows (4).json (7.7 KB) I write data into unit id 1 in Modbus server its working properly but when I write data on 2nd unit id then its not working. Same data is showing on unit id 2 or any other unit id whatever data i…

---

## [Random nodered crashes with node-red-contrib-tuya-local](https://discourse.nodered.org/t/random-nodered-crashes-with-node-red-contrib-tuya-local/84490)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 2\
**Last updated:** [12 January 2024 04:10 UTC](https://discourse.nodered.org/t/random-nodered-crashes-with-node-red-contrib-tuya-local/84490 "2024-01-12T04:10:12Z")

</div>

Hello Just wondering if anyone else has experienced this. I am using node-red-contrib-tuya-local which makes use of the Tuya API to locally control Tuya switches. Every now and again (randomly) a switch will show "disc…

---

## [Non-Linear characteristic calibration](https://discourse.nodered.org/t/non-linear-characteristic-calibration/84474)

<div class="topic-metadata">

**Author:** [@Berx](https://discourse.nodered.org/u/Berx)\
**Replies:** 2\
**Last updated:** [11 January 2024 22:38 UTC](https://discourse.nodered.org/t/non-linear-characteristic-calibration/84474 "2024-01-11T22:38:04Z")

</div>

which is the best method to straighten non linear characteristics of analog sensors. For example some temperature sensors are not linear, so therefore they need to be calibrated. Supposing you had true physical temperatu…

---

## [Convert decimal to hex then store in binary buffer](https://discourse.nodered.org/t/convert-decimal-to-hex-then-store-in-binary-buffer/84435)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 5\
**Last updated:** [11 January 2024 20:27 UTC](https://discourse.nodered.org/t/convert-decimal-to-hex-then-store-in-binary-buffer/84435 "2024-01-11T20:27:03Z")

</div>

Hello I have a slider node that I slide from 0 to 40. The output is obviously a decimal number. I need to convert this to hex, so I used var hexstring1 = "0x" + msg.payload.toString(16); However, when I try to load th…

---

## [Opcua invalid end point check that server has sercurity polic](https://discourse.nodered.org/t/opcua-invalid-end-point-check-that-server-has-sercurity-polic/84488)

<div class="topic-metadata">

**Author:** [@PRABHAKAR82](https://discourse.nodered.org/u/PRABHAKAR82)\
**Replies:** 1\
**Last updated:** [11 January 2024 20:07 UTC](https://discourse.nodered.org/t/opcua-invalid-end-point-check-that-server-has-sercurity-polic/84488 "2024-01-11T20:07:08Z")

</div>

I am trying to set up an opcua client. i entered end point address correct but get an error "invalid end point check that server has security policy". What is the solution to this problem?

---

## [Modbus tcp readout](https://discourse.nodered.org/t/modbus-tcp-readout/84311)

<div class="topic-metadata">

**Author:** [@Egge](https://discourse.nodered.org/u/Egge)\
**Replies:** 11\
**Last updated:** [11 January 2024 16:36 UTC](https://discourse.nodered.org/t/modbus-tcp-readout/84311 "2024-01-11T16:36:59Z")

</div>

Hi - very basic newbie question goal is to read-out an energy meter via modbus tcp with node-red and dispaly results in a dahsboard energy meter has proper IP-adress and works well with another modbus read-out tool. I…

---

## [Data not write in modbus](https://discourse.nodered.org/t/data-not-write-in-modbus/84482)

<div class="topic-metadata">

**Author:** [@PRABHAKAR82](https://discourse.nodered.org/u/PRABHAKAR82)\
**Replies:** 5\
**Last updated:** [11 January 2024 16:25 UTC](https://discourse.nodered.org/t/data-not-write-in-modbus/84482 "2024-01-11T16:25:34Z")

</div>

flows (3).json (7.7 KB) Please see my attached flow and guide where I did mistake. When I write data into Modbus server through inject node then it write on Modbus server, But when I try to write data of MQTT then its…

---

## [Filtering a number value in a string](https://discourse.nodered.org/t/filtering-a-number-value-in-a-string/84473)

<div class="topic-metadata">

**Author:** [@sneakynuts](https://discourse.nodered.org/u/sneakynuts)\
**Replies:** 4\
**Last updated:** [11 January 2024 12:50 UTC](https://discourse.nodered.org/t/filtering-a-number-value-in-a-string/84473 "2024-01-11T12:50:45Z")

</div>

Using the alexa.remote2 palette, when asking alexa, for example, "Whats the current temperature?" This is the response i get in the debug How do i use a switch node to use like "is between" two values when the answer…

---

## [Function node programming for LED signaling](https://discourse.nodered.org/t/function-node-programming-for-led-signaling/84455)

<div class="topic-metadata">

**Author:** [@Berx](https://discourse.nodered.org/u/Berx)\
**Replies:** 6\
**Last updated:** [11 January 2024 12:03 UTC](https://discourse.nodered.org/t/function-node-programming-for-led-signaling/84455 "2024-01-11T12:03:21Z")

</div>

I would appreciate suggestions on how to best program the function node to get a signalling lamp to respond accordingly to the analog input levels. In advance, thanks for your response.

---

## [TypeError: BigQuery is not a constructor](https://discourse.nodered.org/t/typeerror-bigquery-is-not-a-constructor/84464)

<div class="topic-metadata">

**Author:** [@NikhilPal2468](https://discourse.nodered.org/u/NikhilPal2468)\
**Replies:** 1\
**Last updated:** [11 January 2024 08:21 UTC](https://discourse.nodered.org/t/typeerror-bigquery-is-not-a-constructor/84464 "2024-01-11T08:21:18Z")

</div>

Hello everyone, I am trying to use google-cloud-bigquery from node-red-contrib-google-cloud. After setting up the Bigquery node I get the following error message: " TypeError: BigQuery is not a constructor" Node…

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

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