# General

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

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

**Page:** 855

---

## [Function nodes and throw](https://discourse.nodered.org/t/function-nodes-and-throw/14755)

<div class="topic-metadata">

**Author:** [@thatcadguy](https://discourse.nodered.org/u/thatcadguy)\
**Replies:** 3\
**Last updated:** [25 August 2019 07:07 UTC](https://discourse.nodered.org/t/function-nodes-and-throw/14755 "2019-08-25T07:07:35Z")

</div>

I was writing a function node and when I went to test, noticed something peculiar: when throwing an error, instead of showing the throw's message, I get: TypeError: Cannot read property 'search' of undefined You can re…

---

## [UK Transport - transportation](https://discourse.nodered.org/t/uk-transport-transportation/14758)

<div class="topic-metadata">

**Author:** [@orandaadnaro](https://discourse.nodered.org/u/orandaadnaro)\
**Replies:** 2\
**Last updated:** [25 August 2019 07:09 UTC](https://discourse.nodered.org/t/uk-transport-transportation/14758 "2019-08-25T07:09:17Z")

</div>

At: https://www.transportapi.com appears to be a wealth of data that could be accessible by node red. I haven't found any reference to it yet in the flows other than tfl. Is anyone working on integrating it into node re…

---

## [Lottery Code? need some help](https://discourse.nodered.org/t/lottery-code-need-some-help/14753)

<div class="topic-metadata">

**Author:** [@aihysp](https://discourse.nodered.org/u/aihysp)\
**Replies:** 1\
**Last updated:** [25 August 2019 05:54 UTC](https://discourse.nodered.org/t/lottery-code-need-some-help/14753 "2019-08-25T05:54:15Z")

</div>

Hi i was trying to implement node red to give me random lottery results can anyone think of a useful node that will give me the ability to make a list out of random numbers? this is working for me but it is a little un…

---

## [Best way to route messages through one set of nodes?](https://discourse.nodered.org/t/best-way-to-route-messages-through-one-set-of-nodes/14745)

<div class="topic-metadata">

**Author:** [@thatcadguy](https://discourse.nodered.org/u/thatcadguy)\
**Replies:** 10\
**Last updated:** [25 August 2019 05:44 UTC](https://discourse.nodered.org/t/best-way-to-route-messages-through-one-set-of-nodes/14745 "2019-08-25T05:44:09Z")

</div>

So I'm going to create a pure Node-RED (no 3rd party nodes or libraries) Modbus TCP client, and I'd like to know if there's a better way to send messages through a common set of nodes. Modbus TCP servers basically have …

---

## [Passing MQTT Message issues](https://discourse.nodered.org/t/passing-mqtt-message-issues/14612)

<div class="topic-metadata">

**Author:** [@Exit2Studios](https://discourse.nodered.org/u/Exit2Studios)\
**Replies:** 17\
**Last updated:** [24 August 2019 22:54 UTC](https://discourse.nodered.org/t/passing-mqtt-message-issues/14612 "2019-08-24T22:54:37Z")

</div>

I am trying to pass some sensor values from an arduino to MQTT within home assistant. The MQTT Broker is picking up the message, but no payload is attached. Here are a few screenshots, and willing to share more if it h…

---

## [Function node code editor warnings](https://discourse.nodered.org/t/function-node-code-editor-warnings/14748)

<div class="topic-metadata">

**Author:** [@thatcadguy](https://discourse.nodered.org/u/thatcadguy)\
**Replies:** 7\
**Last updated:** [24 August 2019 21:03 UTC](https://discourse.nodered.org/t/function-node-code-editor-warnings/14748 "2019-08-24T21:03:47Z")

</div>

Are these warnings/errors displayed by the line numbers part of Node-RED's codebase, or is this functionality from another library? The warnings/errors shown are wrong sometimes, e.g. defining a variable with var inside…

---

## [Docker RPI4 running, but not available at 1880](https://discourse.nodered.org/t/docker-rpi4-running-but-not-available-at-1880/14742)

<div class="topic-metadata">

**Author:** [@GChapo](https://discourse.nodered.org/u/GChapo)\
**Replies:** 1\
**Last updated:** [24 August 2019 19:39 UTC](https://discourse.nodered.org/t/docker-rpi4-running-but-not-available-at-1880/14742 "2019-08-24T19:39:12Z")

</div>

Hello, I have installed Docker on a RPI 4 and have portainer available to manage the Docker installation at port 9000. However, having installed Node Red v8 in its own container I cannot get access when I browse to por…

---

## [Blinds Control Logic?](https://discourse.nodered.org/t/blinds-control-logic/14687)

<div class="topic-metadata">

**Author:** [@superwinni2](https://discourse.nodered.org/u/superwinni2)\
**Replies:** 9\
**Last updated:** [24 August 2019 17:39 UTC](https://discourse.nodered.org/t/blinds-control-logic/14687 "2019-08-24T17:39:57Z")

</div>

Hello @all I've got a little problem with programming my shutter control... I got a Shelly2.5 in use for "smarting" my blinds. Via MQTT I got 3 "buttons" in my ioBroker. Open, Close, Stop. Now I want to realize with N…

---

## [\[SOLVED\] Newbe struggling with JSON Global Arrays](https://discourse.nodered.org/t/solved-newbe-struggling-with-json-global-arrays/14723)

<div class="topic-metadata">

**Author:** [@StantonRM3](https://discourse.nodered.org/u/StantonRM3)\
**Replies:** 8\
**Last updated:** [23 August 2019 22:31 UTC](https://discourse.nodered.org/t/solved-newbe-struggling-with-json-global-arrays/14723 "2019-08-23T22:31:27Z")

</div>

Dear All, I am on a very steep learning curve here. I am experienced in C and .NET (the VB kind), however have now ventured into the world of micro-controllers and over the last few weeks have had to learn: Linux/Pyt…

---

## [Can't add values](https://discourse.nodered.org/t/cant-add-values/14725)

<div class="topic-metadata">

**Author:** [@Ronaldz](https://discourse.nodered.org/u/Ronaldz)\
**Replies:** 3\
**Last updated:** [23 August 2019 22:06 UTC](https://discourse.nodered.org/t/cant-add-values/14725 "2019-08-23T22:06:01Z")

</div>

when I try to add and subtract values, it seems that adding 2 numbers will not work while subtracting is oke. in the function node I do the following: var waarde1 = 0 var waarde2 = 0 var jitter = 5 waarde1 = cvwaar…

---

## [\[Solved\] Pipe | not working in exec node Raspbian Buster](https://discourse.nodered.org/t/solved-pipe-not-working-in-exec-node-raspbian-buster/14714)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 3\
**Last updated:** [23 August 2019 21:53 UTC](https://discourse.nodered.org/t/solved-pipe-not-working-in-exec-node-raspbian-buster/14714 "2019-08-23T21:53:34Z")

</div>

I'm using the route command to find the gateway IP address if it is up (Flags == "UG") route --numeric | grep UG From the command line I get $ route --numeric | grep "UG" 0.0.0.0 192.168.1.1 0.0.0.0 …

---

## [uibuilder.onChange msgs](https://discourse.nodered.org/t/uibuilder-onchange-msgs/14590)

<div class="topic-metadata">

**Author:** [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Replies:** 28\
**Last updated:** [23 August 2019 21:04 UTC](https://discourse.nodered.org/t/uibuilder-onchange-msgs/14590 "2019-08-23T21:04:25Z")

</div>

Not sure if this is the right place for posting it, but creating an issue for uibuilder wouldn't be valid as it isn't an issue. @TotallyInformation could you help me on the road a bit, let's say I have the following: h…

---

## [Syntax Highlighting when creating a custom node](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707)

<div class="topic-metadata">

**Author:** [@Regalia](https://discourse.nodered.org/u/Regalia)\
**Replies:** 3\
**Last updated:** [23 August 2019 20:53 UTC](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707 "2019-08-23T20:53:39Z")

</div>

Hello, I've recently been creating new nodes for personal project and one of the main issue I have is that in one of the \<script /\> tag, there is no color. Indeed the \<script type="text/x-red" data-template-name"X" /\> do…

---

## [WEMO node seems to have stopped working](https://discourse.nodered.org/t/wemo-node-seems-to-have-stopped-working/14712)

<div class="topic-metadata">

**Author:** [@Roaders](https://discourse.nodered.org/u/Roaders)\
**Replies:** 5\
**Last updated:** [23 August 2019 15:50 UTC](https://discourse.nodered.org/t/wemo-node-seems-to-have-stopped-working/14712 "2019-08-23T15:50:53Z")

</div>

Hi All For several years now I've had a collection of flic buttons, a couple of node red instances and hue lights / wemo plugs controlling the lights in my house without hitch. Recently things haven't been so good. Ov…

---

## [Set Up on Yocto](https://discourse.nodered.org/t/set-up-on-yocto/14715)

<div class="topic-metadata">

**Author:** [@eng56](https://discourse.nodered.org/u/eng56)\
**Replies:** 0\
**Last updated:** [23 August 2019 15:13 UTC](https://discourse.nodered.org/t/set-up-on-yocto/14715 "2019-08-23T15:13:50Z")

</div>

Hi, I have seen other post about using Node Red on Yocto, specially to set up port. I have already installed Node Red on a Ubuntu server, it's working but I'm new so Im' nut sure to be able to do it with Yocto. I woul…

---

## [RFXtrx433 remains 'connecting'](https://discourse.nodered.org/t/rfxtrx433-remains-connecting/14697)

<div class="topic-metadata">

**Author:** [@insomniux](https://discourse.nodered.org/u/insomniux)\
**Replies:** 4\
**Last updated:** [23 August 2019 14:52 UTC](https://discourse.nodered.org/t/rfxtrx433-remains-connecting/14697 "2019-08-23T14:52:38Z")

</div>

Hi, I'm trying to get my RFXtrx433XL to work but it seems to fail. I connected an RFX sensor node to /dev/ttyUSB0, after which the node starts connecting, but never becomes connected. I followed the instructions of the…

---

## [RFXtrx433 connect via network](https://discourse.nodered.org/t/rfxtrx433-connect-via-network/14666)

<div class="topic-metadata">

**Author:** [@insomniux](https://discourse.nodered.org/u/insomniux)\
**Replies:** 6\
**Last updated:** [23 August 2019 14:47 UTC](https://discourse.nodered.org/t/rfxtrx433-connect-via-network/14666 "2019-08-23T14:47:55Z")

</div>

Hi, Being extremely new to NodeRed I may ask for help on a topic which is obvious for the knowledgable, however I've not been able to find the solution on the availabel forums. I have a raspberry on which I've connecte…

---

## [Html POST..php question?](https://discourse.nodered.org/t/html-post-php-question/14648)

<div class="topic-metadata">

**Author:** [@moment](https://discourse.nodered.org/u/moment)\
**Replies:** 10\
**Last updated:** [23 August 2019 14:11 UTC](https://discourse.nodered.org/t/html-post-php-question/14648 "2019-08-23T14:11:34Z")

</div>

Hi all,i'm kinda new to NR,i want to send a signal from my gpio input (rasp pi)to a server with a simple php page(header,main,footer).that will display what gpio was triggered,so when the gpio input goes to pulldown send…

---

## [Inject: Interval between times](https://discourse.nodered.org/t/inject-interval-between-times/14702)

<div class="topic-metadata">

**Author:** [@dtuiot](https://discourse.nodered.org/u/dtuiot)\
**Replies:** 6\
**Last updated:** [23 August 2019 13:34 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702 "2019-08-23T13:34:56Z")

</div>

We're using node-red to retrieve data from our table in our database, and then we send the data to a new table in our database. We're using the node 'inject', and we want to inject in x:21 min. Example 10:21 -\> 10: 41 …

---

## [Broke Node-red. All options are blank](https://discourse.nodered.org/t/broke-node-red-all-options-are-blank/14653)

<div class="topic-metadata">

**Author:** [@MinesCaves](https://discourse.nodered.org/u/MinesCaves)\
**Replies:** 5\
**Last updated:** [23 August 2019 12:25 UTC](https://discourse.nodered.org/t/broke-node-red-all-options-are-blank/14653 "2019-08-23T12:25:18Z")

</div>

I'm not sure what I did. Node-Red 0.20.7 has been running perfectly. Actually, everything is still working, but I'm missing all the options inside the Nodes. Like drop downs, etc are all blank. Has anyone seen this? I u…

---

## [BacNet device reading data](https://discourse.nodered.org/t/bacnet-device-reading-data/14686)

<div class="topic-metadata">

**Author:** [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Replies:** 5\
**Last updated:** [23 August 2019 12:00 UTC](https://discourse.nodered.org/t/bacnet-device-reading-data/14686 "2019-08-23T12:00:18Z")

</div>

Hello, I have to read the data from Bacnet device, I have created a bacnet device in simulator(BacNet Simulator) can u please help me with this

---

## [Node-red not loading on Webpage](https://discourse.nodered.org/t/node-red-not-loading-on-webpage/14703)

<div class="topic-metadata">

**Author:** [@Zayn33](https://discourse.nodered.org/u/Zayn33)\
**Replies:** 2\
**Last updated:** [23 August 2019 11:23 UTC](https://discourse.nodered.org/t/node-red-not-loading-on-webpage/14703 "2019-08-23T11:23:00Z")

</div>

Hi, I am very new to node-red, so I have a very basic question. I am trying to load the localhost:1880 on safaru on my mac. However, it cannot connect to localhost:1880. How do I get node-red started please if it will …

---

## [Is there a way to enlarge the editor size?](https://discourse.nodered.org/t/is-there-a-way-to-enlarge-the-editor-size/14682)

<div class="topic-metadata">

**Author:** [@fangzhu](https://discourse.nodered.org/u/fangzhu)\
**Replies:** 5\
**Last updated:** [23 August 2019 09:15 UTC](https://discourse.nodered.org/t/is-there-a-way-to-enlarge-the-editor-size/14682 "2019-08-23T09:15:05Z")

</div>

I need to create a flow that includes thousands of nodes, and will require a bigger editor workspace. Is it a way, in configuration or coding to enlarge the editor workspace size?

---

## [Read SQL value and convert to Domoticz MQTT Topic - payload issue](https://discourse.nodered.org/t/read-sql-value-and-convert-to-domoticz-mqtt-topic-payload-issue/14504)

<div class="topic-metadata">

**Author:** [@domotic](https://discourse.nodered.org/u/domotic)\
**Replies:** 24\
**Last updated:** [23 August 2019 01:07 UTC](https://discourse.nodered.org/t/read-sql-value-and-convert-to-domoticz-mqtt-topic-payload-issue/14504 "2019-08-23T01:07:19Z")

</div>

Goal: Read value from SQL database and present data as MQTT Topic for Domoticz I have 2 issues: Issue 1: SQL data will be succesfully read when WHERE statement is predefined in the SQL syntax. But when I want to use th…

---

## [Node-red-start not working but node-red working](https://discourse.nodered.org/t/node-red-start-not-working-but-node-red-working/14618)

<div class="topic-metadata">

**Author:** [@thomaslc66](https://discourse.nodered.org/u/thomaslc66)\
**Replies:** 8\
**Last updated:** [22 August 2019 21:04 UTC](https://discourse.nodered.org/t/node-red-start-not-working-but-node-red-working/14618 "2019-08-22T21:04:55Z")

</div>

Hello, On my pi i've updated form 0.25 to 0.27. i get some bug with the node-red-contrib-serial to i managed to resolve with npm rebuild. Now, i need to start node-red at boot. commands: node-red -\> start ok, no erro…

---

## [Shared Folders in Windows 10](https://discourse.nodered.org/t/shared-folders-in-windows-10/14655)

<div class="topic-metadata">

**Author:** [@thynes](https://discourse.nodered.org/u/thynes)\
**Replies:** 4\
**Last updated:** [22 August 2019 20:44 UTC](https://discourse.nodered.org/t/shared-folders-in-windows-10/14655 "2019-08-22T20:44:36Z")

</div>

Hello, does anybody know the best way to share a networked drive in Node-Red using Windows 10. I managed it fine in Linux with the fstab, but seems difficult in Windows 10. I have tried fsops and file lister but these …

---

## [The right logic for this task](https://discourse.nodered.org/t/the-right-logic-for-this-task/12404)

<div class="topic-metadata">

**Author:** [@FarfarGoHai](https://discourse.nodered.org/u/FarfarGoHai)\
**Replies:** 17\
**Last updated:** [22 August 2019 19:05 UTC](https://discourse.nodered.org/t/the-right-logic-for-this-task/12404 "2019-08-22T19:05:36Z")

</div>

So not the sharpest programmer in the world... in fact not programmer. However I do like to make things, and have programmed some stuff before. However, I am struggling with getting some logic right. I want to: Make a …

---

## [Failed to load syntax error](https://discourse.nodered.org/t/failed-to-load-syntax-error/14642)

<div class="topic-metadata">

**Author:** [@niclas.w82](https://discourse.nodered.org/u/niclas.w82)\
**Replies:** 4\
**Last updated:** [22 August 2019 14:09 UTC](https://discourse.nodered.org/t/failed-to-load-syntax-error/14642 "2019-08-22T14:09:21Z")

</div>

Hi. After a change from dhcp to static ip and node red port from 1880 to 5003 on raspbian. I got this error. See Picture Do i need to chnge something else to get this to work? /Niclas

---

## [Textarea is not holding the value](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634)

<div class="topic-metadata">

**Author:** [@Sanketp](https://discourse.nodered.org/u/Sanketp)\
**Replies:** 13\
**Last updated:** [22 August 2019 10:28 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634 "2019-08-22T10:28:56Z")

</div>

My text area in node is not holding the value after clicking done.

---

## [Writing to array elements](https://discourse.nodered.org/t/writing-to-array-elements/14628)

<div class="topic-metadata">

**Author:** [@Jono](https://discourse.nodered.org/u/Jono)\
**Replies:** 8\
**Last updated:** [22 August 2019 09:09 UTC](https://discourse.nodered.org/t/writing-to-array-elements/14628 "2019-08-22T09:09:10Z")

</div>

Hi All, Hopefully someone can help me out here, I’ve been using node red for a while now, and whilst I can get round most thing, with some knowledge of c the syntax of JavaScript I’m struggling with and I’m guessing the…

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

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