# General

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

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

**Page:** 521

---

## [Payload\[variable\]](https://discourse.nodered.org/t/payload-variable/48650)

<div class="topic-metadata">

**Author:** [@PiMo131](https://discourse.nodered.org/u/PiMo131)\
**Replies:** 2\
**Last updated:** [20 July 2021 13:18 UTC](https://discourse.nodered.org/t/payload-variable/48650 "2021-07-20T13:18:17Z")

</div>

Hello, I am using below code to retrieve data from a payload. var row = flow.get("row"); msg.payload = msg.payload\[row\].payload; return msg; This is not working. Is there a way to set make the number variabel? msg.…

---

## [Starting node-red automatically on reboot](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654)

<div class="topic-metadata">

**Author:** [@jeffh](https://discourse.nodered.org/u/jeffh)\
**Replies:** 3\
**Last updated:** [20 July 2021 12:49 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654 "2021-07-20T12:49:19Z")

</div>

Hello, I have a WIN10 Pro PC running Node-Red. When my company has a power failure I need Node-Red to automatically load and fire up, so I set it up to execute node-red.cmd on boot. Simple enough. Upon reboot the cmd…

---

## [Play Audio Node Not Playing Audio](https://discourse.nodered.org/t/play-audio-node-not-playing-audio/48433)

<div class="topic-metadata">

**Author:** [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Replies:** 3\
**Last updated:** [20 July 2021 12:11 UTC](https://discourse.nodered.org/t/play-audio-node-not-playing-audio/48433 "2021-07-20T12:11:56Z")

</div>

The play audio node was working up until yesterday (7/13/21) and now it's broken. I haven't updated Node Red, the Play Audio node nor Chrome. Tried it in Edge and still no audio. Audio works on the PC. Tried my lapto…

---

## [Limits of MQTT or Node Red UI Dashboard?](https://discourse.nodered.org/t/limits-of-mqtt-or-node-red-ui-dashboard/48642)

<div class="topic-metadata">

**Author:** [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Replies:** 1\
**Last updated:** [20 July 2021 10:02 UTC](https://discourse.nodered.org/t/limits-of-mqtt-or-node-red-ui-dashboard/48642 "2021-07-20T10:02:46Z")

</div>

Hello folks, I have been using MQTT AWS nodes to send 50/60 signals to the node UI Dashboard. I have each topic going to one UI display function/ ie a text display or number display. Issue is that certain topics data s…

---

## [MQTT node show disconnected status](https://discourse.nodered.org/t/mqtt-node-show-disconnected-status/48594)

<div class="topic-metadata">

**Author:** [@boyvip\_123](https://discourse.nodered.org/u/boyvip_123)\
**Replies:** 23\
**Last updated:** [20 July 2021 09:25 UTC](https://discourse.nodered.org/t/mqtt-node-show-disconnected-status/48594 "2021-07-20T09:25:00Z")

</div>

I'm learning how to publish LM35 temperature readings via MQTT with the ESP8266 (NodeMCU) to any platform that supports MQTT or any other MQTT client. I’ll publish sensor readings to Node-RED Dashboard and the ESP8266 wi…

---

## [Using nested subflows with variables](https://discourse.nodered.org/t/using-nested-subflows-with-variables/48629)

<div class="topic-metadata">

**Author:** [@sameersbn](https://discourse.nodered.org/u/sameersbn)\
**Replies:** 0\
**Last updated:** [20 July 2021 07:19 UTC](https://discourse.nodered.org/t/using-nested-subflows-with-variables/48629 "2021-07-20T07:19:41Z")

</div>

Hello, I am using node-red with home assistant and I am trying to use subflows to simplify my flows. I am trying to add a subflow to another subflow and both these subflows have environment variables defined for specifyi…

---

## [Compiling GPS Protocol](https://discourse.nodered.org/t/compiling-gps-protocol/48626)

<div class="topic-metadata">

**Author:** [@EuroNiceguy](https://discourse.nodered.org/u/EuroNiceguy)\
**Replies:** 0\
**Last updated:** [20 July 2021 06:10 UTC](https://discourse.nodered.org/t/compiling-gps-protocol/48626 "2021-07-20T06:10:39Z")

</div>

Hello Everyone, I am intending to use Node-Red for the purposes of being a GPS Middleware, which will point to our Web UI & Apps. We have a catalogue of GPS tracking devices which we have protocols for and want to inte…

---

## [Newbie: convert modbus float \[array\] register to float value](https://discourse.nodered.org/t/newbie-convert-modbus-float-array-register-to-float-value/20293)

<div class="topic-metadata">

**Author:** [@PPz](https://discourse.nodered.org/u/PPz)\
**Replies:** 24\
**Last updated:** [20 July 2021 06:09 UTC](https://discourse.nodered.org/t/newbie-convert-modbus-float-array-register-to-float-value/20293 "2021-07-20T06:09:10Z")

</div>

Hi, I have problems to convert float and 32b (signed/unsigned) registers to obtain a result able to be sent to MQTT broker. The modbus device is a semaphore/Servelec Tbox unit. I use node-red modbustcp Example: I have …

---

## [How to trigger this function via an internal node](https://discourse.nodered.org/t/how-to-trigger-this-function-via-an-internal-node/48610)

<div class="topic-metadata">

**Author:** [@lei1](https://discourse.nodered.org/u/lei1)\
**Replies:** 1\
**Last updated:** [20 July 2021 05:30 UTC](https://discourse.nodered.org/t/how-to-trigger-this-function-via-an-internal-node/48610 "2021-07-20T05:30:15Z")

</div>

In the top right corner

---

## [Multi-switch switching](https://discourse.nodered.org/t/multi-switch-switching/48579)

<div class="topic-metadata">

**Author:** [@Ahamster13](https://discourse.nodered.org/u/Ahamster13)\
**Replies:** 11\
**Last updated:** [20 July 2021 04:42 UTC](https://discourse.nodered.org/t/multi-switch-switching/48579 "2021-07-20T04:42:44Z")

</div>

Hey there. I’m almost setup with home assistant now. Have one automation which I cannot figure out. I have deta 2,3&4 gang switches using tuya local. I have two switches, one 3 gang hall and one 3 gang studio. With the …

---

## [Pv Overload with batterystorage ( if then else)](https://discourse.nodered.org/t/pv-overload-with-batterystorage-if-then-else/48572)

<div class="topic-metadata">

**Author:** [@Dosepower](https://discourse.nodered.org/u/Dosepower)\
**Replies:** 4\
**Last updated:** [19 July 2021 21:51 UTC](https://discourse.nodered.org/t/pv-overload-with-batterystorage-if-then-else/48572 "2021-07-19T21:51:23Z")

</div>

Hey im new to node red and have some questions about if then. i only coded some scripts in auto it v3. can maybe someone correct my function. if msg.carpluged = 1 & msg.socvartabattery \> 75% & msg.PVoverload = 1 then i…

---

## [How to convert a snmp-returned mac address?](https://discourse.nodered.org/t/how-to-convert-a-snmp-returned-mac-address/48196)

<div class="topic-metadata">

**Author:** [@zubenubi](https://discourse.nodered.org/u/zubenubi)\
**Replies:** 12\
**Last updated:** [19 July 2021 22:10 UTC](https://discourse.nodered.org/t/how-to-convert-a-snmp-returned-mac-address/48196 "2021-07-19T22:10:34Z")

</div>

Hi, I am using an snmp node to query a network device. One node returns a value that shows in a debug node as 'OctetString'. Is there a node object I can use to convert this to an ascii string? Thanks

---

## [Running parallel nodes with asynchronous code](https://discourse.nodered.org/t/running-parallel-nodes-with-asynchronous-code/48588)

<div class="topic-metadata">

**Author:** [@louislefevre](https://discourse.nodered.org/u/louislefevre)\
**Replies:** 5\
**Last updated:** [19 July 2021 21:31 UTC](https://discourse.nodered.org/t/running-parallel-nodes-with-asynchronous-code/48588 "2021-07-19T21:31:12Z")

</div>

I'm trying to run asynchronous code within nodes that run in parallel, where the following is an example of a flow which does this. The important parts are the Async 1 and Async 2 nodes. These Async nodes are of the …

---

## [Help creating re-usable subflows (or nodes ?)](https://discourse.nodered.org/t/help-creating-re-usable-subflows-or-nodes/48605)

<div class="topic-metadata">

**Author:** [@RaptorUK](https://discourse.nodered.org/u/RaptorUK)\
**Replies:** 4\
**Last updated:** [19 July 2021 21:11 UTC](https://discourse.nodered.org/t/help-creating-re-usable-subflows-or-nodes/48605 "2021-07-19T21:11:12Z")

</div>

Hi folks, I'm looking for a little advice, I'm trying to make some re-usable code for a project I'm working on, it's a RS485 comms library which is used to talk to a bespoke bit of hardware The comms takes the form of …

---

## [Saving variables from a JSON object](https://discourse.nodered.org/t/saving-variables-from-a-json-object/48600)

<div class="topic-metadata">

**Author:** [@mafify](https://discourse.nodered.org/u/mafify)\
**Replies:** 12\
**Last updated:** [19 July 2021 20:11 UTC](https://discourse.nodered.org/t/saving-variables-from-a-json-object/48600 "2021-07-19T20:11:35Z")

</div>

Hello, I am working on finding a way to do something in an easy way and also run in less amount of time. I have a function that return a msg.payload in JSON format. It sends totally different messages but they are uniq…

---

## [Dynamic smtp server configuration to send mails](https://discourse.nodered.org/t/dynamic-smtp-server-configuration-to-send-mails/48597)

<div class="topic-metadata">

**Author:** [@tfuchs1987](https://discourse.nodered.org/u/tfuchs1987)\
**Replies:** 1\
**Last updated:** [19 July 2021 16:11 UTC](https://discourse.nodered.org/t/dynamic-smtp-server-configuration-to-send-mails/48597 "2021-07-19T16:11:03Z")

</div>

I want to dynamically provide the SMTP-Server information on a send-mail-node server, port, user-id, password, ssl and tls ... the whole package I read a few threads stating there is no direct way but since those are …

---

## [Send data to node red via gsm module and arduino](https://discourse.nodered.org/t/send-data-to-node-red-via-gsm-module-and-arduino/48535)

<div class="topic-metadata">

**Author:** [@abdosml](https://discourse.nodered.org/u/abdosml)\
**Replies:** 5\
**Last updated:** [19 July 2021 15:48 UTC](https://discourse.nodered.org/t/send-data-to-node-red-via-gsm-module-and-arduino/48535 "2021-07-19T15:48:05Z")

</div>

hello Community, I am a beginner in the field of iot I need to carry out a project which requires an external expansion so I need to initiate a gprs connection to send the information taken by the sensors connected with …

---

## [Using node.js module in node-red](https://discourse.nodered.org/t/using-node-js-module-in-node-red/48582)

<div class="topic-metadata">

**Author:** [@pmknowles](https://discourse.nodered.org/u/pmknowles)\
**Replies:** 6\
**Last updated:** [19 July 2021 14:15 UTC](https://discourse.nodered.org/t/using-node-js-module-in-node-red/48582 "2021-07-19T14:15:12Z")

</div>

I have a node.js module which I can read a smartcard UID - I'm running on Windows so none of the NFC/PCSC modules seem to work. I have seen that I can add the module in settings.js to refer to it in node-red but I'm not …

---

## [Error: Cannot find module 'mqtt'](https://discourse.nodered.org/t/error-cannot-find-module-mqtt/48581)

<div class="topic-metadata">

**Author:** [@Xecu114](https://discourse.nodered.org/u/Xecu114)\
**Replies:** 3\
**Last updated:** [19 July 2021 11:44 UTC](https://discourse.nodered.org/t/error-cannot-find-module-mqtt/48581 "2021-07-19T11:44:01Z")

</div>

Hello, i try to create a custom node and use the mqtt js library (is also used by the mqtt nodes from node-red). The big problem is: "Cannot find module 'mqtt'" I tried following things: npm install mqtt --save npm…

---

## [Convert 2 bytes in a buffer to integer](https://discourse.nodered.org/t/convert-2-bytes-in-a-buffer-to-integer/48354)

<div class="topic-metadata">

**Author:** [@Athurian](https://discourse.nodered.org/u/Athurian)\
**Replies:** 4\
**Last updated:** [16 July 2021 08:34 UTC](https://discourse.nodered.org/t/convert-2-bytes-in-a-buffer-to-integer/48354 "2021-07-16T08:34:37Z")

</div>

Please inquire about converting numbers. Here is the buffered value. \[1,3,10,1,4\] \> msg.payload Create a new buffer and truncate the item located at \[3\],\[4\] var pay1= Buffer.alloc(2); pay1\[0\]=msg.payload\[3\].slice(0,…

---

## [How to fix this language TCP](https://discourse.nodered.org/t/how-to-fix-this-language-tcp/48565)

<div class="topic-metadata">

**Author:** [@ohmsouak](https://discourse.nodered.org/u/ohmsouak)\
**Replies:** 8\
**Last updated:** [19 July 2021 09:03 UTC](https://discourse.nodered.org/t/how-to-fix-this-language-tcp/48565 "2021-07-19T09:03:57Z")

</div>

i want to sent data from sensor but data received it doesn't know what language. have idea for me thank you.

---

## [Trigger node expected behavior](https://discourse.nodered.org/t/trigger-node-expected-behavior/48563)

<div class="topic-metadata">

**Author:** [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Replies:** 6\
**Last updated:** [19 July 2021 07:28 UTC](https://discourse.nodered.org/t/trigger-node-expected-behavior/48563 "2021-07-19T07:28:09Z")

</div>

Hey, I'm having a problem with the trigger node and I'm not quite sure if it's the way it's meant to work or a bug. The functionality I'm trying to achieve is: forward all messages if no message has arrived for 5 min…

---

## [Deep learning result in json format](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560)

<div class="topic-metadata">

**Author:** [@MK1992](https://discourse.nodered.org/u/MK1992)\
**Replies:** 5\
**Last updated:** [19 July 2021 07:04 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560 "2021-07-19T07:04:03Z")

</div>

\[{"id":"22700825.3f9d38","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"98922031.33529","type":"cocossd","z":"22700825.3f9d38","name":"","x":390,"y":200,"wires":\[\["f13b7b29.1af548","54a7b73a.b97128"\]\]},…

---

## [Is there a way to click a button in relation to a specific page?](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483)

<div class="topic-metadata">

**Author:** [@Athurian](https://discourse.nodered.org/u/Athurian)\
**Replies:** 24\
**Last updated:** [19 July 2021 07:03 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483 "2021-07-19T07:03:29Z")

</div>

Is there any way to click a button for a specific page? for example I wish there was a way to automatically click the red box in the picture by a message received. Any examples or simple way?

---

## [Error: listen EADDRNOTAVAIL: address not available](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available/48566)

<div class="topic-metadata">

**Author:** [@PNWw](https://discourse.nodered.org/u/PNWw)\
**Replies:** 8\
**Last updated:** [19 July 2021 06:59 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available/48566 "2021-07-19T06:59:26Z")

</div>

Hi, How do I fix it. I'm very new to Node red and now I can't open to node red.

---

## [Creating the node that can load my model.json](https://discourse.nodered.org/t/creating-the-node-that-can-load-my-model-json/48541)

<div class="topic-metadata">

**Author:** [@MK1992](https://discourse.nodered.org/u/MK1992)\
**Replies:** 2\
**Last updated:** [19 July 2021 00:12 UTC](https://discourse.nodered.org/t/creating-the-node-that-can-load-my-model-json/48541 "2021-07-19T00:12:59Z")

</div>

Hi Does anyone of you know how to load my own deep learning model in json format in node red?

---

## [How to auto detect payload using UI template](https://discourse.nodered.org/t/how-to-auto-detect-payload-using-ui-template/47980)

<div class="topic-metadata">

**Author:** [@Hichem](https://discourse.nodered.org/u/Hichem)\
**Replies:** 13\
**Last updated:** [18 July 2021 23:48 UTC](https://discourse.nodered.org/t/how-to-auto-detect-payload-using-ui-template/47980 "2021-07-18T23:48:45Z")

</div>

Hello, I'm using node-red UI template, I have created a web page in wish I send a msg.payload and a msg.topic that should be displayed on my web page. the probleme is when I click a button to send a new payload, the w…

---

## [HTTP request and curl - basic question](https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 1\
**Last updated:** [18 July 2021 22:38 UTC](https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557 "2021-07-18T22:38:29Z")

</div>

What am I doing wrong? Here's my HTTP In node: If I enter this into command line: curl.exe http://10.1.1.37:1880/red/UPS?message=hellothere It works nicely. But if I enter this: curl.exe -d "message=hello there"…

---

## [Message: "not authorized"](https://discourse.nodered.org/t/message-not-authorized/48549)

<div class="topic-metadata">

**Author:** [@wael5300](https://discourse.nodered.org/u/wael5300)\
**Replies:** 1\
**Last updated:** [18 July 2021 20:02 UTC](https://discourse.nodered.org/t/message-not-authorized/48549 "2021-07-18T20:02:00Z")

</div>

Why I got "message: "not authorized"? Why when pressing deploy button the token in the HTTP request change?.

---

## [Impossible to delete Flow](https://discourse.nodered.org/t/impossible-to-delete-flow/48553)

<div class="topic-metadata">

**Author:** [@Dregi56](https://discourse.nodered.org/u/Dregi56)\
**Replies:** 3\
**Last updated:** [18 July 2021 19:46 UTC](https://discourse.nodered.org/t/impossible-to-delete-flow/48553 "2021-07-18T19:46:51Z")

</div>

Sorry for my English. I installed Node Red as an add-on in Home Assistant. I imported two sample flows. now I try to delete them, but when I reopen Node Red I always find them. Tips? Thank you

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

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