# General

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

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

**Page:** 789

---

## [Basic Fetch Error](https://discourse.nodered.org/t/basic-fetch-error/22416)

<div class="topic-metadata">

**Author:** [@Waynedejager](https://discourse.nodered.org/u/Waynedejager)\
**Replies:** 29\
**Last updated:** [1 March 2020 21:44 UTC](https://discourse.nodered.org/t/basic-fetch-error/22416 "2020-03-01T21:44:18Z")

</div>

Trying to do basic fetch fetch('http://example.com/movies.json') .then((response) =\> { return response.json(); }) .then((data) =\> { console.log(data); }); Debug Error function : (error) "ReferenceError…

---

## [Tasmota Sonoffs all randomly turning on at Midnight. Big timer issue?](https://discourse.nodered.org/t/tasmota-sonoffs-all-randomly-turning-on-at-midnight-big-timer-issue/12512)

<div class="topic-metadata">

**Author:** [@LondisDunleer](https://discourse.nodered.org/u/LondisDunleer)\
**Replies:** 14\
**Last updated:** [1 March 2020 20:25 UTC](https://discourse.nodered.org/t/tasmota-sonoffs-all-randomly-turning-on-at-midnight-big-timer-issue/12512 "2020-03-01T20:25:04Z")

</div>

Hi, I'm having an issue that all my devices are getting turned on at midnight. This is a bit of a disaster as it turns on the heating and everything. So I end up waking up at like 4am sweating! Can someone have a look …

---

## [How to automatic controll WS2811](https://discourse.nodered.org/t/how-to-automatic-controll-ws2811/22280)

<div class="topic-metadata">

**Author:** [@theSushi](https://discourse.nodered.org/u/theSushi)\
**Replies:** 22\
**Last updated:** [1 March 2020 18:46 UTC](https://discourse.nodered.org/t/how-to-automatic-controll-ws2811/22280 "2020-03-01T18:46:59Z")

</div>

I'm simply trying to do a sunrise and sunset simulation for my terrarium. I have a raspbery pi esp 8266 and LED WS2811 do I need anything else?

---

## [Shelly RGBW2 mit RGBW LED Strip Nodered Flow?](https://discourse.nodered.org/t/shelly-rgbw2-mit-rgbw-led-strip-nodered-flow/22083)

<div class="topic-metadata">

**Author:** [@pinie\_pinie](https://discourse.nodered.org/u/pinie_pinie)\
**Replies:** 3\
**Last updated:** [1 March 2020 16:34 UTC](https://discourse.nodered.org/t/shelly-rgbw2-mit-rgbw-led-strip-nodered-flow/22083 "2020-03-01T16:34:05Z")

</div>

Hi there, I am using a Shelly RGBW2 with an RGBW LED strip. Now I want to control them via Nodered in color mode. Does anyone have any experience of how I can control the LED strip via MQTT. Unfortunately I did not fi…

---

## [Change an array in a function](https://discourse.nodered.org/t/change-an-array-in-a-function/22292)

<div class="topic-metadata">

**Author:** [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Replies:** 21\
**Last updated:** [1 March 2020 10:17 UTC](https://discourse.nodered.org/t/change-an-array-in-a-function/22292 "2020-03-01T10:17:08Z")

</div>

Currently i change my array records by using the array number 0-xxxx or a variable that contains this number... (see example below). Problem is that the record that i want to change not always has the same number.. que…

---

## [Controlling Samsung TV NU8000](https://discourse.nodered.org/t/controlling-samsung-tv-nu8000/22419)

<div class="topic-metadata">

**Author:** [@ahakobyan](https://discourse.nodered.org/u/ahakobyan)\
**Replies:** 8\
**Last updated:** [29 February 2020 23:24 UTC](https://discourse.nodered.org/t/controlling-samsung-tv-nu8000/22419 "2020-02-29T23:24:19Z")

</div>

Dear good people of node red community, I'm trying to control my NU8000 tv using node red. I installed almost every available samsungtv package, but none of them are able to control the TV, best I got was volume control…

---

## [Avoiding race conditions on flow start](https://discourse.nodered.org/t/avoiding-race-conditions-on-flow-start/22421)

<div class="topic-metadata">

**Author:** [@techraf](https://discourse.nodered.org/u/techraf)\
**Replies:** 2\
**Last updated:** [29 February 2020 21:16 UTC](https://discourse.nodered.org/t/avoiding-race-conditions-on-flow-start/22421 "2020-02-29T21:16:33Z")

</div>

Let's consider I have two generic processes being triggered on flow start and I want to withhold message(s) from one of them (Process 2) until some condition calculated by the other (Process 1) is met, and then pass all …

---

## [Problem with node-red-contrib-heater-controller](https://discourse.nodered.org/t/problem-with-node-red-contrib-heater-controller/22382)

<div class="topic-metadata">

**Author:** [@devifast](https://discourse.nodered.org/u/devifast)\
**Replies:** 8\
**Last updated:** [29 February 2020 21:15 UTC](https://discourse.nodered.org/t/problem-with-node-red-contrib-heater-controller/22382 "2020-02-29T21:15:03Z")

</div>

Hello. In my project I use a temperature controller https://flows.nodered.org/node/node-red-contrib-heater-controller controller works but ...! I noticed that when you remove the sensor physicaly. controller still works.…

---

## [Node-red in docker problems executing ssh into synology](https://discourse.nodered.org/t/node-red-in-docker-problems-executing-ssh-into-synology/22299)

<div class="topic-metadata">

**Author:** [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Replies:** 8\
**Last updated:** [29 February 2020 17:48 UTC](https://discourse.nodered.org/t/node-red-in-docker-problems-executing-ssh-into-synology/22299 "2020-02-29T17:48:59Z")

</div>

Hello, i have node-red running in docker under synology. i want to execute a command on my synology(which is outside the docker container) but somehow i can not get it to work i created private and public keys and as …

---

## [Node-red-contrib-xiaomi-ble Cannot Connect](https://discourse.nodered.org/t/node-red-contrib-xiaomi-ble-cannot-connect/22403)

<div class="topic-metadata">

**Author:** [@andrewa](https://discourse.nodered.org/u/andrewa)\
**Replies:** 1\
**Last updated:** [29 February 2020 08:37 UTC](https://discourse.nodered.org/t/node-red-contrib-xiaomi-ble-cannot-connect/22403 "2020-02-29T08:37:41Z")

</div>

I have installed node-red-contrib-xiaomi-ble and from reading the documentation for noble, finally got it to run using the command: sudo setcap cap\_net\_raw+eip $(eval readlink -f \`which node\`) However, it now comes up …

---

## [Integrating C++ classes](https://discourse.nodered.org/t/integrating-c-classes/22377)

<div class="topic-metadata">

**Author:** [@guitarpicva](https://discourse.nodered.org/u/guitarpicva)\
**Replies:** 19\
**Last updated:** [28 February 2020 22:12 UTC](https://discourse.nodered.org/t/integrating-c-classes/22377 "2020-02-28T22:12:34Z")

</div>

Where does one find the definitive guide on integrating back end C++ (or other language) classes in order to do complex business logic in the "background"? Best practices? Practical advice? I work primarily in C++ (Qt…

---

## [Authentication using passport-jwt](https://discourse.nodered.org/t/authentication-using-passport-jwt/22345)

<div class="topic-metadata">

**Author:** [@acoulson2000](https://discourse.nodered.org/u/acoulson2000)\
**Replies:** 4\
**Last updated:** [28 February 2020 15:55 UTC](https://discourse.nodered.org/t/authentication-using-passport-jwt/22345 "2020-02-28T15:55:46Z")

</div>

I'm trying to setup authentication using the passport-jwt strategy, but am so far having now luck. I want to pass the JWT token as a query parameter for authentication I first tried using the passports fromUrlQueryParam…

---

## [Node red browser interaction](https://discourse.nodered.org/t/node-red-browser-interaction/22376)

<div class="topic-metadata">

**Author:** [@statecLata](https://discourse.nodered.org/u/statecLata)\
**Replies:** 8\
**Last updated:** [28 February 2020 15:49 UTC](https://discourse.nodered.org/t/node-red-browser-interaction/22376 "2020-02-28T15:49:37Z")

</div>

Hello everybody, I'm pretty new to node-red so this may be a stupid question. I did search a lot though and found nothing. Currently I have node-red up and running on a raspberry pi and a bluetooth smart button linked …

---

## [\[Solved\] How to realise auto-control and manual-control of the light?](https://discourse.nodered.org/t/solved-how-to-realise-auto-control-and-manual-control-of-the-light/22352)

<div class="topic-metadata">

**Author:** [@molly](https://discourse.nodered.org/u/molly)\
**Replies:** 7\
**Last updated:** [28 February 2020 14:46 UTC](https://discourse.nodered.org/t/solved-how-to-realise-auto-control-and-manual-control-of-the-light/22352 "2020-02-28T14:46:46Z")

</div>

Hi, I have a question about the IoT system by using MQTT nodes. I want to realize that people can choose to manually and automatically control the lights in the dashboard, like the flow in the figure below, but the prob…

---

## [Nicht mehr als 2 Motoren einschalten](https://discourse.nodered.org/t/nicht-mehr-als-2-motoren-einschalten/22372)

<div class="topic-metadata">

**Author:** [@rene.we5](https://discourse.nodered.org/u/rene.we5)\
**Replies:** 1\
**Last updated:** [28 February 2020 12:08 UTC](https://discourse.nodered.org/t/nicht-mehr-als-2-motoren-einschalten/22372 "2020-02-28T12:08:19Z")

</div>

Hallo ich versuche ein Programm zu schreiben, indem es 4 Motoren gibt, aber es sollen sich maximal 2 gleichzeitig einschalten lassen. aber es wird IMMER "false" ausgegeben // Code in der Funktion var x0 = {payload: …

---

## [Mustache on external js file](https://discourse.nodered.org/t/mustache-on-external-js-file/22327)

<div class="topic-metadata">

**Author:** [@tukru](https://discourse.nodered.org/u/tukru)\
**Replies:** 7\
**Last updated:** [28 February 2020 10:33 UTC](https://discourse.nodered.org/t/mustache-on-external-js-file/22327 "2020-02-28T10:33:55Z")

</div>

Hi all, So I am using Mustache for some stuff off the JS. In a script tag inside the HTML is working but if I use it with an external JS file it isn't. Is there any way to make it work with external JS file? Thanks!

---

## [Is there any way to do dynamic configuration for mysql node in node-red?](https://discourse.nodered.org/t/is-there-any-way-to-do-dynamic-configuration-for-mysql-node-in-node-red/22354)

<div class="topic-metadata">

**Author:** [@Jignesh](https://discourse.nodered.org/u/Jignesh)\
**Replies:** 2\
**Last updated:** [28 February 2020 10:20 UTC](https://discourse.nodered.org/t/is-there-any-way-to-do-dynamic-configuration-for-mysql-node-in-node-red/22354 "2020-02-28T10:20:40Z")

</div>

I am using node-red-node-mysql node to connect with mySQL database. I want to set my database credential (i.e. server name, db name, uid and password) from global variables. Is there any way to do it?

---

## [MQTT keeps running inside a function node](https://discourse.nodered.org/t/mqtt-keeps-running-inside-a-function-node/22320)

<div class="topic-metadata">

**Author:** [@Guillermo](https://discourse.nodered.org/u/Guillermo)\
**Replies:** 8\
**Last updated:** [28 February 2020 10:14 UTC](https://discourse.nodered.org/t/mqtt-keeps-running-inside-a-function-node/22320 "2020-02-28T10:14:57Z")

</div>

Hi all, I was trying to use the mqtt nodejs package inside a function node, so I implemented the "require" function as suggested in this comment in github: So my code is this one: require = global.get('require'); var…

---

## [An Alternate Pop Up Dialog?](https://discourse.nodered.org/t/an-alternate-pop-up-dialog/19591)

<div class="topic-metadata">

**Author:** [@KELVINHAN95](https://discourse.nodered.org/u/KELVINHAN95)\
**Replies:** 9\
**Last updated:** [28 February 2020 09:25 UTC](https://discourse.nodered.org/t/an-alternate-pop-up-dialog/19591 "2020-02-28T09:25:08Z")

</div>

Hi, so far the only pop up i can see is the ok/cancel dialog. However I need something slightly different. Instead of an OK/Cancel pop up, i need one that allows the user to manually type the message on the pop up, …

---

## [Cannot read Tim551 Laser data from node red tcp in node](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355)

<div class="topic-metadata">

**Author:** [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Replies:** 5\
**Last updated:** [28 February 2020 08:15 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355 "2020-02-28T08:15:44Z")

</div>

Cannot read Tim551 Laser data from node red tcp in node. Flow is shown below. any help would be really appreciated! send command in function node: msg.payload = "\\02"+"sRN LMDscandata"+"\\03"; But nothing receives.

---

## [Use the node red values in Python](https://discourse.nodered.org/t/use-the-node-red-values-in-python/22086)

<div class="topic-metadata">

**Author:** [@gragtoni435](https://discourse.nodered.org/u/gragtoni435)\
**Replies:** 34\
**Last updated:** [28 February 2020 04:52 UTC](https://discourse.nodered.org/t/use-the-node-red-values-in-python/22086 "2020-02-28T04:52:33Z")

</div>

Hello, I can not find a solution how I can process the values from Node-Red in a Python script. Here, I get the X & Y coordinate from a Siemens CPU (317F) over a OPC UA Server to my Raspberry The coordinates are in …

---

## [Downloading node palettes](https://discourse.nodered.org/t/downloading-node-palettes/22316)

<div class="topic-metadata">

**Author:** [@NewNoob](https://discourse.nodered.org/u/NewNoob)\
**Replies:** 6\
**Last updated:** [28 February 2020 01:29 UTC](https://discourse.nodered.org/t/downloading-node-palettes/22316 "2020-02-28T01:29:37Z")

</div>

Hi everyone, I am relatively new to Node-Red and Linux and am facing a roadblock Is there any way to install node modules onto a snap installed node-red in an Ubuntu Core 16 IPC? The IPC I am using only offers the term…

---

## [Are there exist the align functionality on dropdown ui?](https://discourse.nodered.org/t/are-there-exist-the-align-functionality-on-dropdown-ui/22335)

<div class="topic-metadata">

**Author:** [@XiaoBin](https://discourse.nodered.org/u/XiaoBin)\
**Replies:** 2\
**Last updated:** [27 February 2020 23:56 UTC](https://discourse.nodered.org/t/are-there-exist-the-align-functionality-on-dropdown-ui/22335 "2020-02-27T23:56:33Z")

</div>

Hello I am making UI page using the dropdown ui node. But when I place the dropdown ui node on the page, it is the left align in default. I'd like to make it to the right align. Is it possible on the dropdown ui? Th…

---

## [Connecting a RFID reader to Groov Epic](https://discourse.nodered.org/t/connecting-a-rfid-reader-to-groov-epic/22343)

<div class="topic-metadata">

**Author:** [@Lili](https://discourse.nodered.org/u/Lili)\
**Replies:** 1\
**Last updated:** [27 February 2020 22:05 UTC](https://discourse.nodered.org/t/connecting-a-rfid-reader-to-groov-epic/22343 "2020-02-27T22:05:52Z")

</div>

I am new to Node-RED, is there any sort of general node to connect a groov epic to a generic RFID reader? I found this collection : https://flows.nodered.org/collection/9RgOMM3J9oyX But I don't believe it fits my needs…

---

## [Help with a Select Query Function](https://discourse.nodered.org/t/help-with-a-select-query-function/22341)

<div class="topic-metadata">

**Author:** [@SamBozman](https://discourse.nodered.org/u/SamBozman)\
**Replies:** 12\
**Last updated:** [27 February 2020 21:56 UTC](https://discourse.nodered.org/t/help-with-a-select-query-function/22341 "2020-02-27T21:56:16Z")

</div>

Hi, I need help formatting a query from a node-red function node to a sqlite database. I have already designed and verified my database and the query I am trying to use works properly within sqlite. The problem is I do n…

---

## [Node-red-node-openweathermap 0.2.1 \> Insufficient Entropy / severity vulnerability](https://discourse.nodered.org/t/node-red-node-openweathermap-0-2-1-insufficient-entropy-severity-vulnerability/22333)

<div class="topic-metadata">

**Author:** [@RueCo](https://discourse.nodered.org/u/RueCo)\
**Replies:** 3\
**Last updated:** [27 February 2020 21:08 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-0-2-1-insufficient-entropy-severity-vulnerability/22333 "2020-02-27T21:08:25Z")

</div>

After installing NR and the flow node-red-node-openweathermap 0.2.1 Node-RED Version: v1.0.3 Node.js Version: v12.16.1 Linux 4.19.79-v7+ arm LE we got an npm audit error message which we are not able to fix. What d…

---

## [Regarding Dht11 sensor and Node-red interface](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312)

<div class="topic-metadata">

**Author:** [@Ramesh](https://discourse.nodered.org/u/Ramesh)\
**Replies:** 9\
**Last updated:** [27 February 2020 20:28 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312 "2020-02-27T20:28:34Z")

</div>

Heloo friends, im getting dht11 sensor readings on arduino serial monitor but not displaying on NODE-red GUI. please help me to solve this issue...

---

## [Extract labels & values from MQTT message](https://discourse.nodered.org/t/extract-labels-values-from-mqtt-message/22339)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 2\
**Last updated:** [27 February 2020 19:40 UTC](https://discourse.nodered.org/t/extract-labels-values-from-mqtt-message/22339 "2020-02-27T19:40:16Z")

</div>

On a cloud node-RED instance I receive a MQTT message of power data (in the influx line protocol format); grafana,device=diverter,type=energy grid=264,solar=0,divert=0,volts=242.71,accusage=0.7333333333333333,accsolar=0…

---

## [How to improve this "if, else if" code?](https://discourse.nodered.org/t/how-to-improve-this-if-else-if-code/22311)

<div class="topic-metadata">

**Author:** [@whatsupskip](https://discourse.nodered.org/u/whatsupskip)\
**Replies:** 4\
**Last updated:** [27 February 2020 18:53 UTC](https://discourse.nodered.org/t/how-to-improve-this-if-else-if-code/22311 "2020-02-27T18:53:12Z")

</div>

I tried to use the OR operator || to improve this code, but it didn't work the way I though. Is there anyway to simplify this code. The number are all integers. if (HeatPumpTemp\_MB === 19) {HeatPumpTemp\_MB = HeatPumpTe…

---

## [Error-Circular / Wrong usage of persistent global variables?](https://discourse.nodered.org/t/error-circular-wrong-usage-of-persistent-global-variables/19815)

<div class="topic-metadata">

**Author:** [@NrSteffen](https://discourse.nodered.org/u/NrSteffen)\
**Replies:** 18\
**Last updated:** [27 February 2020 18:39 UTC](https://discourse.nodered.org/t/error-circular-wrong-usage-of-persistent-global-variables/19815 "2020-02-27T18:39:37Z")

</div>

First of all a happy new year to all of you! I'm seeing a lot of error-circular messages and I'm wondering if this is caused by "my way" of handling persistent global variables (I'm storing some historic values, e.g. th…

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

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