# General

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

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

**Page:** 593

---

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

<div class="topic-metadata">

**Author:** [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Replies:** 82\
**Last updated:** [6 March 2021 18:18 UTC](https://discourse.nodered.org/t/node-red-contrib-mcp23017chip/37999 "2021-03-06T18:18:37Z")

</div>

Marry Xmas to all :slight\_smile: I've installed and tried today this mcp23017chip node, but it says: TypeError: Cannot read property 'setBit' of null How can I debug it further, what could be the problem? Can I see s…

---

## [Serialdata and ui dashboard](https://discourse.nodered.org/t/serialdata-and-ui-dashboard/42046)

<div class="topic-metadata">

**Author:** [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Replies:** 20\
**Last updated:** [6 March 2021 18:02 UTC](https://discourse.nodered.org/t/serialdata-and-ui-dashboard/42046 "2021-03-06T18:02:40Z")

</div>

Hello, first and foremost i am a newbie learning on the fly. biggest problem is the different ways node red can do a function, however after watching so many videos im left to thinking that i have several issues. but let…

---

## [Problem with substr()](https://discourse.nodered.org/t/problem-with-substr/42137)

<div class="topic-metadata">

**Author:** [@Thewaver](https://discourse.nodered.org/u/Thewaver)\
**Replies:** 5\
**Last updated:** [6 March 2021 17:53 UTC](https://discourse.nodered.org/t/problem-with-substr/42137 "2021-03-06T17:53:39Z")

</div>

HELP!!!! Substr wont split a string on Node red but works in codepen.io (javascript dev app)?? The following works on JavaScript nodepen.io but NOT on node red: var tima = "2021-02-09T07:36:40:000Z."; const ss = Numb…

---

## [Can't remove node-red-contrib-gpio](https://discourse.nodered.org/t/cant-remove-node-red-contrib-gpio/42129)

<div class="topic-metadata">

**Author:** [@tcr000](https://discourse.nodered.org/u/tcr000)\
**Replies:** 3\
**Last updated:** [6 March 2021 13:13 UTC](https://discourse.nodered.org/t/cant-remove-node-red-contrib-gpio/42129 "2021-03-06T13:13:34Z")

</div>

I installed node-red-contrib-gpio and want to uninstall it. The pallette manager said it was in use but there were no nodes using it. I tried deleting the two config nodes firmata and ioplugin. Still can't remove it. Now…

---

## [Subtract 5minuts from a time out of a state node](https://discourse.nodered.org/t/subtract-5minuts-from-a-time-out-of-a-state-node/42122)

<div class="topic-metadata">

**Author:** [@MarkV](https://discourse.nodered.org/u/MarkV)\
**Replies:** 1\
**Last updated:** [6 March 2021 12:04 UTC](https://discourse.nodered.org/t/subtract-5minuts-from-a-time-out-of-a-state-node/42122 "2021-03-06T12:04:32Z")

</div>

Hello, This is my first post on this forum. I'm rather new to nodered and looked at severall youtube tutorials, but can't find the answer on my problem. I'm creating a flow in what has to do the following: When i cha…

---

## [Alexa-Remote2 activity - how to identify the device being controlled](https://discourse.nodered.org/t/alexa-remote2-activity-how-to-identify-the-device-being-controlled/42131)

<div class="topic-metadata">

**Author:** [@coppo23](https://discourse.nodered.org/u/coppo23)\
**Replies:** 2\
**Last updated:** [6 March 2021 11:43 UTC](https://discourse.nodered.org/t/alexa-remote2-activity-how-to-identify-the-device-being-controlled/42131 "2021-03-06T11:43:17Z")

</div>

Apologies if this has been asked but I couldn't find anything on it here. I can't find out whether remote 2 can report to node red when I change a device by voice command. Eg 'Alexa turn on hall picture rail'. I get a d…

---

## [Two simple bits of code can't coexist together - I'm clearly doing something stupid](https://discourse.nodered.org/t/two-simple-bits-of-code-cant-coexist-together-im-clearly-doing-something-stupid/42143)

<div class="topic-metadata">

**Author:** [@dclear](https://discourse.nodered.org/u/dclear)\
**Replies:** 2\
**Last updated:** [6 March 2021 11:24 UTC](https://discourse.nodered.org/t/two-simple-bits-of-code-cant-coexist-together-im-clearly-doing-something-stupid/42143 "2021-03-06T11:24:53Z")

</div>

//const shiftstart = msg.payload.shift\_start.timestamp; //const clockin = msg.payload.clockin\_time.timestamp; //const timeDifference = shiftstart - clockin; //const timeDifference2 = clockin - shiftstart; var breakd = ms…

---

## [How to deploy Node-red to the internet?](https://discourse.nodered.org/t/how-to-deploy-node-red-to-the-internet/41890)

<div class="topic-metadata">

**Author:** [@Reyner](https://discourse.nodered.org/u/Reyner)\
**Replies:** 11\
**Last updated:** [6 March 2021 10:32 UTC](https://discourse.nodered.org/t/how-to-deploy-node-red-to-the-internet/41890 "2021-03-06T10:32:25Z")

</div>

I am having an issue on making Node-red able to be accessed from the internet. Right now, I have made a Node-red flow but the UI only can be accessed when connecting to the same network. I would like to make my UI to be …

---

## [Garage open/closed via mqtt to node-red and grafana](https://discourse.nodered.org/t/garage-open-closed-via-mqtt-to-node-red-and-grafana/42124)

<div class="topic-metadata">

**Author:** [@trombose009](https://discourse.nodered.org/u/trombose009)\
**Replies:** 3\
**Last updated:** [6 March 2021 08:00 UTC](https://discourse.nodered.org/t/garage-open-closed-via-mqtt-to-node-red-and-grafana/42124 "2021-03-06T08:00:42Z")

</div>

Hi, I want to visualize the state of my garage. There is a sensor which can send a individual mqtt message to node-red. In the past, I was using an other system so I just sent "open" and "closed". Now I have node-red w…

---

## [Compare value with a variable (entity)](https://discourse.nodered.org/t/compare-value-with-a-variable-entity/42126)

<div class="topic-metadata">

**Author:** [@JJdave](https://discourse.nodered.org/u/JJdave)\
**Replies:** 2\
**Last updated:** [6 March 2021 05:25 UTC](https://discourse.nodered.org/t/compare-value-with-a-variable-entity/42126 "2021-03-06T05:25:23Z")

</div>

Hi, I am struggling with a - maybe - simple flow. Just want to compare 2 temperatures and in case the difference is bigger than a value do something. Below flow works s far, but the compare level is set to a fix value o…

---

## [Turn light On after motion detected 3 times within 5 mins](https://discourse.nodered.org/t/turn-light-on-after-motion-detected-3-times-within-5-mins/42127)

<div class="topic-metadata">

**Author:** [@klingon888](https://discourse.nodered.org/u/klingon888)\
**Replies:** 1\
**Last updated:** [6 March 2021 01:09 UTC](https://discourse.nodered.org/t/turn-light-on-after-motion-detected-3-times-within-5-mins/42127 "2021-03-06T01:09:46Z")

</div>

I want to use a MQTT motion sensor to turn ON a light BUT only after it has detected 3 motion triggers within a 5 minute period. If no 3 triggers within the 5 mins, then reset and start again. How can this be done in Nod…

---

## [Help needed parsing csv as json and get sum of them](https://discourse.nodered.org/t/help-needed-parsing-csv-as-json-and-get-sum-of-them/42132)

<div class="topic-metadata">

**Author:** [@umtksa](https://discourse.nodered.org/u/umtksa)\
**Replies:** 4\
**Last updated:** [6 March 2021 00:50 UTC](https://discourse.nodered.org/t/help-needed-parsing-csv-as-json-and-get-sum-of-them/42132 "2021-03-06T00:50:17Z")

</div>

I'm trying to parse a csv file I can parse it like this but I cannot get sum of all "Total" it has 8 entries on this example but it can be 1 or 19 sometimes can someone point me to the right direction :v: \[{"id":"…

---

## [Smoke detected, wait X minutes then turn on fan once smoke cleared](https://discourse.nodered.org/t/smoke-detected-wait-x-minutes-then-turn-on-fan-once-smoke-cleared/41521)

<div class="topic-metadata">

**Author:** [@hollapm](https://discourse.nodered.org/u/hollapm)\
**Replies:** 17\
**Last updated:** [6 March 2021 00:28 UTC](https://discourse.nodered.org/t/smoke-detected-wait-x-minutes-then-turn-on-fan-once-smoke-cleared/41521 "2021-03-06T00:28:20Z")

</div>

I'm working with Node-Red and want it to turn off my fans if smoke is detected to prevent possible spread of fire. What I would like for it to do is that one the status turns to clear, to wait X minutes and see if it's …

---

## [Object vs strings - extract a value from a split](https://discourse.nodered.org/t/object-vs-strings-extract-a-value-from-a-split/42112)

<div class="topic-metadata">

**Author:** [@SimonFili](https://discourse.nodered.org/u/SimonFili)\
**Replies:** 5\
**Last updated:** [6 March 2021 00:23 UTC](https://discourse.nodered.org/t/object-vs-strings-extract-a-value-from-a-split/42112 "2021-03-06T00:23:38Z")

</div>

Hi there, beginner warning! I have this flow working fine to extract the humidity value from a string: \[{"id":"879a195a.741c98","type":"inject","z":"5996dc31.f79034","name":"{\\"status\\":\\"ok\\",\\"humidity\\":\\"53\\"}","pr…

---

## [Help with error please - exec node chromium kiosk](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002)

<div class="topic-metadata">

**Author:** [@FatPilot](https://discourse.nodered.org/u/FatPilot)\
**Replies:** 35\
**Last updated:** [6 March 2021 00:19 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002 "2021-03-06T00:19:36Z")

</div>

Hi Everyone, I have been leaving my Pi running for longer periods and I'm seeing that the browser Chromium is crashing. Node Red itself is still up and running and if I point an external browser at it all is good. The …

---

## [Docker Image for Node Red 1.3.0-beta.1](https://discourse.nodered.org/t/docker-image-for-node-red-1-3-0-beta-1/42063)

<div class="topic-metadata">

**Author:** [@sastusb](https://discourse.nodered.org/u/sastusb)\
**Replies:** 1\
**Last updated:** [5 March 2021 21:08 UTC](https://discourse.nodered.org/t/docker-image-for-node-red-1-3-0-beta-1/42063 "2021-03-05T21:08:03Z")

</div>

Hello Everyone, I require a docker image of node red beta version 1.3.0-beta.1 which contains the mqtt v5 nodes. Can anyone help me in getting a docker image for the same. Steps to create the image is also welcome. T…

---

## [Increment number with true and false](https://discourse.nodered.org/t/increment-number-with-true-and-false/42106)

<div class="topic-metadata">

**Author:** [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Replies:** 12\
**Last updated:** [5 March 2021 21:05 UTC](https://discourse.nodered.org/t/increment-number-with-true-and-false/42106 "2021-03-05T21:05:15Z")

</div>

Looking for some help on writing a function node. i have a variable hbtset which i need to increase or decrease from either buttons on a dash board or in the flow elswhere. on pressing the button on the dash i want to s…

---

## [Use flow-variable inside http request node using {{variable}}](https://discourse.nodered.org/t/use-flow-variable-inside-http-request-node-using-variable/42116)

<div class="topic-metadata">

**Author:** [@letmedothis](https://discourse.nodered.org/u/letmedothis)\
**Replies:** 8\
**Last updated:** [5 March 2021 19:52 UTC](https://discourse.nodered.org/t/use-flow-variable-inside-http-request-node-using-variable/42116 "2021-03-05T19:52:46Z")

</div>

hello everyone I figured out how to save a "flow"-wide variable using "change"-node. somehow I can't directly use this variable inside a "http request node" I always need to use another "change" node to save the varia…

---

## [How to get get all global variables?](https://discourse.nodered.org/t/how-to-get-get-all-global-variables/42005)

<div class="topic-metadata">

**Author:** [@sathishkumarc14](https://discourse.nodered.org/u/sathishkumarc14)\
**Replies:** 5\
**Last updated:** [5 March 2021 18:14 UTC](https://discourse.nodered.org/t/how-to-get-get-all-global-variables/42005 "2021-03-05T18:14:50Z")

</div>

I need to get all global context variables. Is there any function to get all global variable?

---

## [How to restart flows automatically?](https://discourse.nodered.org/t/how-to-restart-flows-automatically/12993)

<div class="topic-metadata">

**Author:** [@swiftnesses](https://discourse.nodered.org/u/swiftnesses)\
**Replies:** 6\
**Last updated:** [5 March 2021 17:40 UTC](https://discourse.nodered.org/t/how-to-restart-flows-automatically/12993 "2021-03-05T17:40:56Z")

</div>

Dear all, We're encountering a situation whereby if we have loss of connectivity, a number of flows (namely websocket nodes) fail to reconnect, while I realise we could check the source for the problematic nodes and imp…

---

## [How to split an array based on an element within the array?](https://discourse.nodered.org/t/how-to-split-an-array-based-on-an-element-within-the-array/42067)

<div class="topic-metadata">

**Author:** [@dclear](https://discourse.nodered.org/u/dclear)\
**Replies:** 14\
**Last updated:** [5 March 2021 13:50 UTC](https://discourse.nodered.org/t/how-to-split-an-array-based-on-an-element-within-the-array/42067 "2021-03-05T13:50:22Z")

</div>

Sorry, I've Googled and Googled but I can't find out how to do this. I've looked at threads that show functions, jsonata expressions, split nodes, change nodes - but because the array will have staff in different positio…

---

## [Note about new version of Mosquitto MQTT broker v2.0.0](https://discourse.nodered.org/t/note-about-new-version-of-mosquitto-mqtt-broker-v2-0-0/42073)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 7\
**Last updated:** [5 March 2021 16:37 UTC](https://discourse.nodered.org/t/note-about-new-version-of-mosquitto-mqtt-broker-v2-0-0/42073 "2021-03-05T16:37:05Z")

</div>

In case people get caught out by this, there is a new version of Mosquitto that has breaking changes. You may well need to make some changes to your Mosquitto configuration file and restart in order to let Node-RED work…

---

## [Blitzortung.org flow for thunderstorms](https://discourse.nodered.org/t/blitzortung-org-flow-for-thunderstorms/42083)

<div class="topic-metadata">

**Author:** [@geotete](https://discourse.nodered.org/u/geotete)\
**Replies:** 13\
**Last updated:** [5 March 2021 16:35 UTC](https://discourse.nodered.org/t/blitzortung-org-flow-for-thunderstorms/42083 "2021-03-05T16:35:40Z")

</div>

Hi everybody, I would like to know if anyone is using info from blitzortung.org to implement a flow in Node Red. I know that Home Assistant have a integration for this, but I don't use HA. I need that info, to disconn…

---

## [How to calculate machine running time](https://discourse.nodered.org/t/how-to-calculate-machine-running-time/19529)

<div class="topic-metadata">

**Author:** [@KELVINHAN95](https://discourse.nodered.org/u/KELVINHAN95)\
**Replies:** 8\
**Last updated:** [5 March 2021 15:33 UTC](https://discourse.nodered.org/t/how-to-calculate-machine-running-time/19529 "2021-03-05T15:33:54Z")

</div>

Hi, I need to calculate my machine running time % and it needs to be updated every second. (Machine running time = Normal Running Time/Total Working Time) I have tried using this flow: https://github.com/cflurin/node-…

---

## [Node red x509 ssl home network not working](https://discourse.nodered.org/t/node-red-x509-ssl-home-network-not-working/41948)

<div class="topic-metadata">

**Author:** [@kubasmyk](https://discourse.nodered.org/u/kubasmyk)\
**Replies:** 6\
**Last updated:** [5 March 2021 15:26 UTC](https://discourse.nodered.org/t/node-red-x509-ssl-home-network-not-working/41948 "2021-03-05T15:26:02Z")

</div>

hello i have tried following this guide for ssl i have modified the command for the 2048 encryption i have added my common name of the raspberry pi 192 168 7 200 i have uncommented the line to enable https id dont…

---

## [How do I get data from database and send it to postman using postman](https://discourse.nodered.org/t/how-do-i-get-data-from-database-and-send-it-to-postman-using-postman/42072)

<div class="topic-metadata">

**Author:** [@Darshil](https://discourse.nodered.org/u/Darshil)\
**Replies:** 5\
**Last updated:** [5 March 2021 15:22 UTC](https://discourse.nodered.org/t/how-do-i-get-data-from-database-and-send-it-to-postman-using-postman/42072 "2021-03-05T15:22:19Z")

</div>

I have recently started using Node-Red. I want to understand how could I send data from my MySQL database to postman using Node-Red. I was advised to use GET option in http in node to send data to postman. I not sure …

---

## [REGEX Question using JSONata (Change node)](https://discourse.nodered.org/t/regex-question-using-jsonata-change-node/42092)

<div class="topic-metadata">

**Author:** [@vongomben](https://discourse.nodered.org/u/vongomben)\
**Replies:** 2\
**Last updated:** [5 March 2021 15:03 UTC](https://discourse.nodered.org/t/regex-question-using-jsonata-change-node/42092 "2021-03-05T15:03:08Z")

</div>

Hi. I'm trying to extract "Total: $10.00" from this text 02-01 00:00 02-28 23:59$10.00 $0.00 $10.00Subtotal: $10.00Tax: $0.00Total: $10.00Thanks for your purchase!Please do not hesitate to contact us if you have any qu…

---

## [Date/time based processing](https://discourse.nodered.org/t/date-time-based-processing/13241)

<div class="topic-metadata">

**Author:** [@martinschki](https://discourse.nodered.org/u/martinschki)\
**Replies:** 8\
**Last updated:** [5 March 2021 12:13 UTC](https://discourse.nodered.org/t/date-time-based-processing/13241 "2021-03-05T12:13:40Z")

</div>

I'm looking for a way to enable or disable processing or flows based on time of day or dates or vars. Example: I want audio feedback only during daytime and not while I'm sleeping. I want to turn certain task off …

---

## [Run container from node-red](https://discourse.nodered.org/t/run-container-from-node-red/42054)

<div class="topic-metadata">

**Author:** [@henrycosta05](https://discourse.nodered.org/u/henrycosta05)\
**Replies:** 3\
**Last updated:** [5 March 2021 11:26 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054 "2021-03-05T11:26:39Z")

</div>

Hi Guys, I have a case, I'd like to know if you have some example to run container from node-red. context: I'm extracting information from API and it's running; storing it in a .xlsx file; After that i'd like run a …

---

## [How to enable an OPC UA Server running in an Azure Container Instance?](https://discourse.nodered.org/t/how-to-enable-an-opc-ua-server-running-in-an-azure-container-instance/42080)

<div class="topic-metadata">

**Author:** [@tobiaspe](https://discourse.nodered.org/u/tobiaspe)\
**Replies:** 0\
**Last updated:** [5 March 2021 10:25 UTC](https://discourse.nodered.org/t/how-to-enable-an-opc-ua-server-running-in-an-azure-container-instance/42080 "2021-03-05T10:25:46Z")

</div>

I am building an IIoT demo bundle using Factory IO, an OPC UA Server and additional edge computing SW to retrieve relevant OPC UA tags. I found that the easiest, most controllable way to set up an OPC UA Server is by us…

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

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