# General

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

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

**Page:** 248

---

## [API REQUEST : Cannot GET URL](https://discourse.nodered.org/t/api-request-cannot-get-url/75120)

<div class="topic-metadata">

**Author:** [@Shakey7](https://discourse.nodered.org/u/Shakey7)\
**Replies:** 2\
**Last updated:** [14 February 2023 09:26 UTC](https://discourse.nodered.org/t/api-request-cannot-get-url/75120 "2023-02-14T09:26:54Z")

</div>

Hi All, I wrote an HTTP EndPoint (http://X.X.X.X:1880/api/blabla?BLIBLI=bloblo) that works fine when I request it from the same NR instance with GET HTTP, it works fine also when I call it from another NR app running …

---

## [Boolean logic flow](https://discourse.nodered.org/t/boolean-logic-flow/75163)

<div class="topic-metadata">

**Author:** [@kelvin](https://discourse.nodered.org/u/kelvin)\
**Replies:** 2\
**Last updated:** [14 February 2023 09:06 UTC](https://discourse.nodered.org/t/boolean-logic-flow/75163 "2023-02-14T09:06:06Z")

</div>

Hi everyone, i need to create a simple boolean logic flow, but my flow like no responsive can give me some idea thanks. \[{"id":"9759bf8f80f65b09","type":"tab","label":"Flow 1","disabled":false,"info":"","env":\[\]},{"id"…

---

## [I have problem with my opca client. while i deploy i get session active for some second then later on it always reconnects try but does not get connected. i have the same IP-adress as my computer on my opca client](https://discourse.nodered.org/t/i-have-problem-with-my-opca-client-while-i-deploy-i-get-session-active-for-some-second-then-later-on-it-always-reconnects-try-but-does-not-get-connected-i-have-the-same-ip-adress-as-my-computer-on-my-opca-client/75116)

<div class="topic-metadata">

**Author:** [@kwa45](https://discourse.nodered.org/u/kwa45)\
**Replies:** 1\
**Last updated:** [14 February 2023 08:41 UTC](https://discourse.nodered.org/t/i-have-problem-with-my-opca-client-while-i-deploy-i-get-session-active-for-some-second-then-later-on-it-always-reconnects-try-but-does-not-get-connected-i-have-the-same-ip-adress-as-my-computer-on-my-opca-client/75116 "2023-02-14T08:41:32Z")

</div>

---

## [Loop through Json - multiple messages, multiple outputs](https://discourse.nodered.org/t/loop-through-json-multiple-messages-multiple-outputs/75139)

<div class="topic-metadata">

**Author:** [@Vilnis\_R](https://discourse.nodered.org/u/Vilnis_R)\
**Replies:** 5\
**Last updated:** [14 February 2023 07:58 UTC](https://discourse.nodered.org/t/loop-through-json-multiple-messages-multiple-outputs/75139 "2023-02-14T07:58:16Z")

</div>

Hi! I wonder if there is a loop style way to distribute values from json to multiple function node outputs, instead of fixed solution. I have a json that can carry maximum 10 objects (0-9) however it can be shorter (lik…

---

## [How to increase connection pool in node-red-node-sqlite node?](https://discourse.nodered.org/t/how-to-increase-connection-pool-in-node-red-node-sqlite-node/75112)

<div class="topic-metadata">

**Author:** [@Josh](https://discourse.nodered.org/u/Josh)\
**Replies:** 8\
**Last updated:** [14 February 2023 07:09 UTC](https://discourse.nodered.org/t/how-to-increase-connection-pool-in-node-red-node-sqlite-node/75112 "2023-02-14T07:09:06Z")

</div>

Hi Forum and fellow devs and contributors, Just wanted to know if I can increase the connection pool? I dont have any option to do it in the node configuration. Please Help !!!

---

## [Buffer-parser help](https://discourse.nodered.org/t/buffer-parser-help/75138)

<div class="topic-metadata">

**Author:** [@Sagatho10](https://discourse.nodered.org/u/Sagatho10)\
**Replies:** 2\
**Last updated:** [14 February 2023 06:43 UTC](https://discourse.nodered.org/t/buffer-parser-help/75138 "2023-02-14T06:43:01Z")

</div>

Hello im trying to use the node Buffer-parser and work great, but i need to reduce the number of decimal in the output, for example i got a 2.123456789 from a modbus float, but i only whant show 2.12 or 2.1234 in the nod…

---

## [Hear me out.....Digital Texas Hold Em Poker Table](https://discourse.nodered.org/t/hear-me-out-digital-texas-hold-em-poker-table/75056)

<div class="topic-metadata">

**Author:** [@fulldad](https://discourse.nodered.org/u/fulldad)\
**Replies:** 8\
**Last updated:** [14 February 2023 04:53 UTC](https://discourse.nodered.org/t/hear-me-out-digital-texas-hold-em-poker-table/75056 "2023-02-14T04:53:58Z")

</div>

I am in the early stages of thinking of how to build one of these. I am sick of my friends messing up the deals. I did some research on 7inch touch screen monitors. Is it feasible using Node-red to send say a GUI that…

---

## [Get a detailed Notification about the Energy Consumption when a household appliance is done](https://discourse.nodered.org/t/get-a-detailed-notification-about-the-energy-consumption-when-a-household-appliance-is-done/73871)

<div class="topic-metadata">

**Author:** [@Kugelblitz78](https://discourse.nodered.org/u/Kugelblitz78)\
**Replies:** 11\
**Last updated:** [14 February 2023 03:52 UTC](https://discourse.nodered.org/t/get-a-detailed-notification-about-the-energy-consumption-when-a-household-appliance-is-done/73871 "2023-02-14T03:52:54Z")

</div>

Okay guys, I have an idea but I don't know exactly how to implement it. Like to use Node Red and Home Assistant. I want to increase the awareness of energy consumption and costs in our household. And get an indicatio…

---

## [Video flickering when showing two mp4frag streams](https://discourse.nodered.org/t/video-flickering-when-showing-two-mp4frag-streams/75101)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 5\
**Last updated:** [13 February 2023 23:08 UTC](https://discourse.nodered.org/t/video-flickering-when-showing-two-mp4frag-streams/75101 "2023-02-13T23:08:37Z")

</div>

Hi folks, Started experimenting with the mp4frag nodes from our video guru @kevinGodell. Did some succesfull tests: Starting a single rtsp stream from camera 1 works fine, and low cpu usage on my Raspberry. Life view…

---

## [Inverter control ahoyDTU](https://discourse.nodered.org/t/inverter-control-ahoydtu/75122)

<div class="topic-metadata">

**Author:** [@dima2241](https://discourse.nodered.org/u/dima2241)\
**Replies:** 1\
**Last updated:** [13 February 2023 19:58 UTC](https://discourse.nodered.org/t/inverter-control-ahoydtu/75122 "2023-02-13T19:58:43Z")

</div>

Hello everyone, I have been trying to create a control system with node red for a few days, which is also my first experience with it. I would like to use ahoyDTU (communicates with an inverter via mqtt) to create a con…

---

## [Function Node coding?](https://discourse.nodered.org/t/function-node-coding/75126)

<div class="topic-metadata">

**Author:** [@damica51](https://discourse.nodered.org/u/damica51)\
**Replies:** 6\
**Last updated:** [13 February 2023 19:13 UTC](https://discourse.nodered.org/t/function-node-coding/75126 "2023-02-13T19:13:58Z")

</div>

I'm sorry but I can't figure out how to code my function node. This is what I need to run. slope = 184.0 - 0.0 / 3730.0 - 746.0 offset = 0.0 - (slope \* 746.0) (msg.payload \* slope) + offset

---

## [Slow response time](https://discourse.nodered.org/t/slow-response-time/75100)

<div class="topic-metadata">

**Author:** [@dennyhle](https://discourse.nodered.org/u/dennyhle)\
**Replies:** 2\
**Last updated:** [13 February 2023 19:08 UTC](https://discourse.nodered.org/t/slow-response-time/75100 "2023-02-13T19:08:24Z")

</div>

Hi. I'm just curious to know what is going on here. Basically I've noticed that response times for several of my flows slow down the more times I 'deploy' my Node-Red. It happens when I am having a long session of tes…

---

## [Unexpected token P in JSON at position 2](https://discourse.nodered.org/t/unexpected-token-p-in-json-at-position-2/75098)

<div class="topic-metadata">

**Author:** [@joel14](https://discourse.nodered.org/u/joel14)\
**Replies:** 6\
**Last updated:** [13 February 2023 18:32 UTC](https://discourse.nodered.org/t/unexpected-token-p-in-json-at-position-2/75098 "2023-02-13T18:32:42Z")

</div>

Hi all, I have a mistake error in a json node. data's input is from a lora transmission using a serial communication at 9600bauds input node the schematic is node "serial" using tty/USB1 --------\> node "Json "…

---

## [MySQL via SSH tunnel](https://discourse.nodered.org/t/mysql-via-ssh-tunnel/75110)

<div class="topic-metadata">

**Author:** [@grant.cpt](https://discourse.nodered.org/u/grant.cpt)\
**Replies:** 9\
**Last updated:** [13 February 2023 18:05 UTC](https://discourse.nodered.org/t/mysql-via-ssh-tunnel/75110 "2023-02-13T18:05:30Z")

</div>

Hi all, Currently trying to establish a connection to MySQL but via SSH tunnel. Anyone been able to get this right?

---

## [ChatGPT does Node-RED](https://discourse.nodered.org/t/chatgpt-does-node-red/71810)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 31\
**Last updated:** [13 February 2023 08:55 UTC](https://discourse.nodered.org/t/chatgpt-does-node-red/71810 "2023-02-13T08:55:47Z")

</div>

---

## [How to calculate the length of msg.payload?](https://discourse.nodered.org/t/how-to-calculate-the-length-of-msg-payload/72219)

<div class="topic-metadata">

**Author:** [@json\_lame](https://discourse.nodered.org/u/json_lame)\
**Replies:** 5\
**Last updated:** [13 February 2023 16:48 UTC](https://discourse.nodered.org/t/how-to-calculate-the-length-of-msg-payload/72219 "2023-02-13T16:48:15Z")

</div>

Hi all I'm struggling with calculate length msg.payload. Is there any way to do it? In addition I want to put 0 in front of msg.payload in case of length of msg.payload is lower than 5 characters. Msg.payload is string. …

---

## [Comparing payloads with different topics](https://discourse.nodered.org/t/comparing-payloads-with-different-topics/75115)

<div class="topic-metadata">

**Author:** [@kyledoab](https://discourse.nodered.org/u/kyledoab)\
**Replies:** 9\
**Last updated:** [13 February 2023 16:44 UTC](https://discourse.nodered.org/t/comparing-payloads-with-different-topics/75115 "2023-02-13T16:44:59Z")

</div>

Hi there, I am using a buffer parser to parse data received over modbus. I have assigned topics to each bit of data inside the buffer parser but I am struggling to figure out how to compare payloads between topics. For e…

---

## [Exporting and Importing "All flows"](https://discourse.nodered.org/t/exporting-and-importing-all-flows/75111)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 6\
**Last updated:** [13 February 2023 14:39 UTC](https://discourse.nodered.org/t/exporting-and-importing-all-flows/75111 "2023-02-13T14:39:51Z")

</div>

The editor Export lets me export "all flows" and the clipboard does contain the exported JSON, I can copy it into a text editor. But when I try and import the flows into a different Node-red instance, the ctrl v or righ…

---

## [Getting error while converting html to pdf](https://discourse.nodered.org/t/getting-error-while-converting-html-to-pdf/74642)

<div class="topic-metadata">

**Author:** [@MiliH](https://discourse.nodered.org/u/MiliH)\
**Replies:** 19\
**Last updated:** [13 February 2023 12:30 UTC](https://discourse.nodered.org/t/getting-error-while-converting-html-to-pdf/74642 "2023-02-13T12:30:29Z")

</div>

Hello, I am converting JSON data into HTML table and HTML table into PDF. I am saving PDF file on my local machine using write file node. To convert to HTML into PDF, I am using html to pdf node.(Library name: node-re…

---

## [Log data to Google sheet offline](https://discourse.nodered.org/t/log-data-to-google-sheet-offline/75048)

<div class="topic-metadata">

**Author:** [@1onkar](https://discourse.nodered.org/u/1onkar)\
**Replies:** 5\
**Last updated:** [13 February 2023 12:13 UTC](https://discourse.nodered.org/t/log-data-to-google-sheet-offline/75048 "2023-02-13T12:13:00Z")

</div>

Is it possible to write data to Google gsheet in offline mode. Thanks

---

## [Migration from twitter to Mastodon](https://discourse.nodered.org/t/migration-from-twitter-to-mastodon/74959)

<div class="topic-metadata">

**Author:** [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Replies:** 8\
**Last updated:** [13 February 2023 09:45 UTC](https://discourse.nodered.org/t/migration-from-twitter-to-mastodon/74959 "2023-02-13T09:45:34Z")

</div>

Hi, sorry for opening a new topic but the other discussions are closed. I installed (after other discussion mastodon nodes Node-red-contrib-mastodon) Node-red-contrib-mastodon to receive and send a toot . I'm having trou…

---

## [Getting an array from flow context](https://discourse.nodered.org/t/getting-an-array-from-flow-context/74942)

<div class="topic-metadata">

**Author:** [@steven\_191](https://discourse.nodered.org/u/steven_191)\
**Replies:** 3\
**Last updated:** [13 February 2023 09:01 UTC](https://discourse.nodered.org/t/getting-an-array-from-flow-context/74942 "2023-02-13T09:01:23Z")

</div>

Im sure Im missing something simple here. Im pushing some items onto an array then saving to the flow context. I do this in a few different function blocks. Another function block will get all of these arrays from the…

---

## [UIBuilder - Authentication & login page example](https://discourse.nodered.org/t/uibuilder-authentication-login-page-example/74995)

<div class="topic-metadata">

**Author:** [@cdacruz](https://discourse.nodered.org/u/cdacruz)\
**Replies:** 2\
**Last updated:** [13 February 2023 08:10 UTC](https://discourse.nodered.org/t/uibuilder-authentication-login-page-example/74995 "2023-02-13T08:10:33Z")

</div>

Hi UIBuilder users, I'm looking for a basic example of a basic authentication solution. I don't need a big level of security. Just for blocking the basic users. Does anyone can share somthing or help me giving me the g…

---

## [Covert HTML to plain text](https://discourse.nodered.org/t/covert-html-to-plain-text/75079)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 8\
**Last updated:** [13 February 2023 08:09 UTC](https://discourse.nodered.org/t/covert-html-to-plain-text/75079 "2023-02-13T08:09:23Z")

</div>

Is there a easy contrib node that convert small bits of HTML into a plainer format e.g \<p\>My beautiful lil pup Mayhem is one year old today. \</p\>\<p\>For every boost or favorite I’ll pet her and tell her she’s a good gi…

---

## [UIBuilder - How to know if somebody is connected & how many people?](https://discourse.nodered.org/t/uibuilder-how-to-know-if-somebody-is-connected-how-many-people/74994)

<div class="topic-metadata">

**Author:** [@cdacruz](https://discourse.nodered.org/u/cdacruz)\
**Replies:** 6\
**Last updated:** [13 February 2023 08:02 UTC](https://discourse.nodered.org/t/uibuilder-how-to-know-if-somebody-is-connected-how-many-people/74994 "2023-02-13T08:02:26Z")

</div>

Hi all, I'm looking to know how to retrieve if somebody is connected, and how many people ? The idea is to do jobs only when somebody is connected. Does anyone have an idea ? Thanks for your help. .Christian

---

## [Help with Mastodon - Node please](https://discourse.nodered.org/t/help-with-mastodon-node-please/75030)

<div class="topic-metadata">

**Author:** [@My\_Millenium](https://discourse.nodered.org/u/My_Millenium)\
**Replies:** 7\
**Last updated:** [13 February 2023 01:04 UTC](https://discourse.nodered.org/t/help-with-mastodon-node-please/75030 "2023-02-13T01:04:06Z")

</div>

Hey! I have set up an application on my Mastodon-Account so my Node-Red can set Toots. I am using the 'node-red-contrib-mastodon : sendMessage' node to do this. See the screenshot for the setup This is the Flow I…

---

## [Input required for an mp4frag cheat sheet](https://discourse.nodered.org/t/input-required-for-an-mp4frag-cheat-sheet/74768)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 15\
**Last updated:** [12 February 2023 23:46 UTC](https://discourse.nodered.org/t/input-required-for-an-mp4frag-cheat-sheet/74768 "2023-02-12T23:46:02Z")

</div>

Hi folks, I started already a couple of times with the mp4frag related nodes from @kevinGodell to have live video streaming/recording from my camera's. But I also stopped every time with it, because I lack time and nee…

---

## [Node-RED home/away HA helper says away when it should be home](https://discourse.nodered.org/t/node-red-home-away-ha-helper-says-away-when-it-should-be-home/75046)

<div class="topic-metadata">

**Author:** [@Mothy\_Tim](https://discourse.nodered.org/u/Mothy_Tim)\
**Replies:** 6\
**Last updated:** [12 February 2023 21:34 UTC](https://discourse.nodered.org/t/node-red-home-away-ha-helper-says-away-when-it-should-be-home/75046 "2023-02-12T21:34:12Z")

</div>

Hi, I have a strange problem I set up a Home assistant helper for Home/Away that works with Homekit it switches correctly and shows as Home on the dashboard but in Node-RED events: state node it's reversed and shows Away…

---

## [MQTT broker stops sending](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332)

<div class="topic-metadata">

**Author:** [@tnesheim](https://discourse.nodered.org/u/tnesheim)\
**Replies:** 6\
**Last updated:** [12 February 2023 17:53 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332 "2023-02-12T17:53:18Z")

</div>

Hi I´m using the (built in) MQTT-client to subscribe to my appliance state stream from the Electrolux IoT-platform. This works fine for a while, but then the "stream" seems to stop, and stays in that condition. The only…

---

## [Comparing two MQTT Feed Status to send or not send an alert](https://discourse.nodered.org/t/comparing-two-mqtt-feed-status-to-send-or-not-send-an-alert/74988)

<div class="topic-metadata">

**Author:** [@gregoinc](https://discourse.nodered.org/u/gregoinc)\
**Replies:** 8\
**Last updated:** [12 February 2023 15:28 UTC](https://discourse.nodered.org/t/comparing-two-mqtt-feed-status-to-send-or-not-send-an-alert/74988 "2023-02-12T15:28:23Z")

</div>

I have two MQTT feeds coming into NodeRed and I only want to trigger an event when a certain criteria is met. For example, one of the MQTT feeds is the status of a door sensor... 0 for open and 1 for closed. The second…

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

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