# General

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

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

**Page:** 893

---

## [File writing module, if there is an error on file it stops working after](https://discourse.nodered.org/t/file-writing-module-if-there-is-an-error-on-file-it-stops-working-after/10457)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 0\
**Last updated:** [23 April 2019 10:59 UTC](https://discourse.nodered.org/t/file-writing-module-if-there-is-an-error-on-file-it-stops-working-after/10457 "2019-04-23T10:59:33Z")

</div>

Hi, I'm trying to report (for example by email) a write failure error if there is an error writing the file on the SD, I' making some test and I noticed: Unless the "read file" module, that has the comfortable error le…

---

## [How to extract a value after splitting a JSON String in Node-RED](https://discourse.nodered.org/t/how-to-extract-a-value-after-splitting-a-json-string-in-node-red/10452)

<div class="topic-metadata">

**Author:** [@xoani](https://discourse.nodered.org/u/xoani)\
**Replies:** 5\
**Last updated:** [23 April 2019 10:42 UTC](https://discourse.nodered.org/t/how-to-extract-a-value-after-splitting-a-json-string-in-node-red/10452 "2019-04-23T10:42:16Z")

</div>

I am injecting a String into my flow, then making it into a JSON String with the JSON node and splitting it with the split node. I get 5 messages out of this split node because there are 5 values with 5 properties. What …

---

## [I can't recover the info in the js file](https://discourse.nodered.org/t/i-cant-recover-the-info-in-the-js-file/9930)

<div class="topic-metadata">

**Author:** [@trujillo](https://discourse.nodered.org/u/trujillo)\
**Replies:** 4\
**Last updated:** [23 April 2019 09:58 UTC](https://discourse.nodered.org/t/i-cant-recover-the-info-in-the-js-file/9930 "2019-04-23T09:58:28Z")

</div>

Hi, I'm deploying a node with and array like a default property but when I try to deploy the node I can't access to the info in the js file (I have a empty array there). This is the definition: defaults:{ n…

---

## [Error with function](https://discourse.nodered.org/t/error-with-function/10448)

<div class="topic-metadata">

**Author:** [@ApiAsylum](https://discourse.nodered.org/u/ApiAsylum)\
**Replies:** 3\
**Last updated:** [23 April 2019 09:46 UTC](https://discourse.nodered.org/t/error-with-function/10448 "2019-04-23T09:46:05Z")

</div>

Can someone help to get this sorted out? msg.payload= { "body": { "roomId": "Y2lzY29zcGFyazovL3VzL1JPT00vMmEzYzRjMDAtNTliOC0xMWU5LWEzZjktNGRjNmI1MmU3MTE3", "text": Network Device Details: '\\n' Device 1: Host…

---

## [How to disconnect a websocket?](https://discourse.nodered.org/t/how-to-disconnect-a-websocket/10412)

<div class="topic-metadata">

**Author:** [@laowangnj](https://discourse.nodered.org/u/laowangnj)\
**Replies:** 3\
**Last updated:** [23 April 2019 09:24 UTC](https://discourse.nodered.org/t/how-to-disconnect-a-websocket/10412 "2019-04-23T09:24:32Z")

</div>

Some error occour in the flow, how to disconnect this websocket or release from OS.

---

## [Call to watson conversation service failed](https://discourse.nodered.org/t/call-to-watson-conversation-service-failed/10436)

<div class="topic-metadata">

**Author:** [@Lak3](https://discourse.nodered.org/u/Lak3)\
**Replies:** 3\
**Last updated:** [23 April 2019 06:23 UTC](https://discourse.nodered.org/t/call-to-watson-conversation-service-failed/10436 "2019-04-23T06:23:31Z")

</div>

Hi, I'm a newbie to node-red so please bear with me if I'm asking stupid questions. I'm creating a slackbot using watson assistant. In the process, I have to configure my assistant node with the credentials given in th…

---

## [Calling a function within a function](https://discourse.nodered.org/t/calling-a-function-within-a-function/10439)

<div class="topic-metadata">

**Author:** [@ftricamo](https://discourse.nodered.org/u/ftricamo)\
**Replies:** 6\
**Last updated:** [23 April 2019 00:56 UTC](https://discourse.nodered.org/t/calling-a-function-within-a-function/10439 "2019-04-23T00:56:19Z")

</div>

aside from bringing a msg into a function node and sending a msg out at the end of a function, how can i call a function from within a function? in the middle of my function i need to perform some numerical computes tha…

---

## [Global.get is losing select array data](https://discourse.nodered.org/t/global-get-is-losing-select-array-data/10429)

<div class="topic-metadata">

**Author:** [@jboutwell](https://discourse.nodered.org/u/jboutwell)\
**Replies:** 3\
**Last updated:** [22 April 2019 19:49 UTC](https://discourse.nodered.org/t/global-get-is-losing-select-array-data/10429 "2019-04-22T19:49:59Z")

</div>

I have a global context, that when I retrieve it with global.get, loses three integers from an array of 14 entries. I have created a global context over a number of nodes that stores a data for a process. The data is e…

---

## [Problem with syntax in function node for comparison](https://discourse.nodered.org/t/problem-with-syntax-in-function-node-for-comparison/10307)

<div class="topic-metadata">

**Author:** [@mike67](https://discourse.nodered.org/u/mike67)\
**Replies:** 6\
**Last updated:** [22 April 2019 12:38 UTC](https://discourse.nodered.org/t/problem-with-syntax-in-function-node-for-comparison/10307 "2019-04-22T12:38:53Z")

</div>

Once more, I think i have a priblem with my syntax. I want to compare to things :slight\_smile:The msg.payload sent previously by an Inject node (boolean true or false) and a global variable xNR\_I1 wich can have the valu…

---

## [SQL data and chart node](https://discourse.nodered.org/t/sql-data-and-chart-node/10427)

<div class="topic-metadata">

**Author:** [@ALOKA1432](https://discourse.nodered.org/u/ALOKA1432)\
**Replies:** 1\
**Last updated:** [22 April 2019 11:23 UTC](https://discourse.nodered.org/t/sql-data-and-chart-node/10427 "2019-04-22T11:23:31Z")

</div>

Hey guys, This is what i am getting after fetching the sensr data out of SQL database. All the data are coming OK, but the problem is that the lie on a single line as seen in the picture. The data must be discretely visi…

---

## [Recreate file after delete it](https://discourse.nodered.org/t/recreate-file-after-delete-it/10425)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 10\
**Last updated:** [22 April 2019 10:49 UTC](https://discourse.nodered.org/t/recreate-file-after-delete-it/10425 "2019-04-22T10:49:18Z")

</div>

My question might be silly, but, i was trying to recreate file after delete it with ops-delete node. I'am not sure is there a priority between nodes?? Because each time i deploy flow, it append new lines to the existing …

---

## [Send each item of array in a message payload separately](https://discourse.nodered.org/t/send-each-item-of-array-in-a-message-payload-separately/10414)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 5\
**Last updated:** [22 April 2019 08:34 UTC](https://discourse.nodered.org/t/send-each-item-of-array-in-a-message-payload-separately/10414 "2019-04-22T08:34:00Z")

</div>

I have an array msg.options =\[1,2,3,4,5\], and i want to send each item in msg.payload. i used this in function for( var i = 0; i \< msg.options.length; i++){ msg.payload = msg.options\[i\] return msg; } But it al…

---

## [I got problem to create a schedule task on windows 7 to run Node-Red on start](https://discourse.nodered.org/t/i-got-problem-to-create-a-schedule-task-on-windows-7-to-run-node-red-on-start/10149)

<div class="topic-metadata">

**Author:** [@jamesho](https://discourse.nodered.org/u/jamesho)\
**Replies:** 11\
**Last updated:** [22 April 2019 00:50 UTC](https://discourse.nodered.org/t/i-got-problem-to-create-a-schedule-task-on-windows-7-to-run-node-red-on-start/10149 "2019-04-22T00:50:32Z")

</div>

Hi, I tried to create a schedule task on windows start to run Node-Red. But I had error message said "There are currently no logon servers available to service the logon request." Therefore, the task were failed to start…

---

## [Writing a function to change the payload into a string with a different format](https://discourse.nodered.org/t/writing-a-function-to-change-the-payload-into-a-string-with-a-different-format/10407)

<div class="topic-metadata">

**Author:** [@juergens-nodered](https://discourse.nodered.org/u/juergens-nodered)\
**Replies:** 2\
**Last updated:** [21 April 2019 22:55 UTC](https://discourse.nodered.org/t/writing-a-function-to-change-the-payload-into-a-string-with-a-different-format/10407 "2019-04-21T22:55:55Z")

</div>

Hey, I do get pretty accurate MQTT data from my weather station via MQTT but need to format all this content into a string. That's where I am failing. i do have a payload looking like this: 21.4.2019, 22:37:55node: Ra…

---

## [Add delete button to dropdown options](https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 2\
**Last updated:** [21 April 2019 17:55 UTC](https://discourse.nodered.org/t/add-delete-button-to-dropdown-options/10400 "2019-04-21T17:55:07Z")

</div>

How can i add a delete button to md-option ? here's my flow. flows.json (1.1 KB)

---

## [Unable to update nodes](https://discourse.nodered.org/t/unable-to-update-nodes/10394)

<div class="topic-metadata">

**Author:** [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Replies:** 9\
**Last updated:** [21 April 2019 10:01 UTC](https://discourse.nodered.org/t/unable-to-update-nodes/10394 "2019-04-21T10:01:33Z")

</div>

I have updated Node-RED on one of my Pi's, and that worked nicely. But updating the nodes did not go that well. I first tried with Palette manager and got "Failed to update: node-red-contrib-fs-ops, Install failed, Check…

---

## [How to analyze data from Xiaomi gateway via xiaomi-mqtt bridge](https://discourse.nodered.org/t/how-to-analyze-data-from-xiaomi-gateway-via-xiaomi-mqtt-bridge/10391)

<div class="topic-metadata">

**Author:** [@markost](https://discourse.nodered.org/u/markost)\
**Replies:** 9\
**Last updated:** [21 April 2019 08:35 UTC](https://discourse.nodered.org/t/how-to-analyze-data-from-xiaomi-gateway-via-xiaomi-mqtt-bridge/10391 "2019-04-21T08:35:40Z")

</div>

Hi, today I managed to run Xiaomi Gateway with xiaomi-mqtt bridge. I use temperature / humidity / pressure sensor. The data I get comes for each value one after the other (for temperature, for humidity, for pressure),…

---

## [Join the json code from multiple flows into one file](https://discourse.nodered.org/t/join-the-json-code-from-multiple-flows-into-one-file/10361)

<div class="topic-metadata">

**Author:** [@cuxcrider](https://discourse.nodered.org/u/cuxcrider)\
**Replies:** 27\
**Last updated:** [21 April 2019 04:27 UTC](https://discourse.nodered.org/t/join-the-json-code-from-multiple-flows-into-one-file/10361 "2019-04-21T04:27:32Z")

</div>

I have a device with 8 channels I am controlling from Node-Red. I have setup 8 seperate flows called Ch1, Ch2, Ch3...Ch8. In those flows I named all my flow variables somethingCh1, somethingCh2, etc. I manually create…

---

## [Red node API with flow issue](https://discourse.nodered.org/t/red-node-api-with-flow-issue/10390)

<div class="topic-metadata">

**Author:** [@linhtranvu](https://discourse.nodered.org/u/linhtranvu)\
**Replies:** 2\
**Last updated:** [21 April 2019 02:42 UTC](https://discourse.nodered.org/t/red-node-api-with-flow-issue/10390 "2019-04-21T02:42:01Z")

</div>

I am testing red node API and flow function is not stable, sometime it works, some not. Let me explain For some flow, http://127.0.0.1:1880/flow/901cbcd3.2151d , this link work perfectly However, this node id "f7656a21…

---

## [Need help for creating OPCUA event Acknowledgement in Node-Red](https://discourse.nodered.org/t/need-help-for-creating-opcua-event-acknowledgement-in-node-red/5112)

<div class="topic-metadata">

**Author:** [@irmaheshwari96](https://discourse.nodered.org/u/irmaheshwari96)\
**Replies:** 1\
**Last updated:** [21 April 2019 00:02 UTC](https://discourse.nodered.org/t/need-help-for-creating-opcua-event-acknowledgement-in-node-red/5112 "2019-04-21T00:02:20Z")

</div>

I am working on a project with node-red-contrib-iiot-opcua nodes that needs to Acknowledge the events raised from the OPCUA Server tags/elements but I am not able to understand how to do it. So please anyone can help in…

---

## [Weird problem - unable to log in to Node-RED or use VNC or SSH](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383)

<div class="topic-metadata">

**Author:** [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Replies:** 12\
**Last updated:** [20 April 2019 20:23 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383 "2019-04-20T20:23:56Z")

</div>

This one's new for me. Today I suddenly was unable to log into one of my Pi's with VNC, which I always use for everything. I was going to take an image backup to have something current. But VNC didn't log in. So I tried …

---

## [WIKI Article on Analysing and improving Node-RED performance](https://discourse.nodered.org/t/wiki-article-on-analysing-and-improving-node-red-performance/10381)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 2\
**Last updated:** [20 April 2019 20:06 UTC](https://discourse.nodered.org/t/wiki-article-on-analysing-and-improving-node-red-performance/10381 "2019-04-20T20:06:06Z")

</div>

Hi all, as mentioned in the forum post Easy way to remove lag?, a new WIKI article has been created as a holding point for information regarding analysing the performance of Node-RED (both the server and front-end browse…

---

## [Find my Node Red Docker Container?](https://discourse.nodered.org/t/find-my-node-red-docker-container/10382)

<div class="topic-metadata">

**Author:** [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Replies:** 6\
**Last updated:** [20 April 2019 19:37 UTC](https://discourse.nodered.org/t/find-my-node-red-docker-container/10382 "2019-04-20T19:37:31Z")

</div>

Hi, I’m running Node Red as a Docker Container, on my QNAP NAS, however i can’t work out exactly where all the configuration files are (and having had multiple attempts there are loads of folders listed on the NAS) Is…

---

## [Update status of a pin](https://discourse.nodered.org/t/update-status-of-a-pin/10264)

<div class="topic-metadata">

**Author:** [@ftricamo](https://discourse.nodered.org/u/ftricamo)\
**Replies:** 1\
**Last updated:** [16 April 2019 21:12 UTC](https://discourse.nodered.org/t/update-status-of-a-pin/10264 "2019-04-16T21:12:08Z")

</div>

Using Raspberry pi i can use the Report By Exception node to 'only trigger on change of state'. Is there an opposite to that? How can i query the state of pins on demand? Since i can't trigger and output with an injec…

---

## [Serialport@6.2.2 install fail](https://discourse.nodered.org/t/serialport-6-2-2-install-fail/10368)

<div class="topic-metadata">

**Author:** [@Labhart](https://discourse.nodered.org/u/Labhart)\
**Replies:** 7\
**Last updated:** [20 April 2019 17:00 UTC](https://discourse.nodered.org/t/serialport-6-2-2-install-fail/10368 "2019-04-20T17:00:11Z")

</div>

Followed Node Red install instructions exactly for Win 10 OS, direct from Node Red.org. Attempting to install NCD zigbee device wireless gateway node and process fails at install for serialport@6.2.2. Suspect compile…

---

## [Delete msg payload](https://discourse.nodered.org/t/delete-msg-payload/10384)

<div class="topic-metadata">

**Author:** [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Replies:** 3\
**Last updated:** [20 April 2019 15:31 UTC](https://discourse.nodered.org/t/delete-msg-payload/10384 "2019-04-20T15:31:29Z")

</div>

Hi, I am using a KNX sensor, It sends values (msg.payload) every 30 min, but sometimes it sends 2 msg in this duration. So I want to delete the second msg payload if is the case. Have you an idea? Thank you for your h…

---

## [Timestamps under a node when activated seem to be stuck in GMT](https://discourse.nodered.org/t/timestamps-under-a-node-when-activated-seem-to-be-stuck-in-gmt/10374)

<div class="topic-metadata">

**Author:** [@simonk83](https://discourse.nodered.org/u/simonk83)\
**Replies:** 14\
**Last updated:** [20 April 2019 14:47 UTC](https://discourse.nodered.org/t/timestamps-under-a-node-when-activated-seem-to-be-stuck-in-gmt/10374 "2019-04-20T14:47:32Z")

</div>

I'm running the official docker in a VM, and have - /etc/localtime:/etc/localtime:ro set, but also added environment: - TZ=Australia/Melbourne just to try and rule that out (didn't help). I also run HassIO on another VM …

---

## [Easy way to remove lag?](https://discourse.nodered.org/t/easy-way-to-remove-lag/10025)

<div class="topic-metadata">

**Author:** [@IvarMvl](https://discourse.nodered.org/u/IvarMvl)\
**Replies:** 30\
**Last updated:** [20 April 2019 10:16 UTC](https://discourse.nodered.org/t/easy-way-to-remove-lag/10025 "2019-04-20T10:16:19Z")

</div>

so im runninjg node red on raspberry pi 3+b and have around 400 nodes the program is lagging more and more is the a easy fix or way to run better thanks in andvance Ivar

---

## [MQTT SOM/EOM message formats. Problems](https://discourse.nodered.org/t/mqtt-som-eom-message-formats-problems/10215)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 61\
**Last updated:** [20 April 2019 12:58 UTC](https://discourse.nodered.org/t/mqtt-som-eom-message-formats-problems/10215 "2019-04-20T12:58:50Z")

</div>

"Originally" I had a bit of flow that looked at MQTT messages when devices connect to the WiFi network. This is what I get: {"topic":"STATUS/WIFIDEVICEID","payload":"{\\"WIFI\_DEVICE\\":\\"GPS\\",\\"IP\_Address\\":\\"192.168.1.…

---

## [& operators into if instrucion](https://discourse.nodered.org/t/operators-into-if-instrucion/10171)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 11\
**Last updated:** [20 April 2019 12:51 UTC](https://discourse.nodered.org/t/operators-into-if-instrucion/10171 "2019-04-20T12:51:43Z")

</div>

Hi mates, after a couple of hours I figured out what didn't work. For me it's something illogic, and I'm afraid to loose in future more time on something similar: Supposing we have a byte IO1\_B, the result of the read o…

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

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