# General

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

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

**Page:** 815

---

## [Split string with substring() or slice in node-red on hassio](https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426)

<div class="topic-metadata">

**Author:** [@Yortz](https://discourse.nodered.org/u/Yortz)\
**Replies:** 2\
**Last updated:** [21 December 2019 18:53 UTC](https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426 "2019-12-21T18:53:45Z")

</div>

Hi, I have a question. I can’t split or slice string in node-red that on hassio but I tried on node-red run locally on my computer it’s work How to split string in node-red running on hassio? Thanks:)

---

## [List of messages](https://discourse.nodered.org/t/list-of-messages/19369)

<div class="topic-metadata">

**Author:** [@New2Node](https://discourse.nodered.org/u/New2Node)\
**Replies:** 8\
**Last updated:** [21 December 2019 18:31 UTC](https://discourse.nodered.org/t/list-of-messages/19369 "2019-12-21T18:31:36Z")

</div>

What’s the most efficient way of sending a list of messages to a serial node as per a schedule (Every 24 hours)? I have 100 messages or “Commands” I need to send to a device with a 1s delay between messages. I then rea…

---

## [Error on initializeModbusTCPConnection at Startup](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418)

<div class="topic-metadata">

**Author:** [@BoLaursen](https://discourse.nodered.org/u/BoLaursen)\
**Replies:** 3\
**Last updated:** [21 December 2019 14:49 UTC](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418 "2019-12-21T14:49:55Z")

</div>

Hey Forum. When i start up node red i get this message in the CMD. and i cant get acces to the node-red editor. 21 Dec 11:16:18 - \[info\] Starting flows 21 Dec 11:16:18 - \[error\] \[modbustcp-read:8bd8adae.9507\] TypeErro…

---

## ["Disable node" vs uninistalling it](https://discourse.nodered.org/t/disable-node-vs-uninistalling-it/19413)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 5\
**Last updated:** [21 December 2019 11:32 UTC](https://discourse.nodered.org/t/disable-node-vs-uninistalling-it/19413 "2019-12-21T11:32:01Z")

</div>

Just asking: If I am suspicious of a node, what is the difference between disabling it and uninstalling it?

---

## [Getting some glitches in the editor](https://discourse.nodered.org/t/getting-some-glitches-in-the-editor/19402)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 7\
**Last updated:** [20 December 2019 21:52 UTC](https://discourse.nodered.org/t/getting-some-glitches-in-the-editor/19402 "2019-12-20T21:52:11Z")

</div>

I've noticed a few times over past few days (Probably about 5 times now) that I'm getting the "grayed out" effect (that you get when editing a node for instance) but not when editing The only way of clearing seems to be…

---

## [Worldmap history](https://discourse.nodered.org/t/worldmap-history/19390)

<div class="topic-metadata">

**Author:** [@bigmac5753](https://discourse.nodered.org/u/bigmac5753)\
**Replies:** 5\
**Last updated:** [20 December 2019 20:24 UTC](https://discourse.nodered.org/t/worldmap-history/19390 "2019-12-20T20:24:53Z")

</div>

Hi, I've got worldmap running but I would like it to store history, is a database the only way to do this? If so, does anyone have any examples for me to work with as I know virtually nothing about databases. Thanks

---

## [Tasmotta MQTT to InfluxDB](https://discourse.nodered.org/t/tasmotta-mqtt-to-influxdb/19381)

<div class="topic-metadata">

**Author:** [@loyaltolex](https://discourse.nodered.org/u/loyaltolex)\
**Replies:** 2\
**Last updated:** [20 December 2019 19:40 UTC](https://discourse.nodered.org/t/tasmotta-mqtt-to-influxdb/19381 "2019-12-20T19:40:27Z")

</div>

Hi, I am trying to take my MQTT string sent to me by Tasmota (TH16) and send it to InfluxDB The string is {"Time":"2019-12-20T20:52:22","AM2301":{"Temperature":18.4,"Humidity":67.7},"TempUnit":"C"} and I believe that …

---

## [Http response, json without backslashes](https://discourse.nodered.org/t/http-response-json-without-backslashes/19376)

<div class="topic-metadata">

**Author:** [@timnis](https://discourse.nodered.org/u/timnis)\
**Replies:** 12\
**Last updated:** [20 December 2019 18:26 UTC](https://discourse.nodered.org/t/http-response-json-without-backslashes/19376 "2019-12-20T18:26:14Z")

</div>

Hi, I try to make simple API for mssql database and I get it working. MSSQL return JSON directly nicely with "FOR JSON PATH" But response is escaped with backslashes, how I can removed those backslashes? "{\\"ProductC…

---

## [Uninstall and install node-red](https://discourse.nodered.org/t/uninstall-and-install-node-red/19357)

<div class="topic-metadata">

**Author:** [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Replies:** 5\
**Last updated:** [20 December 2019 18:03 UTC](https://discourse.nodered.org/t/uninstall-and-install-node-red/19357 "2019-12-20T18:03:51Z")

</div>

Hello everyone. I am a beginner and faced difficulties. I installed node-red through the: sudo npm install -g --unsafe-perm node-red Next I added an administrator account according to the instructions https://noder…

---

## [Http request node sends bearer when auth is off](https://discourse.nodered.org/t/http-request-node-sends-bearer-when-auth-is-off/19401)

<div class="topic-metadata">

**Author:** [@RobP](https://discourse.nodered.org/u/RobP)\
**Replies:** 5\
**Last updated:** [20 December 2019 17:12 UTC](https://discourse.nodered.org/t/http-request-node-sends-bearer-when-auth-is-off/19401 "2019-12-20T17:12:33Z")

</div>

I have several http request nodes, without the authentication checked, and I'm setting msg.headers with a JWT token in the previous node, and the node instead sends a header of BASIC xxxxxxxxxx. I can't seem to figure ou…

---

## [Configuring a dashboard tab in response to a URL](https://discourse.nodered.org/t/configuring-a-dashboard-tab-in-response-to-a-url/19106)

<div class="topic-metadata">

**Author:** [@sfewings](https://discourse.nodered.org/u/sfewings)\
**Replies:** 6\
**Last updated:** [20 December 2019 15:16 UTC](https://discourse.nodered.org/t/configuring-a-dashboard-tab-in-response-to-a-url/19106 "2019-12-20T15:16:45Z")

</div>

Hi, I've spent some time looking and can't find a solution to this problem. I send an email each day with a summary of multiple house sensors. On a node-red dashboard tab I have a chart that can display all daily temper…

---

## [Modbus Communication Reconnecting](https://discourse.nodered.org/t/modbus-communication-reconnecting/18701)

<div class="topic-metadata">

**Author:** [@fmqs](https://discourse.nodered.org/u/fmqs)\
**Replies:** 2\
**Last updated:** [20 December 2019 14:22 UTC](https://discourse.nodered.org/t/modbus-communication-reconnecting/18701 "2019-12-20T14:22:57Z")

</div>

Hello, I'm trying to establish a communication between Node-Red and a SMA Sunny Tripower Inverter using Modbus TCP/IP. I'm using the node-red-contrib-modbus to establish Modbus communication. I think I was able to confi…

---

## [Node-RED and Apache Thrift](https://discourse.nodered.org/t/node-red-and-apache-thrift/19350)

<div class="topic-metadata">

**Author:** [@fjahangiri](https://discourse.nodered.org/u/fjahangiri)\
**Replies:** 1\
**Last updated:** [20 December 2019 12:52 UTC](https://discourse.nodered.org/t/node-red-and-apache-thrift/19350 "2019-12-20T12:52:24Z")

</div>

I want to use Node-RED for implementing a client that use thrift to communicate with a .Net Server. I have .Net Client code that uses thrift too. can I add this client code as a node in Node-RED? I mean what is the best …

---

## [Connect function to node without direct wire](https://discourse.nodered.org/t/connect-function-to-node-without-direct-wire/19377)

<div class="topic-metadata">

**Author:** [@Meng](https://discourse.nodered.org/u/Meng)\
**Replies:** 1\
**Last updated:** [20 December 2019 09:49 UTC](https://discourse.nodered.org/t/connect-function-to-node-without-direct-wire/19377 "2019-12-20T09:49:32Z")

</div>

I am writing some code using require and functionGlobalContext. This includes a self-invoking functions for checking if a database exists or must be created. Normally I access the DB via a MySQL node, however I now do n…

---

## [RPI CPU load gone to 100% after update](https://discourse.nodered.org/t/rpi-cpu-load-gone-to-100-after-update/19375)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 0\
**Last updated:** [20 December 2019 09:05 UTC](https://discourse.nodered.org/t/rpi-cpu-load-gone-to-100-after-update/19375 "2019-12-20T09:05:44Z")

</div>

Yes, I know we've been here before, but I am stupid and the problem has again happened. I have a RPI: Raspberry Pi Model B Rev 2 PRETTY\_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION\_ID="9" VE…

---

## [Take screenshots of web pages](https://discourse.nodered.org/t/take-screenshots-of-web-pages/18873)

<div class="topic-metadata">

**Author:** [@alexalburca](https://discourse.nodered.org/u/alexalburca)\
**Replies:** 13\
**Last updated:** [20 December 2019 06:41 UTC](https://discourse.nodered.org/t/take-screenshots-of-web-pages/18873 "2019-12-20T06:41:58Z")

</div>

Hi I am trying to create a stream that goes to a web page and pulls out screenshots and then sends the image by chatbot via telegram. About sending the telegram I managed to send, but the part of taking the screenshot …

---

## [Context set/get syntax question](https://discourse.nodered.org/t/context-set-get-syntax-question/19368)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 4\
**Last updated:** [20 December 2019 00:49 UTC](https://discourse.nodered.org/t/context-set-get-syntax-question/19368 "2019-12-20T00:49:27Z")

</div>

In function nodes I often use patterns like let startup = true; context.set('startup',startup); or context.set('startup',true); let startup = context.get('startup'); As far as I can tell, these can be replaced by the…

---

## [Does Node-RED need internet connection](https://discourse.nodered.org/t/does-node-red-need-internet-connection/19352)

<div class="topic-metadata">

**Author:** [@Cormad](https://discourse.nodered.org/u/Cormad)\
**Replies:** 7\
**Last updated:** [19 December 2019 21:44 UTC](https://discourse.nodered.org/t/does-node-red-need-internet-connection/19352 "2019-12-19T21:44:06Z")

</div>

I have Node-RED running on a raspberry pi that is hardwired to my router. My PC is also hardwired. My internet recently went down and I could not get Node-RED to load (http://192.168.1.100:1880/) on my PC. Is this norma…

---

## [Switch node with HEX input](https://discourse.nodered.org/t/switch-node-with-hex-input/19361)

<div class="topic-metadata">

**Author:** [@zamzon](https://discourse.nodered.org/u/zamzon)\
**Replies:** 7\
**Last updated:** [19 December 2019 21:21 UTC](https://discourse.nodered.org/t/switch-node-with-hex-input/19361 "2019-12-19T21:21:36Z")

</div>

Hi I am new to NodeRED and I am trying to use the switcher node to filter a HEX code coming from a TCP in node I receive this HEX 0x1c,0x64,0xa,0x0,0x0,0x0,0xff,0x77 I'd like to split the code up in to 8 separate numb…

---

## [Dynamic conditions](https://discourse.nodered.org/t/dynamic-conditions/18816)

<div class="topic-metadata">

**Author:** [@fjahangiri](https://discourse.nodered.org/u/fjahangiri)\
**Replies:** 1\
**Last updated:** [5 December 2019 10:36 UTC](https://discourse.nodered.org/t/dynamic-conditions/18816 "2019-12-05T10:36:03Z")

</div>

I have a temperature sensor. I want to design a flow that turns on a conditioner based on temperature and time. the rules are like this. if time is between 10 p.m to 4 p.m and the temperature is less than 17 then turn o…

---

## [Send command to child process in execute node (spawn mode)](https://discourse.nodered.org/t/send-command-to-child-process-in-execute-node-spawn-mode/18838)

<div class="topic-metadata">

**Author:** [@zaher](https://discourse.nodered.org/u/zaher)\
**Replies:** 3\
**Last updated:** [19 December 2019 17:30 UTC](https://discourse.nodered.org/t/send-command-to-child-process-in-execute-node-spawn-mode/18838 "2019-12-19T17:30:39Z")

</div>

I am using the exec node while enabling the "Use spawn() instead of exec()?" option. I am running a command that starts a child process and waits for input (child process stays on until I send it an exit command or kill …

---

## [Node-red-contrib-smartmeter 0.2.2](https://discourse.nodered.org/t/node-red-contrib-smartmeter-0-2-2/17854)

<div class="topic-metadata">

**Author:** [@Ralf2](https://discourse.nodered.org/u/Ralf2)\
**Replies:** 5\
**Last updated:** [19 December 2019 16:44 UTC](https://discourse.nodered.org/t/node-red-contrib-smartmeter-0-2-2/17854 "2019-12-19T16:44:04Z")

</div>

Hello, i have a problem to install the smartmeter in Node-red on Windows10 her are the protocoll 2019-11-12T18:46:47.550Z installieren : node-red-contrib-smartmeter 0.2.2 2019-11-12T18:46:47.555Z npm.cmd install --no…

---

## [Integrate Azure AD sevices with node-red for SSO](https://discourse.nodered.org/t/integrate-azure-ad-sevices-with-node-red-for-sso/19333)

<div class="topic-metadata">

**Author:** [@shrey.garg](https://discourse.nodered.org/u/shrey.garg)\
**Replies:** 1\
**Last updated:** [19 December 2019 14:47 UTC](https://discourse.nodered.org/t/integrate-azure-ad-sevices-with-node-red-for-sso/19333 "2019-12-19T14:47:12Z")

</div>

Hi, I am trying to implement Single Sign On (SSO) to node-red via Azure AD. I want to secure node-red editor and dashboard using Azure Active Directory. I want to integrate node-red inside my website and let devlopers …

---

## [Current state node](https://discourse.nodered.org/t/current-state-node/19338)

<div class="topic-metadata">

**Author:** [@yabbah](https://discourse.nodered.org/u/yabbah)\
**Replies:** 1\
**Last updated:** [19 December 2019 14:43 UTC](https://discourse.nodered.org/t/current-state-node/19338 "2019-12-19T14:43:48Z")

</div>

Hi out there. I'm new to Node-Red but I try learning. I have try figure out how to check if a state is not Home or Just arrived. I have tried use a node for home assistant which is current state mode, and filter on if st…

---

## [How does a TCP out node work when it is set to listen to a port?](https://discourse.nodered.org/t/how-does-a-tcp-out-node-work-when-it-is-set-to-listen-to-a-port/14909)

<div class="topic-metadata">

**Author:** [@Gnamra](https://discourse.nodered.org/u/Gnamra)\
**Replies:** 7\
**Last updated:** [16 December 2019 17:36 UTC](https://discourse.nodered.org/t/how-does-a-tcp-out-node-work-when-it-is-set-to-listen-to-a-port/14909 "2019-12-16T17:36:08Z")

</div>

I am currently trying to understand a system designed in Node-RED. There is a "master" raspberry pi and a "slave" raspberry pi. In the "master" portion of the system, I have identified a TCP in node that points to the sl…

---

## [Extract \_Session](https://discourse.nodered.org/t/extract-session/19311)

<div class="topic-metadata">

**Author:** [@New2Node](https://discourse.nodered.org/u/New2Node)\
**Replies:** 5\
**Last updated:** [19 December 2019 13:23 UTC](https://discourse.nodered.org/t/extract-session/19311 "2019-12-19T13:23:59Z")

</div>

Hi, I'm trying to extract the msg.\_session property from Msg.payload1 and combine it with a MQTT message (Msg.payload 2) to direct the MQTT messgae to the origin TCP port. I've found that using the MQTT node changes the …

---

## [Sort Array of objects by unix timestamp](https://discourse.nodered.org/t/sort-array-of-objects-by-unix-timestamp/17016)

<div class="topic-metadata">

**Author:** [@Rtholl](https://discourse.nodered.org/u/Rtholl)\
**Replies:** 7\
**Last updated:** [19 December 2019 09:50 UTC](https://discourse.nodered.org/t/sort-array-of-objects-by-unix-timestamp/17016 "2019-12-19T09:50:39Z")

</div>

Hey guys, I'm storing sensor data in a Cloudant DB. Every document consists of the 63 sensor values and a unix timestamp. When querying all the documents from the DB, I realized that those documents are not chronologica…

---

## [Post an parsed Mail-Attachment to API](https://discourse.nodered.org/t/post-an-parsed-mail-attachment-to-api/19334)

<div class="topic-metadata">

**Author:** [@xstable](https://discourse.nodered.org/u/xstable)\
**Replies:** 0\
**Last updated:** [19 December 2019 09:17 UTC](https://discourse.nodered.org/t/post-an-parsed-mail-attachment-to-api/19334 "2019-12-19T09:17:01Z")

</div>

Hey, I've done my first steps with Node Red and got some experiences with it. But now I stuck on the Problem, that the file won't be send to the API. It seems the File-Content is missing. But let's start from the beg…

---

## [Node-Red crashes due to memory leak](https://discourse.nodered.org/t/node-red-crashes-due-to-memory-leak/18679)

<div class="topic-metadata">

**Author:** [@Tankfuzz](https://discourse.nodered.org/u/Tankfuzz)\
**Replies:** 11\
**Last updated:** [19 December 2019 06:39 UTC](https://discourse.nodered.org/t/node-red-crashes-due-to-memory-leak/18679 "2019-12-19T06:39:35Z")

</div>

Hello! I hope I get can some help in solving this problem I have with Node-Red! Up till 3 weeks ago, I was running Node-Red V0.2.x perfectly on my Raspberry Pi4 without any problems. However, after that, the terminal I…

---

## [Am I using the right program/hardware?](https://discourse.nodered.org/t/am-i-using-the-right-program-hardware/16174)

<div class="topic-metadata">

**Author:** [@kylebritain](https://discourse.nodered.org/u/kylebritain)\
**Replies:** 25\
**Last updated:** [18 December 2019 20:07 UTC](https://discourse.nodered.org/t/am-i-using-the-right-program-hardware/16174 "2019-12-18T20:07:59Z")

</div>

Hello all! I'll get right to it. I am trying to wirelessly control under cabinet LED strips for a kitchen. There is a white strip, and a blue strip. The kitchen is separated in 2 sections so I cant wire them all to the …

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

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