# General

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

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

**Page:** 354

---

## [FATAL ERROR: MarkCompactCollector](https://discourse.nodered.org/t/fatal-error-markcompactcollector/62667)

<div class="topic-metadata">

**Author:** [@SamuelSauerSacK](https://discourse.nodered.org/u/SamuelSauerSacK)\
**Replies:** 2\
**Last updated:** [8 July 2022 19:50 UTC](https://discourse.nodered.org/t/fatal-error-markcompactcollector/62667 "2022-07-08T19:50:13Z")

</div>

Hi folks! i just wanted to update the 'node-red-contrib-smartnora' package and ran into the following error: FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of m…

---

## [If and return messages from mqtt](https://discourse.nodered.org/t/if-and-return-messages-from-mqtt/64839)

<div class="topic-metadata">

**Author:** [@Erissin\_Industria4.0](https://discourse.nodered.org/u/Erissin_Industria4.0)\
**Replies:** 5\
**Last updated:** [8 July 2022 17:46 UTC](https://discourse.nodered.org/t/if-and-return-messages-from-mqtt/64839 "2022-07-08T17:46:58Z")

</div>

How to return message from a payload with boolean true value, but only if it is equal to what I set?

---

## [Searching: a node that triggers when tab is clicked or tab reloaded?](https://discourse.nodered.org/t/searching-a-node-that-triggers-when-tab-is-clicked-or-tab-reloaded/64841)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 2\
**Last updated:** [8 July 2022 14:02 UTC](https://discourse.nodered.org/t/searching-a-node-that-triggers-when-tab-is-clicked-or-tab-reloaded/64841 "2022-07-08T14:02:08Z")

</div>

Hiho, I am somehow at a loss... is there a node (or way) to trigger when a tab from the dashboard is refreshed or entered ?

---

## [Empty reply from server - creating an HTTP Endpoint](https://discourse.nodered.org/t/empty-reply-from-server-creating-an-http-endpoint/64817)

<div class="topic-metadata">

**Author:** [@Harpau](https://discourse.nodered.org/u/Harpau)\
**Replies:** 6\
**Last updated:** [8 July 2022 13:45 UTC](https://discourse.nodered.org/t/empty-reply-from-server-creating-an-http-endpoint/64817 "2022-07-08T13:45:16Z")

</div>

I am trying to create an HTTP Endpoint using the description provided here: https://cookbook.nodered.org/http/create-an-http-endpoint Using the example code together with the mentioned curl-command I get the reply "curl…

---

## [Manage Pallete doesnt appear](https://discourse.nodered.org/t/manage-pallete-doesnt-appear/64808)

<div class="topic-metadata">

**Author:** [@GabrielTolentino](https://discourse.nodered.org/u/GabrielTolentino)\
**Replies:** 2\
**Last updated:** [8 July 2022 13:34 UTC](https://discourse.nodered.org/t/manage-pallete-doesnt-appear/64808 "2022-07-08T13:34:31Z")

</div>

I'm new to node red, and i got some problems with manage pallete. It doesnt appear in my node red. When i try to get some node by terminal, it drops an error like this: ERROR: npm is known not to run on Node.js v8.16.0 …

---

## [Where can I store subflow nodes with Broker / DB configuration except for \`/data/flows.json\` so that they show up in the Pallete?](https://discourse.nodered.org/t/where-can-i-store-subflow-nodes-with-broker-db-configuration-except-for-data-flows-json-so-that-they-show-up-in-the-pallete/64838)

<div class="topic-metadata">

**Author:** [@Shan](https://discourse.nodered.org/u/Shan)\
**Replies:** 0\
**Last updated:** [8 July 2022 13:12 UTC](https://discourse.nodered.org/t/where-can-i-store-subflow-nodes-with-broker-db-configuration-except-for-data-flows-json-so-that-they-show-up-in-the-pallete/64838 "2022-07-08T13:12:32Z")

</div>

I am packing some pre-configured nodes within subflows and currently building a container image where these subflows are stored in /data/flows.json file. This works great for a fresh spun up container an I am able to see…

---

## [Modbus gateway - how to?](https://discourse.nodered.org/t/modbus-gateway-how-to/64826)

<div class="topic-metadata">

**Author:** [@json\_lame](https://discourse.nodered.org/u/json_lame)\
**Replies:** 4\
**Last updated:** [8 July 2022 11:01 UTC](https://discourse.nodered.org/t/modbus-gateway-how-to/64826 "2022-07-08T11:01:29Z")

</div>

Hello everyone :slight\_smile: I'm forced to ask you for help, because I don't know how to solve it Our newest SCADA system is not able to communicate by serial port (RS485) and we have some devices that have only RS485…

---

## [Node Red NodeJS Embedding](https://discourse.nodered.org/t/node-red-nodejs-embedding/64822)

<div class="topic-metadata">

**Author:** [@Derrick-Tan-D-WEBDEV](https://discourse.nodered.org/u/Derrick-Tan-D-WEBDEV)\
**Replies:** 1\
**Last updated:** [8 July 2022 08:35 UTC](https://discourse.nodered.org/t/node-red-nodejs-embedding/64822 "2022-07-08T08:35:21Z")

</div>

Hi Guys, would like to ask. I am currently having some problem when launching the nodeJS with the node-red. I just try the example the code from the node-red website, but it seems to getting the error of web socket probl…

---

## [State changed duration](https://discourse.nodered.org/t/state-changed-duration/8592)

<div class="topic-metadata">

**Author:** [@daniel1411](https://discourse.nodered.org/u/daniel1411)\
**Replies:** 6\
**Last updated:** [8 July 2022 08:31 UTC](https://discourse.nodered.org/t/state-changed-duration/8592 "2022-07-08T08:31:02Z")

</div>

Hi i using Hass.io and Node red, and i want to create the following flow: State Sensor X Change to Y I want to create split/flow that if time is \< 20 min from state change go to 1 and if not go to 2

---

## [Nodered syslogging on raspberry pi](https://discourse.nodered.org/t/nodered-syslogging-on-raspberry-pi/64766)

<div class="topic-metadata">

**Author:** [@zubenubi](https://discourse.nodered.org/u/zubenubi)\
**Replies:** 3\
**Last updated:** [8 July 2022 07:06 UTC](https://discourse.nodered.org/t/nodered-syslogging-on-raspberry-pi/64766 "2022-07-08T07:06:58Z")

</div>

Hi All, I have a flow (see below) that is trying to send a msg to the local syslog running on the same rpi as nodered. I am able to send the same msg to a remote syslog server, but not the local server. I would prefer t…

---

## [Help build an array in function](https://discourse.nodered.org/t/help-build-an-array-in-function/64308)

<div class="topic-metadata">

**Author:** [@Shadow20X6](https://discourse.nodered.org/u/Shadow20X6)\
**Replies:** 5\
**Last updated:** [8 July 2022 06:56 UTC](https://discourse.nodered.org/t/help-build-an-array-in-function/64308 "2022-07-08T06:56:35Z")

</div>

I'm self learning Node-Red, and have been slowly building my way through a hobby that i might try to use at work. The idea is I've figured out how to use the Asana API to get lists or projects and tasks. I'm taking in …

---

## [Help to debug MQTT/Influx host not found connection issue](https://discourse.nodered.org/t/help-to-debug-mqtt-influx-host-not-found-connection-issue/64748)

<div class="topic-metadata">

**Author:** [@Andresc4](https://discourse.nodered.org/u/Andresc4)\
**Replies:** 10\
**Last updated:** [8 July 2022 02:19 UTC](https://discourse.nodered.org/t/help-to-debug-mqtt-influx-host-not-found-connection-issue/64748 "2022-07-08T02:19:23Z")

</div>

Hello guys, I am new on the forums, this is not a NodeRed specific question, but I would like to share this issue here so you can hep me out on how to debug it. I am running a raspi with docker+portainer+grafna+influx+e…

---

## [Create server API with Token](https://discourse.nodered.org/t/create-server-api-with-token/64435)

<div class="topic-metadata">

**Author:** [@LinkView\_Maze](https://discourse.nodered.org/u/LinkView_Maze)\
**Replies:** 8\
**Last updated:** [7 July 2022 22:27 UTC](https://discourse.nodered.org/t/create-server-api-with-token/64435 "2022-07-07T22:27:07Z")

</div>

Hello I will use my raspberry pi with nodered to create the Rest Api server. But I want to create an auth token for my clients. What is the simplest method? The token is time-limited and linked to an id and password. …

---

## [Put unique ID on these values?](https://discourse.nodered.org/t/put-unique-id-on-these-values/64801)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 1\
**Last updated:** [7 July 2022 15:59 UTC](https://discourse.nodered.org/t/put-unique-id-on-these-values/64801 "2022-07-07T15:59:50Z")

</div>

So I tried to get the cost for my power consumption correct but I am still struggling. The Tibber feed puts out data every 1,5 sec. I have delayed the message to every 60 seconds. Each hour the kWh cost is different s…

---

## [Help with Node-Red-Node-Ping and multiple NIC's](https://discourse.nodered.org/t/help-with-node-red-node-ping-and-multiple-nics/64776)

<div class="topic-metadata">

**Author:** [@mrdanedwards](https://discourse.nodered.org/u/mrdanedwards)\
**Replies:** 1\
**Last updated:** [7 July 2022 14:17 UTC](https://discourse.nodered.org/t/help-with-node-red-node-ping-and-multiple-nics/64776 "2022-07-07T14:17:27Z")

</div>

Hello All, I am currently using NodeRed on my Pi400 (version 2.2.2) as a general network monitoring GUI. Its pretty simple, and the table I've made just shows the IP address of the device, the ping time and then a hard…

---

## [Shortcut to assign multiple nodes inputs to single output](https://discourse.nodered.org/t/shortcut-to-assign-multiple-nodes-inputs-to-single-output/64799)

<div class="topic-metadata">

**Author:** [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Replies:** 3\
**Last updated:** [7 July 2022 13:48 UTC](https://discourse.nodered.org/t/shortcut-to-assign-multiple-nodes-inputs-to-single-output/64799 "2022-07-07T13:48:08Z")

</div>

Hello, is there a fast way to connect single node output to multiple node inputs? I would like for a right side to look the same as left without assigning one by one

---

## [Alexa-home - alexa\_ip is undefined](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786)

<div class="topic-metadata">

**Author:** [@Sylvan](https://discourse.nodered.org/u/Sylvan)\
**Replies:** 3\
**Last updated:** [7 July 2022 11:13 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786 "2022-07-07T11:13:36Z")

</div>

According to the documentation, the alexa-home node sends the IP address of the Echo device that initialized the message. This can be found under msg.alexa\_ip. The problem in my case is that I never get an IP. The val…

---

## [Add background image in template node on a website](https://discourse.nodered.org/t/add-background-image-in-template-node-on-a-website/64791)

<div class="topic-metadata">

**Author:** [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Replies:** 3\
**Last updated:** [7 July 2022 08:58 UTC](https://discourse.nodered.org/t/add-background-image-in-template-node-on-a-website/64791 "2022-07-07T08:58:56Z")

</div>

Hi, I want to add a background image for this website. The image is on my local computer. How to i reference to it in node red and also when it is published how can that image be available to everyone. How do i make the…

---

## [How to edit host file for google calendar on node red](https://discourse.nodered.org/t/how-to-edit-host-file-for-google-calendar-on-node-red/64785)

<div class="topic-metadata">

**Author:** [@TimC1986](https://discourse.nodered.org/u/TimC1986)\
**Replies:** 1\
**Last updated:** [7 July 2022 08:02 UTC](https://discourse.nodered.org/t/how-to-edit-host-file-for-google-calendar-on-node-red/64785 "2022-07-07T08:02:06Z")

</div>

Hello I'm running node red on a cerbo gx (running on Venus OS) device and I'm trying to setup a google calendar node. At the moment I have everything configured in the google cloud (created app, enabled API, got the cr…

---

## [Check if folder is mountPoint](https://discourse.nodered.org/t/check-if-folder-is-mountpoint/64788)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 4\
**Last updated:** [7 July 2022 07:56 UTC](https://discourse.nodered.org/t/check-if-folder-is-mountpoint/64788 "2022-07-07T07:56:26Z")

</div>

Hi all, I would like check if a folder is a mount point using a function in node-red. I try looking for fs or os function without success. Can someone help me?

---

## [Incorrect DB lookup issue](https://discourse.nodered.org/t/incorrect-db-lookup-issue/64764)

<div class="topic-metadata">

**Author:** [@elusion](https://discourse.nodered.org/u/elusion)\
**Replies:** 9\
**Last updated:** [7 July 2022 07:42 UTC](https://discourse.nodered.org/t/incorrect-db-lookup-issue/64764 "2022-07-07T07:42:21Z")

</div>

I'm having a weird problem with one of our apps, as follows: The app receives an email, it is parsed by a function node and the from address is logged using node.warn. The same function node then creates a message with…

---

## [Change default render of UI nodes?](https://discourse.nodered.org/t/change-default-render-of-ui-nodes/64751)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 2\
**Last updated:** [7 July 2022 02:14 UTC](https://discourse.nodered.org/t/change-default-render-of-ui-nodes/64751 "2022-07-07T02:14:54Z")

</div>

This maybe a loaded question, no pun intended, but I would like to have the default scheme for dashboard UI controls to not be white text on teal background, but to say black text on red background? Yes I can configure …

---

## [Calculate accumulated price based on power consumption](https://discourse.nodered.org/t/calculate-accumulated-price-based-on-power-consumption/64771)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 3\
**Last updated:** [6 July 2022 22:13 UTC](https://discourse.nodered.org/t/calculate-accumulated-price-based-on-power-consumption/64771 "2022-07-06T22:13:23Z")

</div>

I got this feed provided from Tibber, my power consumption accumulated for the last hour. I also have the price for the power. The price is without all the taxes so i added them and i then recieve the price as well. T…

---

## [Node red Javascript with start en stop payload for led blink](https://discourse.nodered.org/t/node-red-javascript-with-start-en-stop-payload-for-led-blink/64780)

<div class="topic-metadata">

**Author:** [@kirelam](https://discourse.nodered.org/u/kirelam)\
**Replies:** 1\
**Last updated:** [6 July 2022 20:46 UTC](https://discourse.nodered.org/t/node-red-javascript-with-start-en-stop-payload-for-led-blink/64780 "2022-07-06T20:46:05Z")

</div>

Dear Nodes, I am no scripter, so i do not now "yet" how to program Javascript to do the following: Node red Javascript node with a start (1) and stop (0) payload for led blink. And then something with a tme like 500ms…

---

## [The element of an array name has a period in the name. "pm2.5\_10minute"](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775)

<div class="topic-metadata">

**Author:** [@johnlietzke](https://discourse.nodered.org/u/johnlietzke)\
**Replies:** 2\
**Last updated:** [6 July 2022 19:24 UTC](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775 "2022-07-06T19:24:35Z")

</div>

Any suggestions on how to get the value of the second object? object { pm2.5: 0.8\* pm2.5\_10minute: 0.7\* pm2.5\_30minute: 0.6\* pm2.5\_60minute: 0.6\* pm2.5\_6hour: 1.6\* pm2.5\_24hour: 3\* pm2.5\_1week: 3.5\* } Purple Air ha…

---

## [Web scraping text and looking result up in table](https://discourse.nodered.org/t/web-scraping-text-and-looking-result-up-in-table/64743)

<div class="topic-metadata">

**Author:** [@EspeeFunsail](https://discourse.nodered.org/u/EspeeFunsail)\
**Replies:** 2\
**Last updated:** [6 July 2022 18:57 UTC](https://discourse.nodered.org/t/web-scraping-text-and-looking-result-up-in-table/64743 "2022-07-06T18:57:05Z")

</div>

I am using http-request to get the text from this website: https://ewn.co.za/assets/loadshedding/api/status All I want to do is get the data after a certain set of words, for example: "City Customers: Stage " and then …

---

## [RC controller via Node Red](https://discourse.nodered.org/t/rc-controller-via-node-red/64773)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 0\
**Last updated:** [6 July 2022 18:36 UTC](https://discourse.nodered.org/t/rc-controller-via-node-red/64773 "2022-07-06T18:36:09Z")

</div>

Hi! Is it possible to control an RC controller via Node Red? I would love to control a Hobbywing ESC via Node Red. I hope someone can help me. Thanks in advance.

---

## [Octoprint Safe Shutdown](https://discourse.nodered.org/t/octoprint-safe-shutdown/64760)

<div class="topic-metadata">

**Author:** [@TheSirSpence](https://discourse.nodered.org/u/TheSirSpence)\
**Replies:** 9\
**Last updated:** [6 July 2022 15:16 UTC](https://discourse.nodered.org/t/octoprint-safe-shutdown/64760 "2022-07-06T15:16:27Z")

</div>

Hi all, I am trying to create a safe shutdown sequence for my Octoprint running on a seperate Pi3b. I am using Node-Red inside home assistant and I have an entity called "button.octoprint\_shutdown\_system" with a restin…

---

## [Enable/disable flows or input at start/end of month](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 3\
**Last updated:** [6 July 2022 13:34 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759 "2022-07-06T13:34:07Z")

</div>

Searching for a while but havent found the obvious solution, but I do think there is an easy one. I have a value in a trigger node which I trigger every 20 minutes from january 1, until march 31. Then i have another valu…

---

## [How to show array results in html template](https://discourse.nodered.org/t/how-to-show-array-results-in-html-template/64744)

<div class="topic-metadata">

**Author:** [@PateJS](https://discourse.nodered.org/u/PateJS)\
**Replies:** 2\
**Last updated:** [6 July 2022 12:25 UTC](https://discourse.nodered.org/t/how-to-show-array-results-in-html-template/64744 "2022-07-06T12:25:09Z")

</div>

This is basic html template where is button. how to jump bottom array loop when it is clicked ? then show results back in html template ?. Does it require javascripting or is it possible to achieve with node ? So I want …

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

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