# General

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

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

**Page:** 125

---

## [Set variable to null in a change node?](https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 1\
**Last updated:** [13 March 2024 06:18 UTC](https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389 "2024-03-13T06:18:21Z")

</div>

Set variable to null in a change node? I don't want to delete the variable, just set it to null. In function node this is simplistic. but I guess until now I have never need to do it in a simple change node? Is it jus…

---

## [Node Red Service Crash? Shutdown?](https://discourse.nodered.org/t/node-red-service-crash-shutdown/86103)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 8\
**Last updated:** [13 March 2024 04:18 UTC](https://discourse.nodered.org/t/node-red-service-crash-shutdown/86103 "2024-03-13T04:18:06Z")

</div>

Node Red Service Crash? Shutdown? Mar 03 20:56:12 eccentric Node-RED\[2683\]: 3 Mar 20:56:12 - \[info\] User directory : /root/.node-red Mar 03 20:56:12 eccentric Node-RED\[2683\]: 3 Mar 20:56:12 - \[warn\] Projects disabled :…

---

## [CSV column name contains space](https://discourse.nodered.org/t/csv-column-name-contains-space/86380)

<div class="topic-metadata">

**Author:** [@FloRu](https://discourse.nodered.org/u/FloRu)\
**Replies:** 2\
**Last updated:** [12 March 2024 18:40 UTC](https://discourse.nodered.org/t/csv-column-name-contains-space/86380 "2024-03-12T18:40:57Z")

</div>

Today I got a CSV file out of a platform, and I need to extract the values. The problem is: three of the columns have space characters in their name. Normally this is not a big problem: you could take a text editor and…

---

## [Problem with node-red-contrib-tuya-smart-device and new devices (Lamps)](https://discourse.nodered.org/t/problem-with-node-red-contrib-tuya-smart-device-and-new-devices-lamps/86337)

<div class="topic-metadata">

**Author:** [@SomersetSmartHome](https://discourse.nodered.org/u/SomersetSmartHome)\
**Replies:** 4\
**Last updated:** [12 March 2024 16:11 UTC](https://discourse.nodered.org/t/problem-with-node-red-contrib-tuya-smart-device-and-new-devices-lamps/86337 "2024-03-12T16:11:06Z")

</div>

I have node-red-contrib-tuya-smart-device installed and running successfully with 12 devices, all different makes on TUYA Lamps. I have recently tried to add extra lamps. I connect and configure them using the Tuya Sm…

---

## [Node-red-contrib-tuya-smart-device doesn't work with newer Tuya devices](https://discourse.nodered.org/t/node-red-contrib-tuya-smart-device-doesnt-work-with-newer-tuya-devices/86368)

<div class="topic-metadata">

**Author:** [@SomersetSmartHome](https://discourse.nodered.org/u/SomersetSmartHome)\
**Replies:** 0\
**Last updated:** [12 March 2024 10:45 UTC](https://discourse.nodered.org/t/node-red-contrib-tuya-smart-device-doesnt-work-with-newer-tuya-devices/86368 "2024-03-12T10:45:23Z")

</div>

I have node-red-contrib-tuya-smart-device installed and running successfully with 12 devices, all different makes on TUYA Lamps. I have recently tried to add extra lamps. I connect and configure them using the Tuya Sm…

---

## [Output to debug window disappears too fast](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316)

<div class="topic-metadata">

**Author:** [@rldoose](https://discourse.nodered.org/u/rldoose)\
**Replies:** 11\
**Last updated:** [12 March 2024 10:17 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316 "2024-03-12T10:17:54Z")

</div>

Output to debug disappears before I can inspect the information. Especially if the information is a large array, it disappears way before I have an oppertunity to drill down. I'm using node red v3.13 on Victron Venus O…

---

## [Scrapes blocked http request](https://discourse.nodered.org/t/scrapes-blocked-http-request/86350)

<div class="topic-metadata">

**Author:** [@aminhadomotica](https://discourse.nodered.org/u/aminhadomotica)\
**Replies:** 4\
**Last updated:** [12 March 2024 08:57 UTC](https://discourse.nodered.org/t/scrapes-blocked-http-request/86350 "2024-03-12T08:57:04Z")

</div>

Hi guys. I have http request for site https://www.futebol365.pt/jogos-na-tv/ to retreive all football games in TV. Any thing in the website has changed. Now the http request doesnt return HTML of website. I dont know if…

---

## [Node-Red stopped running and didn't restart - first time occurrence - how to restart?](https://discourse.nodered.org/t/node-red-stopped-running-and-didnt-restart-first-time-occurrence-how-to-restart/86345)

<div class="topic-metadata">

**Author:** [@dr\_cave\_dweller](https://discourse.nodered.org/u/dr_cave_dweller)\
**Replies:** 11\
**Last updated:** [12 March 2024 08:21 UTC](https://discourse.nodered.org/t/node-red-stopped-running-and-didnt-restart-first-time-occurrence-how-to-restart/86345 "2024-03-12T08:21:21Z")

</div>

Hi, I have Node-Red running on RPI. I use sudo systemctl enable nodered.service command to start Node-Red on boot. I then start Chromium in kiosk mode and use the Node-Red dashboard as a HMI. I have had a first ever oc…

---

## [Node-red with caprover?](https://discourse.nodered.org/t/node-red-with-caprover/86362)

<div class="topic-metadata">

**Author:** [@rsingh888](https://discourse.nodered.org/u/rsingh888)\
**Replies:** 0\
**Last updated:** [12 March 2024 05:36 UTC](https://discourse.nodered.org/t/node-red-with-caprover/86362 "2024-03-12T05:36:27Z")

</div>

Hello, Has anyone tried running node-red with caprover. I am trying to configure standard node-red repo (not the docker container) to be deployed via caprover. Seems connectivity is established as I could open a blank …

---

## [Dsm faults to NaN when attempting to move message to msg.payload](https://discourse.nodered.org/t/dsm-faults-to-nan-when-attempting-to-move-message-to-msg-payload/86358)

<div class="topic-metadata">

**Author:** [@EW57](https://discourse.nodered.org/u/EW57)\
**Replies:** 2\
**Last updated:** [12 March 2024 01:36 UTC](https://discourse.nodered.org/t/dsm-faults-to-nan-when-attempting-to-move-message-to-msg-payload/86358 "2024-03-12T01:36:38Z")

</div>

Greetings, I'm new to Node-RED & learning more everyday, however, I've got a dilemma that I havent been able to fix by searching. I'm attempting to use the DSM examples to track cumulative "on" time of a process, which …

---

## [How to find out what causes Node-RED to crash](https://discourse.nodered.org/t/how-to-find-out-what-causes-node-red-to-crash/86335)

<div class="topic-metadata">

**Author:** [@Switchblade2](https://discourse.nodered.org/u/Switchblade2)\
**Replies:** 18\
**Last updated:** [11 March 2024 20:53 UTC](https://discourse.nodered.org/t/how-to-find-out-what-causes-node-red-to-crash/86335 "2024-03-11T20:53:50Z")

</div>

I'm running Node-RED on a RaspberryPi to manage a Home Energy Management System. It crashes infrequently (approx once per 10 days) but always at night between around 03:30. The rest of the time the system works without…

---

## [Unable to call the node red flow with a parameter](https://discourse.nodered.org/t/unable-to-call-the-node-red-flow-with-a-parameter/86338)

<div class="topic-metadata">

**Author:** [@Varun932](https://discourse.nodered.org/u/Varun932)\
**Replies:** 0\
**Last updated:** [11 March 2024 15:34 UTC](https://discourse.nodered.org/t/unable-to-call-the-node-red-flow-with-a-parameter/86338 "2024-03-11T15:34:44Z")

</div>

Hello All, I am trying send a value to a node red flow which send an email using ChatGPT. The Parameter need to be in the subject line so that the solution becomes a generic solution. JSON Code: \[ { "id": …

---

## [Trying to call nodejs from the exec node](https://discourse.nodered.org/t/trying-to-call-nodejs-from-the-exec-node/86209)

<div class="topic-metadata">

**Author:** [@Den](https://discourse.nodered.org/u/Den)\
**Replies:** 7\
**Last updated:** [11 March 2024 15:19 UTC](https://discourse.nodered.org/t/trying-to-call-nodejs-from-the-exec-node/86209 "2024-03-11T15:19:15Z")

</div>

I have a script that is created using nodejs. There are 2 modules being called pdf-merger-js and pdf-page-counter. The script simple read the PDF and give me a page count. If the count is odd it add a blank page. impo…

---

## [Moving the flows.json file or settings.json](https://discourse.nodered.org/t/moving-the-flows-json-file-or-settings-json/86207)

<div class="topic-metadata">

**Author:** [@rFond](https://discourse.nodered.org/u/rFond)\
**Replies:** 3\
**Last updated:** [11 March 2024 13:51 UTC](https://discourse.nodered.org/t/moving-the-flows-json-file-or-settings-json/86207 "2024-03-11T13:51:57Z")

</div>

Hello everyone, I would like to separate the flows.js file from the settings.js file into a folder, for example /data/save/flows.json or /data/save/settings.json. Is it possible? The goal is to back up the "save" folde…

---

## [HTTP POST special characters](https://discourse.nodered.org/t/http-post-special-characters/86232)

<div class="topic-metadata">

**Author:** [@carlos-conde](https://discourse.nodered.org/u/carlos-conde)\
**Replies:** 8\
**Last updated:** [11 March 2024 12:05 UTC](https://discourse.nodered.org/t/http-post-special-characters/86232 "2024-03-11T12:05:27Z")

</div>

Hello everyone. I'm trying to make a POST request with an "http request" node, where the body is a JSON containing text with accents. If I make a POST request with the body (without accents): { "field\_0": "GARCIA…

---

## [How to increase the timeout time of http-request node](https://discourse.nodered.org/t/how-to-increase-the-timeout-time-of-http-request-node/84716)

<div class="topic-metadata">

**Author:** [@77raimanish](https://discourse.nodered.org/u/77raimanish)\
**Replies:** 14\
**Last updated:** [11 March 2024 10:34 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-time-of-http-request-node/84716 "2024-03-11T10:34:33Z")

</div>

I am using the rdap api to get information using http-request node example: https://rdap.org/ip/192.168.1.199 it gives error timedout whereas when I use the same API in the browser it gives a proper JSON response can you…

---

## [Http request node problem](https://discourse.nodered.org/t/http-request-node-problem/86329)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 2\
**Last updated:** [11 March 2024 09:21 UTC](https://discourse.nodered.org/t/http-request-node-problem/86329 "2024-03-11T09:21:58Z")

</div>

Hi, I try to explain and I understand that isn't easy but I would like to find a solution. I had already written a post, but the problem is always present... I have a reolink cam and every 30 min I send with http node …

---

## [Oauth2 adminAuth via dockercompose envvars](https://discourse.nodered.org/t/oauth2-adminauth-via-dockercompose-envvars/86330)

<div class="topic-metadata">

**Author:** [@Con1924](https://discourse.nodered.org/u/Con1924)\
**Replies:** 0\
**Last updated:** [11 March 2024 09:20 UTC](https://discourse.nodered.org/t/oauth2-adminauth-via-dockercompose-envvars/86330 "2024-03-11T09:20:26Z")

</div>

I am using the below in settings.js to configure my oauth2 login with authentik. Currently I have to: deploy nodered exec in install passport-openidconnect in /data/node\_modules modify the settings.js file Is it po…

---

## [Help with sensors to output to Home Assistant](https://discourse.nodered.org/t/help-with-sensors-to-output-to-home-assistant/86319)

<div class="topic-metadata">

**Author:** [@MarcoA](https://discourse.nodered.org/u/MarcoA)\
**Replies:** 0\
**Last updated:** [10 March 2024 21:58 UTC](https://discourse.nodered.org/t/help-with-sensors-to-output-to-home-assistant/86319 "2024-03-10T21:58:10Z")

</div>

I have the flow, almost, working... But no matter how, I can't seem to create those two sensors that would output to HA. Flow: \[{"id":"3a876ef8e2b7724c","type":"tab","label":"Football - TV Data","disabled":false,"info…

---

## [Template html & javascript , multiple instance](https://discourse.nodered.org/t/template-html-javascript-multiple-instance/86309)

<div class="topic-metadata">

**Author:** [@robertobuti](https://discourse.nodered.org/u/robertobuti)\
**Replies:** 1\
**Last updated:** [10 March 2024 15:15 UTC](https://discourse.nodered.org/t/template-html-javascript-multiple-instance/86309 "2024-03-10T15:15:54Z")

</div>

Hello, i have installed a template node with inside 7 checkbox (one for each day of the week) and some javascript code to manage checkbox , msg input and msg output. I know the code i write is extremely poor and from b…

---

## [Mqtt Publish only on changed data](https://discourse.nodered.org/t/mqtt-publish-only-on-changed-data/86295)

<div class="topic-metadata">

**Author:** [@damica51](https://discourse.nodered.org/u/damica51)\
**Replies:** 5\
**Last updated:** [10 March 2024 12:56 UTC](https://discourse.nodered.org/t/mqtt-publish-only-on-changed-data/86295 "2024-03-10T12:56:29Z")

</div>

I've been using node red to read data using an Api request and then publish that data using Mqtt Sparkplug B to my Data Server (every 3 minutes). I use an "Inject" node just setup to cycle every 3 minutes. However, I ha…

---

## [Failed Login when Trying to connect SQL and Node Red](https://discourse.nodered.org/t/failed-login-when-trying-to-connect-sql-and-node-red/86307)

<div class="topic-metadata">

**Author:** [@rilsaaip](https://discourse.nodered.org/u/rilsaaip)\
**Replies:** 6\
**Last updated:** [10 March 2024 09:24 UTC](https://discourse.nodered.org/t/failed-login-when-trying-to-connect-sql-and-node-red/86307 "2024-03-10T09:24:50Z")

</div>

So i tried to connect my node red and SQL. But it can't login with the current username and password. I checked and it is the correct username and password, i tried to make another username and it's still failed to login…

---

## [Help with splitting payload (to get the values for the time)](https://discourse.nodered.org/t/help-with-splitting-payload-to-get-the-values-for-the-time/86303)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [9 March 2024 23:32 UTC](https://discourse.nodered.org/t/help-with-splitting-payload-to-get-the-values-for-the-time/86303 "2024-03-09T23:32:08Z")

</div>

This is what I have so far but it doesn't work as I want. \[{"id":"943ee548ae140c50","type":"change","z":"235f16ee6e459f2c","name":"TimeStamp","rules":\[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}\],"action":…

---

## [Moment node replacement](https://discourse.nodered.org/t/moment-node-replacement/86291)

<div class="topic-metadata">

**Author:** [@SmokinSowbellies](https://discourse.nodered.org/u/SmokinSowbellies)\
**Replies:** 5\
**Last updated:** [9 March 2024 13:00 UTC](https://discourse.nodered.org/t/moment-node-replacement/86291 "2024-03-09T13:00:22Z")

</div>

I had a moment node to up my google home to cast a weather function I built. The moment node would give me today's date in the format of "Friday March the 8th" and the names of the next 5 days for the forecast. I updated…

---

## [Newbie question / Work Flow](https://discourse.nodered.org/t/newbie-question-work-flow/86254)

<div class="topic-metadata">

**Author:** [@Homerjsimpson137](https://discourse.nodered.org/u/Homerjsimpson137)\
**Replies:** 14\
**Last updated:** [9 March 2024 03:20 UTC](https://discourse.nodered.org/t/newbie-question-work-flow/86254 "2024-03-09T03:20:41Z")

</div>

Hi all, Im just trying to learn Node-Red here and having a hard time getting started. I am reading a bunch and will get there sooner or later but could use a little help on a simple workflow. I have a Bambu Lab X1C 3D …

---

## [Help with a function - time format "hh:mm" at the start of every array](https://discourse.nodered.org/t/help-with-a-function-time-format-hh-mm-at-the-start-of-every-array/86288)

<div class="topic-metadata">

**Author:** [@MarcoA](https://discourse.nodered.org/u/MarcoA)\
**Replies:** 1\
**Last updated:** [8 March 2024 22:05 UTC](https://discourse.nodered.org/t/help-with-a-function-time-format-hh-mm-at-the-start-of-every-array/86288 "2024-03-08T22:05:43Z")

</div>

Hey there, Hope someone can give me a hand. That function I have: let formattedOutput = \[\]; let tempArray = \[\]; let chunkSize = 4; // Each game has 4 elements (time, hometeam, awayteam, channel) for (let i = 0; i \< m…

---

## [Failing tests on master](https://discourse.nodered.org/t/failing-tests-on-master/86253)

<div class="topic-metadata">

**Author:** [@asr9](https://discourse.nodered.org/u/asr9)\
**Replies:** 3\
**Last updated:** [8 March 2024 20:39 UTC](https://discourse.nodered.org/t/failing-tests-on-master/86253 "2024-03-08T20:39:58Z")

</div>

Hi, So i just cloned master branch from github, and did npm install and npm test. I assumed they would pass, but they don't, and I can't figure out why. I don't have much experience with nodejs, hence looking for help. …

---

## [Do I have to run "PowerShell" and then start my Node Red Interface?](https://discourse.nodered.org/t/do-i-have-to-run-powershell-and-then-start-my-node-red-interface/86278)

<div class="topic-metadata">

**Author:** [@damica51](https://discourse.nodered.org/u/damica51)\
**Replies:** 2\
**Last updated:** [8 March 2024 19:43 UTC](https://discourse.nodered.org/t/do-i-have-to-run-powershell-and-then-start-my-node-red-interface/86278 "2024-03-08T19:43:49Z")

</div>

Or is there another option?

---

## [Checkbox & msg management in ui\_template](https://discourse.nodered.org/t/checkbox-msg-management-in-ui-template/86276)

<div class="topic-metadata">

**Author:** [@robertobuti](https://discourse.nodered.org/u/robertobuti)\
**Replies:** 2\
**Last updated:** [8 March 2024 16:13 UTC](https://discourse.nodered.org/t/checkbox-msg-management-in-ui-template/86276 "2024-03-08T16:13:44Z")

</div>

Hello, i would like manage 7 checkbox on dashboard, each one for any day of the week. A msg value with 1 bit for any checkbox is the input value to manage. Then a msg output with flag status will need to be manage, bu…

---

## [Moving Average Node returns NaN after some time](https://discourse.nodered.org/t/moving-average-node-returns-nan-after-some-time/86263)

<div class="topic-metadata">

**Author:** [@gasio](https://discourse.nodered.org/u/gasio)\
**Replies:** 5\
**Last updated:** [8 March 2024 15:57 UTC](https://discourse.nodered.org/t/moving-average-node-returns-nan-after-some-time/86263 "2024-03-08T15:57:36Z")

</div>

Hello, I want to plot soil moisture published on MQTT on a graph, which works well in Node Red. Unfortunately the sensor values seem to jump a round a bit in a short timeframe so I wanted actually use the moving average …

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

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