# General

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

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

**Page:** 856

---

## [TypeError: Cannot read property 'replace' of undefined](https://discourse.nodered.org/t/typeerror-cannot-read-property-replace-of-undefined/14632)

<div class="topic-metadata">

**Author:** [@stud](https://discourse.nodered.org/u/stud)\
**Replies:** 2\
**Last updated:** [22 August 2019 09:04 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-replace-of-undefined/14632 "2019-08-22T09:04:53Z")

</div>

Hi, I have a problem with my function node. first of all, I have an array and I want to replace the points into commas and parse String into numbers. But it always says that the 'replace' is undefined. Why? can somebod…

---

## [How to save your flows](https://discourse.nodered.org/t/how-to-save-your-flows/14620)

<div class="topic-metadata">

**Author:** [@Johannes](https://discourse.nodered.org/u/Johannes)\
**Replies:** 7\
**Last updated:** [22 August 2019 08:28 UTC](https://discourse.nodered.org/t/how-to-save-your-flows/14620 "2019-08-22T08:28:03Z")

</div>

Hi, beginner to Node red , running on a Rasbian ,made som flows , and re bootet the rapberry pi. Can not find them , are the not autosaved? anybody knows the default folder for made flows? Thx in advance :slight\_smile…

---

## [How to expose a Node-red server online (keeping the server running at the device)?](https://discourse.nodered.org/t/how-to-expose-a-node-red-server-online-keeping-the-server-running-at-the-device/14522)

<div class="topic-metadata">

**Author:** [@AttylaLino](https://discourse.nodered.org/u/AttylaLino)\
**Replies:** 7\
**Last updated:** [22 August 2019 08:16 UTC](https://discourse.nodered.org/t/how-to-expose-a-node-red-server-online-keeping-the-server-running-at-the-device/14522 "2019-08-22T08:16:14Z")

</div>

I need to expose a Node-red server running at localhost at the port 1880 to the internet. However, according to the product requirement, it must be done with a "plug and play" feeling, which means, no ddns or further net…

---

## [Help parsing nested JSON data](https://discourse.nodered.org/t/help-parsing-nested-json-data/14586)

<div class="topic-metadata">

**Author:** [@lineal](https://discourse.nodered.org/u/lineal)\
**Replies:** 7\
**Last updated:** [22 August 2019 06:50 UTC](https://discourse.nodered.org/t/help-parsing-nested-json-data/14586 "2019-08-22T06:50:29Z")

</div>

Hi, I intend to monitor data from a PLC in the form of a bar graph. I am able to get the JSON data, but I'm new to node red and I'm having trouble extracting data from JSON in msg.payload. My JSON looks something like …

---

## [Trigger button on custom node](https://discourse.nodered.org/t/trigger-button-on-custom-node/14625)

<div class="topic-metadata">

**Author:** [@limengsong](https://discourse.nodered.org/u/limengsong)\
**Replies:** 2\
**Last updated:** [22 August 2019 06:46 UTC](https://discourse.nodered.org/t/trigger-button-on-custom-node/14625 "2019-08-22T06:46:07Z")

</div>

hi~ I want to make a custom node, like the inject node, with a button for data injection. However, I found that the inject node injection cannot be in the sub-process and will prompt an warning. I would like to ask ho…

---

## [SQLite insert problem](https://discourse.nodered.org/t/sqlite-insert-problem/14574)

<div class="topic-metadata">

**Author:** [@goncastorena](https://discourse.nodered.org/u/goncastorena)\
**Replies:** 9\
**Last updated:** [22 August 2019 02:26 UTC](https://discourse.nodered.org/t/sqlite-insert-problem/14574 "2019-08-22T02:26:49Z")

</div>

Hello 'Im having a problem when I want to insert a variable in my data base, the variable is an flow variable that I took from a drop down list. when call it it says that is a char type variable but at the moment of ins…

---

## [Odd status text from e-mail and mqtt nodes](https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 2\
**Last updated:** [21 August 2019 23:04 UTC](https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622 "2019-08-21T23:04:20Z")

</div>

I have been re-factoring some of my flows to make better use of node status messages and have run into a few quirks and possible bugs. I will try to post about them over the next few days. Here is the first. 19 Aug 19:…

---

## [A way to know If a File Exist](https://discourse.nodered.org/t/a-way-to-know-if-a-file-exist/14553)

<div class="topic-metadata">

**Author:** [@barabba](https://discourse.nodered.org/u/barabba)\
**Replies:** 2\
**Last updated:** [21 August 2019 21:28 UTC](https://discourse.nodered.org/t/a-way-to-know-if-a-file-exist/14553 "2019-08-21T21:28:35Z")

</div>

Hi all I'm working with Node-Red version v0.18.1 on Raspian version 9. I would to know if there is a way to know if a file exist ad put the result in a Switch. thanks in advance

---

## [Stdout to http response as JSON](https://discourse.nodered.org/t/stdout-to-http-response-as-json/14566)

<div class="topic-metadata">

**Author:** [@zhouxf53](https://discourse.nodered.org/u/zhouxf53)\
**Replies:** 6\
**Last updated:** [21 August 2019 20:38 UTC](https://discourse.nodered.org/t/stdout-to-http-response-as-json/14566 "2019-08-21T20:38:52Z")

</div>

Hi all, Right now, I'm creating a REST API with node-red which took an HTTP in as the input, process the HTTP get parameters with python using exec, and try to send the response with JSON format. In exec node, the outp…

---

## [Content of a json payload gives an error](https://discourse.nodered.org/t/content-of-a-json-payload-gives-an-error/14583)

<div class="topic-metadata">

**Author:** [@pvanklink](https://discourse.nodered.org/u/pvanklink)\
**Replies:** 10\
**Last updated:** [21 August 2019 18:22 UTC](https://discourse.nodered.org/t/content-of-a-json-payload-gives-an-error/14583 "2019-08-21T18:22:49Z")

</div>

i have a injector node with json payload content: {"command": "setuservariable", "idx": 13, "value": "x"} and a mqtt node that all works ok. But instead of "value": "x" i want to push an json-set instead of x, like t…

---

## [Access config node functions?](https://discourse.nodered.org/t/access-config-node-functions/14601)

<div class="topic-metadata">

**Author:** [@bobbyB](https://discourse.nodered.org/u/bobbyB)\
**Replies:** 1\
**Last updated:** [21 August 2019 15:54 UTC](https://discourse.nodered.org/t/access-config-node-functions/14601 "2019-08-21T15:54:39Z")

</div>

Hello there. Is it possible to call a config node function from inside of my custom node? Thanks in advance

---

## [Load webpage on trigger](https://discourse.nodered.org/t/load-webpage-on-trigger/14606)

<div class="topic-metadata">

**Author:** [@rackabajsarn](https://discourse.nodered.org/u/rackabajsarn)\
**Replies:** 1\
**Last updated:** [21 August 2019 15:29 UTC](https://discourse.nodered.org/t/load-webpage-on-trigger/14606 "2019-08-21T15:29:27Z")

</div>

Hi, I'm building a web page that will show information about an article that is being handled in an industrial application. My thought is to catch when a new article is scanned at the station, and send an URL to a brows…

---

## [HOW TO READ DATA FROM Panasonic PLC to Node-Red](https://discourse.nodered.org/t/how-to-read-data-from-panasonic-plc-to-node-red/14515)

<div class="topic-metadata">

**Author:** [@seamy](https://discourse.nodered.org/u/seamy)\
**Replies:** 5\
**Last updated:** [21 August 2019 13:17 UTC](https://discourse.nodered.org/t/how-to-read-data-from-panasonic-plc-to-node-red/14515 "2019-08-21T13:17:33Z")

</div>

Hello world, i wanna ask how to read data from plc to node red. i used the RS485 usb converter to connect it to Raspberry Pi. And i just install the modbus rtu palette for its communication but, how to read all data from…

---

## [Template Node (array integration)](https://discourse.nodered.org/t/template-node-array-integration/14580)

<div class="topic-metadata">

**Author:** [@blade2021](https://discourse.nodered.org/u/blade2021)\
**Replies:** 4\
**Last updated:** [21 August 2019 13:10 UTC](https://discourse.nodered.org/t/template-node-array-integration/14580 "2019-08-21T13:10:27Z")

</div>

Hi all, Having trouble grabbing values from an array using the template node. I did some skimming on google but didn't find a real clear answer. Seen a bunch of "Attach it to a debug node and look for the results..." …

---

## [DELAY node - variable delay not seeming to work](https://discourse.nodered.org/t/delay-node-variable-delay-not-seeming-to-work/14603)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 5\
**Last updated:** [21 August 2019 12:59 UTC](https://discourse.nodered.org/t/delay-node-variable-delay-not-seeming-to-work/14603 "2019-08-21T12:59:19Z")

</div>

I would like to check this: The delay node: delay number Sets the delay, in milliseconds, to be applied to the message. This option only applies if the node is configured to allow the message to override the configured…

---

## [Increase / Decrease](https://discourse.nodered.org/t/increase-decrease/14600)

<div class="topic-metadata">

**Author:** [@Rednig](https://discourse.nodered.org/u/Rednig)\
**Replies:** 2\
**Last updated:** [21 August 2019 12:24 UTC](https://discourse.nodered.org/t/increase-decrease/14600 "2019-08-21T12:24:09Z")

</div>

Hi, Im quite new to Node-Red but have begun my journey to learn more about it, atm. im have a device giving me the following input: msg.payload : Object object ts: 1566388338405 objects: array\[2\] 0: object frame: …

---

## [JSON array to MySQL](https://discourse.nodered.org/t/json-array-to-mysql/14597)

<div class="topic-metadata">

**Author:** [@hobojoe720](https://discourse.nodered.org/u/hobojoe720)\
**Replies:** 6\
**Last updated:** [21 August 2019 11:57 UTC](https://discourse.nodered.org/t/json-array-to-mysql/14597 "2019-08-21T11:57:55Z")

</div>

Hi guys, Been hunting the forums for an answer and cant find one so annoyingly I have to ask: I have a flow that pulls a list of results from an API. This works. It then cleans up the JSON to only include these fields …

---

## [Variable switching in flow not working as expected](https://discourse.nodered.org/t/variable-switching-in-flow-not-working-as-expected/14578)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [21 August 2019 10:51 UTC](https://discourse.nodered.org/t/variable-switching-in-flow-not-working-as-expected/14578 "2019-08-21T10:51:37Z")

</div>

(Second go at this.) I posted one but it wasn't good enough, so I worked on it to get it even better. But not perfect. Ok, thanks for all the help with my recent questions. Here is the flow as best I can make it. \*\*…

---

## [Uibuilder - extra vue enhancements](https://discourse.nodered.org/t/uibuilder-extra-vue-enhancements/14527)

<div class="topic-metadata">

**Author:** [@greenembrace](https://discourse.nodered.org/u/greenembrace)\
**Replies:** 19\
**Last updated:** [21 August 2019 10:45 UTC](https://discourse.nodered.org/t/uibuilder-extra-vue-enhancements/14527 "2019-08-21T10:45:56Z")

</div>

Hi i've installed the uibuilder node\_module and have the default page up and running. I have also extended it to several pages using bootstrap-vue nav bar and other enhancements. each page has its own js file. I would n…

---

## [Node Red charts on DashBoard](https://discourse.nodered.org/t/node-red-charts-on-dashboard/14577)

<div class="topic-metadata">

**Author:** [@wassa350](https://discourse.nodered.org/u/wassa350)\
**Replies:** 2\
**Last updated:** [21 August 2019 06:05 UTC](https://discourse.nodered.org/t/node-red-charts-on-dashboard/14577 "2019-08-21T06:05:59Z")

</div>

Hi All, I am running a chart on my dashboard which is representing the output of sensor via MQTT. It is all working well. My question to the forum is :- Is the data which is being plotted in the chart accessible on the…

---

## [Switch a message depending on another variable](https://discourse.nodered.org/t/switch-a-message-depending-on-another-variable/14548)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 14\
**Last updated:** [21 August 2019 01:18 UTC](https://discourse.nodered.org/t/switch-a-message-depending-on-another-variable/14548 "2019-08-21T01:18:46Z")

</div>

I am wanting to switch a message depending on another variable. Looking at the switch node, that seems beyond the scope of that node. Anyone got any ideas how to do that? Example: set flow.variable in another part of…

---

## [Array to object](https://discourse.nodered.org/t/array-to-object/14567)

<div class="topic-metadata">

**Author:** [@MarcW84](https://discourse.nodered.org/u/MarcW84)\
**Replies:** 2\
**Last updated:** [20 August 2019 21:30 UTC](https://discourse.nodered.org/t/array-to-object/14567 "2019-08-20T21:30:22Z")

</div>

Hi guys, I am very new to Node-Red and coding in general and trying to work with some values I receive from a node as an array as you see here: L-Hue3 Flur EG : msg.payload : array\[2\] array\[2\] 0: "100" 1: "2700" I …

---

## [Buffer to JSON Obj Problem](https://discourse.nodered.org/t/buffer-to-json-obj-problem/14546)

<div class="topic-metadata">

**Author:** [@Connicat](https://discourse.nodered.org/u/Connicat)\
**Replies:** 5\
**Last updated:** [20 August 2019 14:32 UTC](https://discourse.nodered.org/t/buffer-to-json-obj-problem/14546 "2019-08-20T14:32:05Z")

</div>

I have a TCPIP node that outputs as follows; If I use a function node to do msg.payload.toString() I get; But if I then use a JSON node I get this; Position 1444 in the buffer is this; Ive tried all sorts and…

---

## [Small issue - update?](https://discourse.nodered.org/t/small-issue-update/14534)

<div class="topic-metadata">

**Author:** [@mambui](https://discourse.nodered.org/u/mambui)\
**Replies:** 8\
**Last updated:** [20 August 2019 13:32 UTC](https://discourse.nodered.org/t/small-issue-update/14534 "2019-08-20T13:32:51Z")

</div>

Hello everyone, These last weeks I am experiencing some issues with my node red flows. I didn't have these issues previously. First, my node red version doesn't reconize some nodes that I used to use such as Email/exec…

---

## [Uibuilder: question how to build a switch](https://discourse.nodered.org/t/uibuilder-question-how-to-build-a-switch/14347)

<div class="topic-metadata">

**Author:** [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Replies:** 12\
**Last updated:** [18 August 2019 13:20 UTC](https://discourse.nodered.org/t/uibuilder-question-how-to-build-a-switch/14347 "2019-08-18T13:20:17Z")

</div>

I'm trying to build a switch with uibuilder (bootstrap-vue). My goal is to be able to set the switch on 2 browsers (iPhone and mac) and from node-red (uibuilder input). \[{"id":"f38da159.cd70f","type":"uibuilder","z":…

---

## [Nodes not all appearing in the node-red](https://discourse.nodered.org/t/nodes-not-all-appearing-in-the-node-red/14495)

<div class="topic-metadata">

**Author:** [@Sibonelo](https://discourse.nodered.org/u/Sibonelo)\
**Replies:** 10\
**Last updated:** [20 August 2019 13:17 UTC](https://discourse.nodered.org/t/nodes-not-all-appearing-in-the-node-red/14495 "2019-08-20T13:17:30Z")

</div>

Hi I am new in node red and I have installed node-red-contrib-iiot-opcua but but only few nodes appear in the node-red which are opcua iiot Lister, Opcua IIoT Write and OPCUA IIoT Discovery. this means that 3 out of 18 …

---

## [How to read data from gateway connected to MODBUS device using nodered](https://discourse.nodered.org/t/how-to-read-data-from-gateway-connected-to-modbus-device-using-nodered/14474)

<div class="topic-metadata">

**Author:** [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Replies:** 29\
**Last updated:** [20 August 2019 13:10 UTC](https://discourse.nodered.org/t/how-to-read-data-from-gateway-connected-to-modbus-device-using-nodered/14474 "2019-08-20T13:10:35Z")

</div>

I am having a dell edge 5000 gateway, how can I read the data from gateway which is connected with a modbus device(Connected with RS485 port ). I am new to modbus protocol so, I'm not getting how to integrate with noce-…

---

## [Sending only on one wire](https://discourse.nodered.org/t/sending-only-on-one-wire/14547)

<div class="topic-metadata">

**Author:** [@petrdolejs](https://discourse.nodered.org/u/petrdolejs)\
**Replies:** 9\
**Last updated:** [20 August 2019 12:59 UTC](https://discourse.nodered.org/t/sending-only-on-one-wire/14547 "2019-08-20T12:59:18Z")

</div>

Hello guys if I have function node(if statement in there) and from that node I have two nodes. Is possible send data only to one node based on if statement? Can I send data just to one debug node due to if statement? …

---

## [Node-RED reload flow api not working](https://discourse.nodered.org/t/node-red-reload-flow-api-not-working/14263)

<div class="topic-metadata">

**Author:** [@ab73863](https://discourse.nodered.org/u/ab73863)\
**Replies:** 2\
**Last updated:** [20 August 2019 12:39 UTC](https://discourse.nodered.org/t/node-red-reload-flow-api-not-working/14263 "2019-08-20T12:39:55Z")

</div>

Hi, We were trying to understand the reload flow mechanism of Node-RED . As part of that we tried to deploy the flow in Node-RED which is using AWS S3 as storage . The flow is working fine but on reload we could see tha…

---

## [How to add custom syntax checksum highlighting in the edit box](https://discourse.nodered.org/t/how-to-add-custom-syntax-checksum-highlighting-in-the-edit-box/13026)

<div class="topic-metadata">

**Author:** [@limengsong](https://discourse.nodered.org/u/limengsong)\
**Replies:** 6\
**Last updated:** [20 August 2019 10:34 UTC](https://discourse.nodered.org/t/how-to-add-custom-syntax-checksum-highlighting-in-the-edit-box/13026 "2019-08-20T10:34:37Z")

</div>

Hi~： How to add custom syntax checksum highlighting in the edit box。 this.editor = RED.editor.createEditor({ id: 'node-input-schema-editor', mode: 'ace/mode/graphqlschema',…

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

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