# General

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

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

**Page:** 847

---

## [Node-red with Redis](https://discourse.nodered.org/t/node-red-with-redis/15685)

<div class="topic-metadata">

**Author:** [@Sanjaycoder-r](https://discourse.nodered.org/u/Sanjaycoder-r)\
**Replies:** 3\
**Last updated:** [20 September 2019 07:26 UTC](https://discourse.nodered.org/t/node-red-with-redis/15685 "2019-09-20T07:26:09Z")

</div>

I am using the following command to get the data hget '0000f8f005f16885' 'InBound' from redis. In node-red node-red-contrib-redis node, I'm using for fetching data but it is returning null. \[{"id":"654f64e3.7875dc","t…

---

## [What resets global variables to "undefined"](https://discourse.nodered.org/t/what-resets-global-variables-to-undefined/15700)

<div class="topic-metadata">

**Author:** [@sallen135](https://discourse.nodered.org/u/sallen135)\
**Replies:** 2\
**Last updated:** [19 September 2019 20:13 UTC](https://discourse.nodered.org/t/what-resets-global-variables-to-undefined/15700 "2019-09-19T20:13:32Z")

</div>

I am trying to understand what causes global variables to be reset. I feel like most times I hit deploy it does not reset them, but sometimes when I deploy all get set to undefined. The background to this questions is I…

---

## [Need help getting daily peaks from mysql](https://discourse.nodered.org/t/need-help-getting-daily-peaks-from-mysql/15695)

<div class="topic-metadata">

**Author:** [@Masterkey12](https://discourse.nodered.org/u/Masterkey12)\
**Replies:** 3\
**Last updated:** [19 September 2019 15:13 UTC](https://discourse.nodered.org/t/need-help-getting-daily-peaks-from-mysql/15695 "2019-09-19T15:13:10Z")

</div>

how to check the data coming from the mysql database and analyze them using node red while establishing daily peaks corresponding to the type of ph collected

---

## [Node-red-contrib-do-red](https://discourse.nodered.org/t/node-red-contrib-do-red/13947)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 4\
**Last updated:** [19 September 2019 14:04 UTC](https://discourse.nodered.org/t/node-red-contrib-do-red/13947 "2019-09-19T14:04:52Z")

</div>

This looks an interesting idea - can't think of anything I could use it for at moment but handy to know its available Just noticed it doesn't follow the naming convention though

---

## [Adding or removing a palette causing ALL palettes to disappear](https://discourse.nodered.org/t/adding-or-removing-a-palette-causing-all-palettes-to-disappear/15671)

<div class="topic-metadata">

**Author:** [@danodemano](https://discourse.nodered.org/u/danodemano)\
**Replies:** 19\
**Last updated:** [19 September 2019 13:54 UTC](https://discourse.nodered.org/t/adding-or-removing-a-palette-causing-all-palettes-to-disappear/15671 "2019-09-19T13:54:03Z")

</div>

I'm having an issue. I need to remove a palette and add in another one. However, when I initiate the removal it seems to work as expected. When I reload NR though ALL my installed palettes are gone with only the defau…

---

## [How to use hget command in node-red using node-red-contrib-redis node](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687)

<div class="topic-metadata">

**Author:** [@Sanjaycoder-r](https://discourse.nodered.org/u/Sanjaycoder-r)\
**Replies:** 2\
**Last updated:** [19 September 2019 10:15 UTC](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687 "2019-09-19T10:15:34Z")

</div>

I am using the following command to get the data hget '0000f8f005f16885' 'InBound' from redis. In node-red node-red-contrib-redis node I'm using for fecthing data but it is returning null. \[{"id":"654f64e3.7875dc","typ…

---

## [Node-red in workplace. What are you using it for?](https://discourse.nodered.org/t/node-red-in-workplace-what-are-you-using-it-for/15367)

<div class="topic-metadata">

**Author:** [@paulohlp](https://discourse.nodered.org/u/paulohlp)\
**Replies:** 36\
**Last updated:** [19 September 2019 07:19 UTC](https://discourse.nodered.org/t/node-red-in-workplace-what-are-you-using-it-for/15367 "2019-09-19T07:19:23Z")

</div>

I would like to know your uses of node-red and share what I’m doing with this amazing tool. What are you using it for? This topic is more like a love story than something useful. And I believe that knowing what are you…

---

## [Modbus - Reading dozens of non-contiguous addresses](https://discourse.nodered.org/t/modbus-reading-dozens-of-non-contiguous-addresses/3722)

<div class="topic-metadata">

**Author:** [@dbainbridge](https://discourse.nodered.org/u/dbainbridge)\
**Replies:** 3\
**Last updated:** [19 September 2019 03:31 UTC](https://discourse.nodered.org/t/modbus-reading-dozens-of-non-contiguous-addresses/3722 "2019-09-19T03:31:12Z")

</div>

I will need to read dozens of non-contiguous modbus addresses and making dozens of different modbus read nodes does not make sense. Is there a better way to do this?

---

## [Node-red-contrib-usbhid not building on Raspberry Pi v1](https://discourse.nodered.org/t/node-red-contrib-usbhid-not-building-on-raspberry-pi-v1/9133)

<div class="topic-metadata">

**Author:** [@Fergal](https://discourse.nodered.org/u/Fergal)\
**Replies:** 2\
**Last updated:** [19 September 2019 00:09 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-not-building-on-raspberry-pi-v1/9133 "2019-09-19T00:09:45Z")

</div>

Hi I'm working on a project using an old Raspberry Pi (Model B v1.2) connected to a Magtek usb swipe card reader. Currently, I have a python script to send the data from the card reader via HTTP post to my Node Red flow…

---

## [Exec Node to start Python Script - permission error](https://discourse.nodered.org/t/exec-node-to-start-python-script-permission-error/15638)

<div class="topic-metadata">

**Author:** [@GRitchie1](https://discourse.nodered.org/u/GRitchie1)\
**Replies:** 10\
**Last updated:** [18 September 2019 20:59 UTC](https://discourse.nodered.org/t/exec-node-to-start-python-script-permission-error/15638 "2019-09-18T20:59:58Z")

</div>

Hi, I'm trying to write to a .txt file from a python script, then use node red to read the contents of the file. The issue I'm having is running the python script from the Exec node. It appears to run the script but i…

---

## [Omxplayer need help to play sounds on raspi](https://discourse.nodered.org/t/omxplayer-need-help-to-play-sounds-on-raspi/15643)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 34\
**Last updated:** [18 September 2019 16:47 UTC](https://discourse.nodered.org/t/omxplayer-need-help-to-play-sounds-on-raspi/15643 "2019-09-18T16:47:29Z")

</div>

I found the omxplayer node and try to use it without success. Console cmd "omxplayer -p -o local /home/pi/Desktop/lassedenken.mp3" works. My flow doesn´t work and is probably (lag of documentation) wrong: \[ { …

---

## [Different break conditions in a for loop](https://discourse.nodered.org/t/different-break-conditions-in-a-for-loop/15658)

<div class="topic-metadata">

**Author:** [@tobiasselin](https://discourse.nodered.org/u/tobiasselin)\
**Replies:** 4\
**Last updated:** [18 September 2019 16:09 UTC](https://discourse.nodered.org/t/different-break-conditions-in-a-for-loop/15658 "2019-09-18T16:09:25Z")

</div>

I've been googling around a bit as I would like to break a loop with two different conditions. Haven't found anything useful so I will try here. I'm not after a complete solution, just a general approach. At the moment …

---

## [Alexa on raspberry pi with node red](https://discourse.nodered.org/t/alexa-on-raspberry-pi-with-node-red/15663)

<div class="topic-metadata">

**Author:** [@maku12](https://discourse.nodered.org/u/maku12)\
**Replies:** 1\
**Last updated:** [18 September 2019 14:46 UTC](https://discourse.nodered.org/t/alexa-on-raspberry-pi-with-node-red/15663 "2019-09-18T14:46:04Z")

</div>

Hi, i have installed alexa ( https://github.com/alexa/avs-device-sdk/wiki/Raspberry-Pi-Quick-Start-Guide-with-Script ) on my raspberry pi. I saw, there are also alexa nodes in node red pallette available. Can I configu…

---

## [Rules node Variable is name value](https://discourse.nodered.org/t/rules-node-variable-is-name-value/15659)

<div class="topic-metadata">

**Author:** [@lastm4n](https://discourse.nodered.org/u/lastm4n)\
**Replies:** 3\
**Last updated:** [18 September 2019 14:00 UTC](https://discourse.nodered.org/t/rules-node-variable-is-name-value/15659 "2019-09-18T14:00:11Z")

</div>

Hello community, I have one question. Lets say i have in chat context one variable with name count and value 2. So if i use : let chat =msg.chat(); chat.set('count', 2); let count = chat.get('count'); //I will get…

---

## [Loops with GPIO](https://discourse.nodered.org/t/loops-with-gpio/15623)

<div class="topic-metadata">

**Author:** [@maku12](https://discourse.nodered.org/u/maku12)\
**Replies:** 11\
**Last updated:** [18 September 2019 09:56 UTC](https://discourse.nodered.org/t/loops-with-gpio/15623 "2019-09-18T09:56:44Z")

</div>

Hi, i want to turn on a led (gpio 17) for 2 seconds , then turn off for 5 seconds, and this should be repated 5 times. How can I do this with Nodes Red nodes? Many Thanks Kind Regards marc

---

## [Split- process separately - recombine](https://discourse.nodered.org/t/split-process-separately-recombine/15576)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 19\
**Last updated:** [18 September 2019 09:47 UTC](https://discourse.nodered.org/t/split-process-separately-recombine/15576 "2019-09-18T09:47:47Z")

</div>

Need a bit of help In this example - I'm splitting a msg and doing stuff in a parallel and then I want to recombine. \[{"id":"f14cd0c.f486c3","type":"inject","z":"29e0a8a9.d58188","name":"","topic":"","payload":"3",…

---

## [Node-red-contrib-web-worldmap2.1.0](https://discourse.nodered.org/t/node-red-contrib-web-worldmap2-1-0/15637)

<div class="topic-metadata">

**Author:** [@raz0rsedge](https://discourse.nodered.org/u/raz0rsedge)\
**Replies:** 6\
**Last updated:** [18 September 2019 09:25 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap2-1-0/15637 "2019-09-18T09:25:05Z")

</div>

Hello, thank you for the great worlmap node - it's a very nice and useful node. I recently updated my Nodes and atm I am having Version 2.1.0 I noticed that icons (serveral types of planes in my case) become invisible…

---

## [Persistent Storage of Global Context](https://discourse.nodered.org/t/persistent-storage-of-global-context/15104)

<div class="topic-metadata">

**Author:** [@rholmesa](https://discourse.nodered.org/u/rholmesa)\
**Replies:** 6\
**Last updated:** [18 September 2019 08:40 UTC](https://discourse.nodered.org/t/persistent-storage-of-global-context/15104 "2019-09-18T08:40:28Z")

</div>

Hi, Windows 10 - NR 0.20.7 I have been trying to use persistent storage to allow continuation over a restart. I have set the contextStorage to 'localfilesystem'. I can see the files as described in the documentation so…

---

## [Msg.topic msg.payload syntax](https://discourse.nodered.org/t/msg-topic-msg-payload-syntax/15649)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 3\
**Last updated:** [18 September 2019 06:18 UTC](https://discourse.nodered.org/t/msg-topic-msg-payload-syntax/15649 "2019-09-18T06:18:48Z")

</div>

Having read all through the forum and having read the node-red docs on functions and such I haven't found a clear answer to my question. This isn't related to a flow problem or a current project but for some reason this …

---

## [Can a standard function access the name its been given?](https://discourse.nodered.org/t/can-a-standard-function-access-the-name-its-been-given/15639)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 2\
**Last updated:** [17 September 2019 21:56 UTC](https://discourse.nodered.org/t/can-a-standard-function-access-the-name-its-been-given/15639 "2019-09-17T21:56:31Z")

</div>

e.g can I access the name as a variable inside the function?

---

## [\`LINK\` node - not showing all the links](https://discourse.nodered.org/t/link-node-not-showing-all-the-links/15603)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [17 September 2019 20:43 UTC](https://discourse.nodered.org/t/link-node-not-showing-all-the-links/15603 "2019-09-17T20:43:04Z")

</div>

(Bug?) I wasn't looking for this, but I see it happening so here is the story: Messing about on my "Machine health" tab. There is a link node. It has an external link to another tab - logging. Ok. Hmmm... Why?…

---

## [Extracting Data from payload](https://discourse.nodered.org/t/extracting-data-from-payload/15582)

<div class="topic-metadata">

**Author:** [@NPLPRS](https://discourse.nodered.org/u/NPLPRS)\
**Replies:** 10\
**Last updated:** [17 September 2019 18:25 UTC](https://discourse.nodered.org/t/extracting-data-from-payload/15582 "2019-09-17T18:25:26Z")

</div>

Hi all, Hoping someone can help as this is doing my head in! I have data coming in from a serial port (wireless USB dongle) which is connected fine and happily throwing out data whenever it arrives. The data arrives i…

---

## [Alexa Voice Command to start the flow?](https://discourse.nodered.org/t/alexa-voice-command-to-start-the-flow/15606)

<div class="topic-metadata">

**Author:** [@burn](https://discourse.nodered.org/u/burn)\
**Replies:** 10\
**Last updated:** [17 September 2019 16:53 UTC](https://discourse.nodered.org/t/alexa-voice-command-to-start-the-flow/15606 "2019-09-17T16:53:02Z")

</div>

Hello, I found ways to get stuff to turn on lights or turn them off based on door sensor state. I finally integrated my harmony and Alexa into the node - red. However, I do not know how to take advantage of it. For exa…

---

## [Http post request](https://discourse.nodered.org/t/http-post-request/15404)

<div class="topic-metadata">

**Author:** [@lastm4n](https://discourse.nodered.org/u/lastm4n)\
**Replies:** 1\
**Last updated:** [17 September 2019 11:50 UTC](https://discourse.nodered.org/t/http-post-request/15404 "2019-09-17T11:50:21Z")

</div>

Hi there, Im trying to make a post request with body: 1)form\_urlencoded 2)json I have already managed to make a get request and getting the response and also to traverse through it. Any help will be appreciated, whi…

---

## [Contains a sub string does not work](https://discourse.nodered.org/t/contains-a-sub-string-does-not-work/15621)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 3\
**Last updated:** [17 September 2019 09:41 UTC](https://discourse.nodered.org/t/contains-a-sub-string-does-not-work/15621 "2019-09-17T09:41:29Z")

</div>

Hello, I ve this payload: "Relay Off 4C:11:AE:0D:4B:48" I want to use a function node to check if the string contains "On" or "Off" and this is my function which doesnt work. pls help: if (msg.payload.contains == "Of…

---

## [Updated dashboard and this error happened](https://discourse.nodered.org/t/updated-dashboard-and-this-error-happened/15620)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [17 September 2019 09:34 UTC](https://discourse.nodered.org/t/updated-dashboard-and-this-error-happened/15620 "2019-09-17T09:34:59Z")

</div>

I turned on another RPI and decided to get it up to date. The flows are were worked. The only thing I updated was the dashboard. After that I saw this error: (All nodes listed are/were installed before the update)

---

## [Cannot connect to OPCUA Demo Server from Unified Automation (UaNetServer) using Node-RED IIoT Read or Write](https://discourse.nodered.org/t/cannot-connect-to-opcua-demo-server-from-unified-automation-uanetserver-using-node-red-iiot-read-or-write/15617)

<div class="topic-metadata">

**Author:** [@parth-ifam](https://discourse.nodered.org/u/parth-ifam)\
**Replies:** 6\
**Last updated:** [17 September 2019 09:30 UTC](https://discourse.nodered.org/t/cannot-connect-to-opcua-demo-server-from-unified-automation-uanetserver-using-node-red-iiot-read-or-write/15617 "2019-09-17T09:30:25Z")

</div>

Issue Unable to connect to OPCUA Server created by Unified Automation .NET classes What happens? The IIoT OPCUA Read or Write block shows connecting but cannot connect to the Server. Server is the demo server (ServerGe…

---

## [Write data from node-red to firestore](https://discourse.nodered.org/t/write-data-from-node-red-to-firestore/15610)

<div class="topic-metadata">

**Author:** [@marc](https://discourse.nodered.org/u/marc)\
**Replies:** 0\
**Last updated:** [17 September 2019 07:04 UTC](https://discourse.nodered.org/t/write-data-from-node-red-to-firestore/15610 "2019-09-17T07:04:58Z")

</div>

Hello I am trying to connect to firebase firestore (not the real-time database). I can read my collection and document but I cannot write to it. The msg.firestore property is mentioned in the documentation but I don't …

---

## [Apache, SSL, Reverse Proxy - getting dependent files to load](https://discourse.nodered.org/t/apache-ssl-reverse-proxy-getting-dependent-files-to-load/15601)

<div class="topic-metadata">

**Author:** [@snydered](https://discourse.nodered.org/u/snydered)\
**Replies:** 0\
**Last updated:** [16 September 2019 22:25 UTC](https://discourse.nodered.org/t/apache-ssl-reverse-proxy-getting-dependent-files-to-load/15601 "2019-09-16T22:25:13Z")

</div>

Hello! Trying to add nodeRed to an existing 2-server setup where both servers run apache and server #1 uses ProxyPass and ProxyPassReverse to handle the traffic between the backend server and the internet. Right now se…

---

## [Mulitple Xbee (S2C) communication via Node Red](https://discourse.nodered.org/t/mulitple-xbee-s2c-communication-via-node-red/15571)

<div class="topic-metadata">

**Author:** [@Rishaal](https://discourse.nodered.org/u/Rishaal)\
**Replies:** 2\
**Last updated:** [16 September 2019 21:24 UTC](https://discourse.nodered.org/t/mulitple-xbee-s2c-communication-via-node-red/15571 "2019-09-16T21:24:47Z")

</div>

Hi, I am new to node-red, can anyone help me with establishing communication between 2 xbees at first via node red. The Coordinator(xbee1) is connected to Rasp Pi 3 via serial which has node red installed whereas the ro…

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

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