# General

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

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

**Page:** 631

---

## [How to change the order of CSV values written to a file](https://discourse.nodered.org/t/how-to-change-the-order-of-csv-values-written-to-a-file/38286)

<div class="topic-metadata">

**Author:** [@cope](https://discourse.nodered.org/u/cope)\
**Replies:** 4\
**Last updated:** [30 December 2020 14:57 UTC](https://discourse.nodered.org/t/how-to-change-the-order-of-csv-values-written-to-a-file/38286 "2020-12-30T14:57:11Z")

</div>

I am using NodeRed with HomeSeer. In NodeRed I read two devices of a rainmeter, the daily and cumulative precipitation. In NodeRed I generate a timestamp and once a day I write the three values to a file. Now I would li…

---

## [How to use functions of external javascript](https://discourse.nodered.org/t/how-to-use-functions-of-external-javascript/38193)

<div class="topic-metadata">

**Author:** [@gschmidt](https://discourse.nodered.org/u/gschmidt)\
**Replies:** 3\
**Last updated:** [30 December 2020 14:13 UTC](https://discourse.nodered.org/t/how-to-use-functions-of-external-javascript/38193 "2020-12-30T14:13:34Z")

</div>

I have installed (on the same server as node-red) an npm based JavaScript of the setopbox I use: The files are installed in /home/pi/Ziggo/NextRemoteJs How can I include this JavaScript (index.js) and library in my no…

---

## [How to recieve room name from mqtt topic?](https://discourse.nodered.org/t/how-to-recieve-room-name-from-mqtt-topic/38263)

<div class="topic-metadata">

**Author:** [@bodagrave](https://discourse.nodered.org/u/bodagrave)\
**Replies:** 6\
**Last updated:** [30 December 2020 12:26 UTC](https://discourse.nodered.org/t/how-to-recieve-room-name-from-mqtt-topic/38263 "2020-12-30T12:26:12Z")

</div>

Hi all! I'm pretty new to node red, so pardon me if this question was answered before. I didn't find a solution though. I want to get a message in telegram, when in a room the temperature drops or rises beyond a specif…

---

## [ILD file to Json](https://discourse.nodered.org/t/ild-file-to-json/38272)

<div class="topic-metadata">

**Author:** [@Schotte2360](https://discourse.nodered.org/u/Schotte2360)\
**Replies:** 4\
**Last updated:** [30 December 2020 12:06 UTC](https://discourse.nodered.org/t/ild-file-to-json/38272 "2020-12-30T12:06:54Z")

</div>

I am designing an RGB LASER system controlled with an RPI 3B + and Node-Red. On the internet I found 'https://github.com/possan/ilda.js/tree/master' Can someone help me further? This is in the function node: var fi…

---

## [nodered is cut in time](https://discourse.nodered.org/t/nodered-is-cut-in-time/37756)

<div class="topic-metadata">

**Author:** [@yoda](https://discourse.nodered.org/u/yoda)\
**Replies:** 9\
**Last updated:** [30 December 2020 11:14 UTC](https://discourse.nodered.org/t/nodered-is-cut-in-time/37756 "2020-12-30T11:14:15Z")

</div>

hello, this is my first question on your forum. I am new to nodered. I installed nodered on a contener, to do my home assistant automation. The automations run for a few hours, then nothing works. I have to do deploy aga…

---

## [File comparison](https://discourse.nodered.org/t/file-comparison/38232)

<div class="topic-metadata">

**Author:** [@bigmac5753](https://discourse.nodered.org/u/bigmac5753)\
**Replies:** 2\
**Last updated:** [30 December 2020 10:16 UTC](https://discourse.nodered.org/t/file-comparison/38232 "2020-12-30T10:16:11Z")

</div>

I have 2 text files that I want to periodically compare. The first file consists of a single word per line - think of this as the master file as it will never change. The second file also consists of a single word per …

---

## [HTTP response autorefresh?](https://discourse.nodered.org/t/http-response-autorefresh/38247)

<div class="topic-metadata">

**Author:** [@nicedevil](https://discourse.nodered.org/u/nicedevil)\
**Replies:** 5\
**Last updated:** [30 December 2020 09:47 UTC](https://discourse.nodered.org/t/http-response-autorefresh/38247 "2020-12-30T09:47:00Z")

</div>

Hey guys, I'm about to create a small webpage for my 3D printer in node-red. Right now it is looking like this: It is just a test right now and I'm struggling with the part where the temps/progress would be automati…

---

## [Triggering OctoPrint using Node-RED](https://discourse.nodered.org/t/triggering-octoprint-using-node-red/38265)

<div class="topic-metadata">

**Author:** [@devittobk](https://discourse.nodered.org/u/devittobk)\
**Replies:** 1\
**Last updated:** [30 December 2020 09:00 UTC](https://discourse.nodered.org/t/triggering-octoprint-using-node-red/38265 "2020-12-30T09:00:03Z")

</div>

Hi, I have a plan on building a 3D Printing Farm, using an ERP software, OctoPrint and Node-RED. Is it possible to use Node-RED to trigger/click the 'Start Print' button on OctoPrint? I was thinking of using the 'http…

---

## [I need help to find closest match from DB](https://discourse.nodered.org/t/i-need-help-to-find-closest-match-from-db/38176)

<div class="topic-metadata">

**Author:** [@ajbuk21](https://discourse.nodered.org/u/ajbuk21)\
**Replies:** 29\
**Last updated:** [30 December 2020 08:47 UTC](https://discourse.nodered.org/t/i-need-help-to-find-closest-match-from-db/38176 "2020-12-30T08:47:33Z")

</div>

hi evryone, i have been tiring for a few days now to create a flow that will use a light sensor to check a color and i need it too find closest color match to none samples stored in mysql so fare i have most of it work…

---

## [Global JSON variable](https://discourse.nodered.org/t/global-json-variable/36084)

<div class="topic-metadata">

**Author:** [@lolimpol](https://discourse.nodered.org/u/lolimpol)\
**Replies:** 7\
**Last updated:** [30 December 2020 01:36 UTC](https://discourse.nodered.org/t/global-json-variable/36084 "2020-12-30T01:36:51Z")

</div>

Hi, I'm pretty new to Node-red, I've been using it for about 2 years, but only to set things up. Im doing a mayor overhaull on my MQTT based smarthome, which has lights with many ways of controlling them, and I want my d…

---

## [Referrencing msg.payload in JSON](https://discourse.nodered.org/t/referrencing-msg-payload-in-json/986)

<div class="topic-metadata">

**Author:** [@liambroughton500](https://discourse.nodered.org/u/liambroughton500)\
**Replies:** 31\
**Last updated:** [30 December 2020 01:28 UTC](https://discourse.nodered.org/t/referrencing-msg-payload-in-json/986 "2020-12-30T01:28:28Z")

</div>

Hi all, I have been trying to send text messages through Node-RED, I know there are numerous ways to do this, but the way I have settled on at the moment is using Click Send. I have followed the example on the tutorial,…

---

## [How to implement a sensor enable/disable node?](https://discourse.nodered.org/t/how-to-implement-a-sensor-enable-disable-node/38228)

<div class="topic-metadata">

**Author:** [@jabss](https://discourse.nodered.org/u/jabss)\
**Replies:** 4\
**Last updated:** [29 December 2020 23:28 UTC](https://discourse.nodered.org/t/how-to-implement-a-sensor-enable-disable-node/38228 "2020-12-29T23:28:02Z")

</div>

Hi, I admit I'm not 100% aware of node red concepts, and I've been struggling in the last few days to have some basic flows working. At the moment I have a sonoff PIR connected to zigbee2MQTT --\> MQTT --\> NodeRed --\> I…

---

## [Explicit userMenu theme property](https://discourse.nodered.org/t/explicit-usermenu-theme-property/38196)

<div class="topic-metadata">

**Author:** [@tfmf](https://discourse.nodered.org/u/tfmf)\
**Replies:** 2\
**Last updated:** [29 December 2020 22:11 UTC](https://discourse.nodered.org/t/explicit-usermenu-theme-property/38196 "2020-12-29T22:11:53Z")

</div>

Hi all, I have been testing the theme editor by following this article, and one thing I noticed is once you set the userMenu in in the editorTheme section you can't explicit set true. By taking a look into the code, it …

---

## [Subflow Question](https://discourse.nodered.org/t/subflow-question/38242)

<div class="topic-metadata">

**Author:** [@tvan0076](https://discourse.nodered.org/u/tvan0076)\
**Replies:** 2\
**Last updated:** [29 December 2020 21:43 UTC](https://discourse.nodered.org/t/subflow-question/38242 "2020-12-29T21:43:22Z")

</div>

I am building many subflows to share with other flows in Node-Red. What will happen if 2 or more flows call the same subflow at almost the same time? Will the flow data stay separate from the other flows calling the su…

---

## [System $ environmental variables empty result](https://discourse.nodered.org/t/system-environmental-variables-empty-result/38212)

<div class="topic-metadata">

**Author:** [@coen17st](https://discourse.nodered.org/u/coen17st)\
**Replies:** 10\
**Last updated:** [29 December 2020 21:04 UTC](https://discourse.nodered.org/t/system-environmental-variables-empty-result/38212 "2020-12-29T21:04:26Z")

</div>

Hi, i am running Node-RED on Ubuntu. In a bash script i export a variable like this: export TEST=TEST or export TEST=TEST \>\> ~/.bashrc when i typ printenv in de commandline i can see the variable is set JOURNAL\_STRE…

---

## [Http Request not responding correctly](https://discourse.nodered.org/t/http-request-not-responding-correctly/38199)

<div class="topic-metadata">

**Author:** [@Oymyakon](https://discourse.nodered.org/u/Oymyakon)\
**Replies:** 4\
**Last updated:** [29 December 2020 20:31 UTC](https://discourse.nodered.org/t/http-request-not-responding-correctly/38199 "2020-12-29T20:31:10Z")

</div>

Hi, i am new to Node red but i am having trouble getting a HTTP request to work. I am trying to access the river level from the government web site. It looks like the response from the web page is being truncated. any …

---

## [Why is the time in the NR log not local time?](https://discourse.nodered.org/t/why-is-the-time-in-the-nr-log-not-local-time/4162)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 34\
**Last updated:** [29 December 2020 18:10 UTC](https://discourse.nodered.org/t/why-is-the-time-in-the-nr-log-not-local-time/4162 "2020-12-29T18:10:41Z")

</div>

OSX: 10.13.6 When I start NR I notice that the time in the log looks to be UTC and not my local time. Is there a way to change it to show local time? Here is a example: Pauls-mini:~ Paul$ date Sun Oct 21 06:38:35 EDT …

---

## [Need help thinking about my project](https://discourse.nodered.org/t/need-help-thinking-about-my-project/38203)

<div class="topic-metadata">

**Author:** [@brendonhatcher](https://discourse.nodered.org/u/brendonhatcher)\
**Replies:** 6\
**Last updated:** [29 December 2020 17:43 UTC](https://discourse.nodered.org/t/need-help-thinking-about-my-project/38203 "2020-12-29T17:43:58Z")

</div>

Hi I am quite new to Node-RED. I am a Code Club volunteer, with an interest in Making and Computational Thinking. I am working on a project to introduce Node-RED to Code Club audiences (9 - 13 years old). I have crea…

---

## [Convert Text to hex](https://discourse.nodered.org/t/convert-text-to-hex/38214)

<div class="topic-metadata">

**Author:** [@Mattia.88](https://discourse.nodered.org/u/Mattia.88)\
**Replies:** 4\
**Last updated:** [29 December 2020 17:06 UTC](https://discourse.nodered.org/t/convert-text-to-hex/38214 "2020-12-29T17:06:15Z")

</div>

Hi, I must convert a text to hex. I wrote this: var art = 'A'; var arr = ; arr\[0\] =art.toString(16); but the result is always "A". Is correct this sintax? thanks

---

## [Custom Authentication And Replacing Application Tokens](https://discourse.nodered.org/t/custom-authentication-and-replacing-application-tokens/37508)

<div class="topic-metadata">

**Author:** [@shaounak](https://discourse.nodered.org/u/shaounak)\
**Replies:** 8\
**Last updated:** [29 December 2020 16:37 UTC](https://discourse.nodered.org/t/custom-authentication-and-replacing-application-tokens/37508 "2020-12-29T16:37:47Z")

</div>

We are using node-red as our job orchestration tool. We want to perform the custom authentication to API and reuse the JWT tokens generated after the API authentication in the node-red front end to perform some API calls…

---

## [Electron with node red existing project errors](https://discourse.nodered.org/t/electron-with-node-red-existing-project-errors/38093)

<div class="topic-metadata">

**Author:** [@Verina](https://discourse.nodered.org/u/Verina)\
**Replies:** 8\
**Last updated:** [29 December 2020 16:33 UTC](https://discourse.nodered.org/t/electron-with-node-red-existing-project-errors/38093 "2020-12-29T16:33:30Z")

</div>

I'm trying to wrap a project(with uibuilder) with electron. I managed to get it as desktop app with my first page runing, but it threw some errors. Some were about the locations of script files, I tried to solve those …

---

## [Payload Object read out](https://discourse.nodered.org/t/payload-object-read-out/38211)

<div class="topic-metadata">

**Author:** [@luci812](https://discourse.nodered.org/u/luci812)\
**Replies:** 4\
**Last updated:** [29 December 2020 16:29 UTC](https://discourse.nodered.org/t/payload-object-read-out/38211 "2020-12-29T16:29:54Z")

</div>

Hi there I'm new here and also new to NodeRed. I have a question and you can help me to read out the following data: I would like to read out the individual data here in order to then display them. Unfortunately, I…

---

## [Get item from Array dynamically](https://discourse.nodered.org/t/get-item-from-array-dynamically/38195)

<div class="topic-metadata">

**Author:** [@MarcoVg](https://discourse.nodered.org/u/MarcoVg)\
**Replies:** 7\
**Last updated:** [29 December 2020 15:20 UTC](https://discourse.nodered.org/t/get-item-from-array-dynamically/38195 "2020-12-29T15:20:28Z")

</div>

Hello, I nedd to read from an array of object the row that in my example is (20). I would like to select the row with an external numeric variable from 0 to 237. Thanks for the help,

---

## [How to solve space in linux path](https://discourse.nodered.org/t/how-to-solve-space-in-linux-path/37946)

<div class="topic-metadata">

**Author:** [@coen17st](https://discourse.nodered.org/u/coen17st)\
**Replies:** 12\
**Last updated:** [29 December 2020 14:37 UTC](https://discourse.nodered.org/t/how-to-solve-space-in-linux-path/37946 "2020-12-29T14:37:01Z")

</div>

Hi, ik want to execute a rsync command but it doesn't work because there is a space in the path. this is source path /media/mediacenter/CANON XF2 this is the command. i have put this line in a template node rsync -vrh…

---

## [How does Node-RED compare to n8n.io?](https://discourse.nodered.org/t/how-does-node-red-compare-to-n8n-io/37297)

<div class="topic-metadata">

**Author:** [@abitrolly](https://discourse.nodered.org/u/abitrolly)\
**Replies:** 8\
**Last updated:** [29 December 2020 11:40 UTC](https://discourse.nodered.org/t/how-does-node-red-compare-to-n8n-io/37297 "2020-12-29T11:40:55Z")

</div>

I am a bit familiar with node graph editors for graphics and design, but have a little experience with such tools for automation. I found Node-RED and n8n that seem to be designed for this purpose and share a lot in comm…

---

## [Extract URL from email](https://discourse.nodered.org/t/extract-url-from-email/38129)

<div class="topic-metadata">

**Author:** [@bigmac5753](https://discourse.nodered.org/u/bigmac5753)\
**Replies:** 8\
**Last updated:** [29 December 2020 10:34 UTC](https://discourse.nodered.org/t/extract-url-from-email/38129 "2020-12-29T10:34:57Z")

</div>

i'm using node-red-node-email to read email. What I want is to extract a URL from the email body, and send only that onwards, how can I do this?

---

## [Read an array of object](https://discourse.nodered.org/t/read-an-array-of-object/5978)

<div class="topic-metadata">

**Author:** [@Flixm](https://discourse.nodered.org/u/Flixm)\
**Replies:** 4\
**Last updated:** [29 December 2020 09:30 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978 "2020-12-29T09:30:38Z")

</div>

hi, i´m searchin for a solution to read this array of objects. It is the status of the Siemens Logo8 Outputs which is controlled from LogoControl. There i can use request when a output had changed the status. I want…

---

## [Modbus status undefined?](https://discourse.nodered.org/t/modbus-status-undefined/38165)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 1\
**Last updated:** [28 December 2020 22:43 UTC](https://discourse.nodered.org/t/modbus-status-undefined/38165 "2020-12-28T22:43:57Z")

</div>

I have a node red project that involves reading modbus TCP and placing values onto the dashboard. I can take up to 8 devices. I would like node red to pickup whether certain connections are made or not, so I can hide c…

---

## [Deployment of flow now takes a long time](https://discourse.nodered.org/t/deployment-of-flow-now-takes-a-long-time/37902)

<div class="topic-metadata">

**Author:** [@p\_1760](https://discourse.nodered.org/u/p_1760)\
**Replies:** 8\
**Last updated:** [29 December 2020 00:03 UTC](https://discourse.nodered.org/t/deployment-of-flow-now-takes-a-long-time/37902 "2020-12-29T00:03:12Z")

</div>

Hi, I am developing a project by using node-red. But today I encountered the issue that deployment of flow is too long unlike other days including yesterday. I tried set trace level log of seetings.js and deploy only m…

---

## [Help with structure of code. (Javascript)](https://discourse.nodered.org/t/help-with-structure-of-code-javascript/38021)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [28 December 2020 23:40 UTC](https://discourse.nodered.org/t/help-with-structure-of-code-javascript/38021 "2020-12-28T23:40:48Z")

</div>

I don't want the answer given to me. Though I accept I am doing it the wrong way (maybe long would be a better word) I want to go through the motions and hope this helps me understand better what it is I am wanting to …

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

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