# Latest

**URL:** https://discourse.nodered.org/latest.md?no_subcategories=false&page=538

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

**Page:** 539

---

## [Can the forum automatically wrap pasted text in tags?](https://discourse.nodered.org/t/can-the-forum-automatically-wrap-pasted-text-in-tags/64853)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 3\
**Last updated:** [9 July 2022 19:30 UTC](https://discourse.nodered.org/t/can-the-forum-automatically-wrap-pasted-text-in-tags/64853 "2022-07-09T19:30:56Z")

</div>

Over and over we see someone's first posts include code, presumably pasted with CTRL V, but the forum sanitises the content to the extent that it cannot be imported. Is this behaviour tunable at all? Maybe pasted text c…

---

## [Function Node Code issues](https://discourse.nodered.org/t/function-node-code-issues/64866)

<div class="topic-metadata">

**Author:** [@gjones84](https://discourse.nodered.org/u/gjones84)\
**Replies:** 3\
**Last updated:** [9 July 2022 18:58 UTC](https://discourse.nodered.org/t/function-node-code-issues/64866 "2022-07-09T18:58:58Z")

</div>

Hi All, Wondering if someone could help me. Trying to get this code working for a friend. It has 2 limits -150 and 150. Its adds the last number to the new number and outputs it but will only allow to stay with in limi…

---

## [Storing NODE-RED input into an SQLite database](https://discourse.nodered.org/t/storing-node-red-input-into-an-sqlite-database/64874)

<div class="topic-metadata">

**Author:** [@fadzfiras](https://discourse.nodered.org/u/fadzfiras)\
**Replies:** 1\
**Last updated:** [9 July 2022 16:49 UTC](https://discourse.nodered.org/t/storing-node-red-input-into-an-sqlite-database/64874 "2022-07-09T16:49:26Z")

</div>

I have been given a task to store a set of data into an SQLite database. I have to code the function node (format data) so the SQLite node is able to store my data. The 'database' node accepts SQL Query via msg.topic. H…

---

## [Msg is unique for each flow](https://discourse.nodered.org/t/msg-is-unique-for-each-flow/64872)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 1\
**Last updated:** [9 July 2022 16:40 UTC](https://discourse.nodered.org/t/msg-is-unique-for-each-flow/64872 "2022-07-09T16:40:31Z")

</div>

Hi all I have a simple conceptual question I have a flow and many digital inputs. Each digital inputs is connect to a different function. Or better different functions for different digital inputs. Inside function I rea…

---

## [Sqlite conection in function node](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051)

<div class="topic-metadata">

**Author:** [@jhon.zambrano](https://discourse.nodered.org/u/jhon.zambrano)\
**Replies:** 4\
**Last updated:** [9 July 2022 16:03 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051 "2022-07-09T16:03:28Z")

</div>

Hi Its possible to conect to my database in function node? how can i do it? any template, link or advice, Thanks! Regards!

---

## [Help in using HTTP GET to capture electricity usage](https://discourse.nodered.org/t/help-in-using-http-get-to-capture-electricity-usage/64875)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 5\
**Last updated:** [9 July 2022 15:44 UTC](https://discourse.nodered.org/t/help-in-using-http-get-to-capture-electricity-usage/64875 "2022-07-09T15:44:59Z")

</div>

Greetings. My local power utility company offers a user-specific URL that displays hourly electricity usage by day for the past 13 months. I tried using the HTTP Request node to capture this data that I can parse and s…

---

## [\[ANNOUNCE\] node-red-contrib-chronos 1.18](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-18/64879)

<div class="topic-metadata">

**Author:** [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)\
**Replies:** 0\
**Last updated:** [9 July 2022 15:36 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-18/64879 "2022-07-09T15:36:01Z")

</div>

Today I published release 1.18 of node-red-contrib-chronos, please have a look at the announcement on GitHub for more details. :loudspeaker: node-red-contrib-chronos 1.18

---

## [HELP Lost everything](https://discourse.nodered.org/t/help-lost-everything/64827)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 17\
**Last updated:** [9 July 2022 13:43 UTC](https://discourse.nodered.org/t/help-lost-everything/64827 "2022-07-09T13:43:54Z")

</div>

Lost everything. Was trying to update the cronplus to the latest version but somehow managed to scr... it. Lost everything. I then imorted my backup from latest night as I do send backup to dropbox. But when I import the…

---

## [Display text in dashboard from string getting from a function](https://discourse.nodered.org/t/display-text-in-dashboard-from-string-getting-from-a-function/64844)

<div class="topic-metadata">

**Author:** [@Nuri](https://discourse.nodered.org/u/Nuri)\
**Replies:** 4\
**Last updated:** [9 July 2022 12:33 UTC](https://discourse.nodered.org/t/display-text-in-dashboard-from-string-getting-from-a-function/64844 "2022-07-09T12:33:09Z")

</div>

Hi Forum, first of all, I am a newbie. I am trying to display a text in the dashboard in the color I get from a function. here once the template: \<body\> \<p style="color": msg.payload \>test\</p\> \</body\> and here the…

---

## [Function with multiple payloads (with null)](https://discourse.nodered.org/t/function-with-multiple-payloads-with-null/64867)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 5\
**Last updated:** [9 July 2022 10:58 UTC](https://discourse.nodered.org/t/function-with-multiple-payloads-with-null/64867 "2022-07-09T10:58:44Z")

</div>

Hi, I try to improve my code daily and today I'd like to change this code: // 1 var bc = global.get("var\_bloccocar"); if (bc == 1) { global.set("var\_bloccocar", 0) msg1 = {labelcolorcar:"#A4A4A4"} } else { …

---

## [Error Loading palette nodes after restart](https://discourse.nodered.org/t/error-loading-palette-nodes-after-restart/64837)

<div class="topic-metadata">

**Author:** [@gigonzalezs](https://discourse.nodered.org/u/gigonzalezs)\
**Replies:** 3\
**Last updated:** [9 July 2022 09:41 UTC](https://discourse.nodered.org/t/error-loading-palette-nodes-after-restart/64837 "2022-07-09T09:41:05Z")

</div>

Hi, I'm using node-red inside a nodejs service. (node-red 2.2.2) I use this code for restart the runtime: RED.stop() .then(() =\> { RED.init(server,red\_settings); return RED.start(); …

---

## [Emails from Microsoft365 using modern authentication](https://discourse.nodered.org/t/emails-from-microsoft365-using-modern-authentication/64802)

<div class="topic-metadata">

**Author:** [@Romprod](https://discourse.nodered.org/u/Romprod)\
**Replies:** 8\
**Last updated:** [9 July 2022 06:50 UTC](https://discourse.nodered.org/t/emails-from-microsoft365-using-modern-authentication/64802 "2022-07-09T06:50:58Z")

</div>

Hi there. I have a flow that periodically checks a mailbox via POP3\\IMAP and parses any emails in there for info etc which works great. Microsoft are shortly turning off basic authentication for services including Exch…

---

## [How to understand this paragraph in doc?](https://discourse.nodered.org/t/how-to-understand-this-paragraph-in-doc/64863)

<div class="topic-metadata">

**Author:** [@liaodalin19903](https://discourse.nodered.org/u/liaodalin19903)\
**Replies:** 1\
**Last updated:** [9 July 2022 06:38 UTC](https://discourse.nodered.org/t/how-to-understand-this-paragraph-in-doc/64863 "2022-07-09T06:38:48Z")

</div>

https://nodered.org/about/community/survey/2019/ Almost of third of respondents use separate ‘development’ and ‘production’ systems, however they do not have any automation to move between them. This was also reflecte…

---

## [Node.send() vs send() – what's the difference?](https://discourse.nodered.org/t/node-send-vs-send-whats-the-difference/64811)

<div class="topic-metadata">

**Author:** [@phoddie](https://discourse.nodered.org/u/phoddie)\
**Replies:** 3\
**Last updated:** [9 July 2022 01:47 UTC](https://discourse.nodered.org/t/node-send-vs-send-whats-the-difference/64811 "2022-07-09T01:47:20Z")

</div>

I'm trying to understand the difference between using node.send() and send() in a node. This is for the Node-RED MCU Edition exploration, to be able to properly enumerate the full Node-RED behavior. when using the Compat…

---

## [Gardena oauth2 and redirect](https://discourse.nodered.org/t/gardena-oauth2-and-redirect/64859)

<div class="topic-metadata">

**Author:** [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)\
**Replies:** 0\
**Last updated:** [8 July 2022 20:20 UTC](https://discourse.nodered.org/t/gardena-oauth2-and-redirect/64859 "2022-07-08T20:20:07Z")

</div>

Hi Im trying to get oauth2 to communicate with the gardena api, using this flow: chmuck’s gists · GitHub I keep getting error 400. I ran gardena's test terminal on my nodered pi and it could get a token, so there is wo…

---

## [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?

---

## [Node-red-node-email more options for e-mail mta](https://discourse.nodered.org/t/node-red-node-email-more-options-for-e-mail-mta/62930)

<div class="topic-metadata">

**Author:** [@daviddhauwe](https://discourse.nodered.org/u/daviddhauwe)\
**Replies:** 7\
**Last updated:** [8 July 2022 16:46 UTC](https://discourse.nodered.org/t/node-red-node-email-more-options-for-e-mail-mta/62930 "2022-07-08T16:46:59Z")

</div>

Hi, I would like to add more smtp-server options to the e-mail mta node, to make it more 'production-ready'. I'm thinking about tls, authentication... Is it a good idea to extend the e-mail mta node? Or is it better to …

---

## [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

---

## [Proposal to add features into node-red-nodes/hardware/intel/mraa-gpio-din.js](https://discourse.nodered.org/t/proposal-to-add-features-into-node-red-nodes-hardware-intel-mraa-gpio-din-js/64787)

<div class="topic-metadata">

**Author:** [@fr0st61te](https://discourse.nodered.org/u/fr0st61te)\
**Replies:** 3\
**Last updated:** [8 July 2022 07:17 UTC](https://discourse.nodered.org/t/proposal-to-add-features-into-node-red-nodes-hardware-intel-mraa-gpio-din-js/64787 "2022-07-08T07:17:22Z")

</div>

In siemens github for iot2050 project there plenty patches for some mraa intel nodes which could be useful for community. For now it's about gpio-din only and here patches I can propose: clean up on close extend GPIO n…

---

## [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. …

[Previous page](https://discourse.nodered.org/latest.md?no_subcategories=false&page=537)

[Next page](https://discourse.nodered.org/latest.md?no_subcategories=false&page=539)
