# General

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

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

**Page:** 332

---

## [How to convert a BASE64 -\> Hex -\> decimal](https://discourse.nodered.org/t/how-to-convert-a-base64-hex-decimal/66853)

<div class="topic-metadata">

**Author:** [@\_mirjka](https://discourse.nodered.org/u/_mirjka)\
**Replies:** 5\
**Last updated:** [24 August 2022 13:02 UTC](https://discourse.nodered.org/t/how-to-convert-a-base64-hex-decimal/66853 "2022-08-24T13:02:42Z")

</div>

Hi, I am querying various measurements from a Modbus device that transmits its data back via LoRaWan -\> MQTT -\> NodeRed as a Base64 string. With the Base64 -\> Hex Node I can already display the hex values. The display …

---

## [How to compare full arrays in node red](https://discourse.nodered.org/t/how-to-compare-full-arrays-in-node-red/66846)

<div class="topic-metadata">

**Author:** [@FranPanito](https://discourse.nodered.org/u/FranPanito)\
**Replies:** 3\
**Last updated:** [24 August 2022 12:39 UTC](https://discourse.nodered.org/t/how-to-compare-full-arrays-in-node-red/66846 "2022-08-24T12:39:16Z")

</div>

Hi, I´m new to node red and Javascript and got a problem that maybe somebody can help me to short out. I have a flow that in a point writes three 16bit status arrays in a database. It works ok but I´m trying to filter s…

---

## [Convert JSON data into PDF in Node RED](https://discourse.nodered.org/t/convert-json-data-into-pdf-in-node-red/66850)

<div class="topic-metadata">

**Author:** [@MiliH](https://discourse.nodered.org/u/MiliH)\
**Replies:** 2\
**Last updated:** [24 August 2022 12:14 UTC](https://discourse.nodered.org/t/convert-json-data-into-pdf-in-node-red/66850 "2022-08-24T12:14:09Z")

</div>

Hello, I want to convert data that is returned by table into PDF. Data returned by table is in JSON format and I want that data to be displayed in PDF file. Thanks in advance!

---

## [Help to Mqtt rules](https://discourse.nodered.org/t/help-to-mqtt-rules/66816)

<div class="topic-metadata">

**Author:** [@JY21](https://discourse.nodered.org/u/JY21)\
**Replies:** 4\
**Last updated:** [24 August 2022 11:38 UTC](https://discourse.nodered.org/t/help-to-mqtt-rules/66816 "2022-08-24T11:38:46Z")

</div>

Hi, I just discover nod-red, and I would like to pick up a value from my domoticz server and send to espeasy with a new Mqtt topic. Can anybody help me ? I would like now to send the reading of svalue5 to a new …

---

## [Extract certain values from XML](https://discourse.nodered.org/t/extract-certain-values-from-xml/66836)

<div class="topic-metadata">

**Author:** [@tob84](https://discourse.nodered.org/u/tob84)\
**Replies:** 2\
**Last updated:** [24 August 2022 08:50 UTC](https://discourse.nodered.org/t/extract-certain-values-from-xml/66836 "2022-08-24T08:50:39Z")

</div>

This should be a simple problem to solve but I'm not good with code so I've come up stuck I have an XML that i'm converting using the json node to extact vertain values using a function node. I want to get just the typ…

---

## [How to add icon and description in custom node](https://discourse.nodered.org/t/how-to-add-icon-and-description-in-custom-node/66834)

<div class="topic-metadata">

**Author:** [@Vedant](https://discourse.nodered.org/u/Vedant)\
**Replies:** 3\
**Last updated:** [24 August 2022 08:37 UTC](https://discourse.nodered.org/t/how-to-add-icon-and-description-in-custom-node/66834 "2022-08-24T08:37:12Z")

</div>

Hello Everyone! I am trying to add some description about the node and it's inputs as well as add Icon for the respective inputs of the custom node. Can anyone tell me if it is possible? Any reference link or help would…

---

## [Put multiple variables into global object](https://discourse.nodered.org/t/put-multiple-variables-into-global-object/66789)

<div class="topic-metadata">

**Author:** [@MR76](https://discourse.nodered.org/u/MR76)\
**Replies:** 9\
**Last updated:** [24 August 2022 08:13 UTC](https://discourse.nodered.org/t/put-multiple-variables-into-global-object/66789 "2022-08-24T08:13:42Z")

</div>

Hi, I want to put multiple messages I'm getting from a PLC into a global Object. How can I do that? I tried to change a code I ripped of another node-red instance, but can't get it to work. var msgTopic = msg.topic; v…

---

## [Pass one value in terms of another](https://discourse.nodered.org/t/pass-one-value-in-terms-of-another/66818)

<div class="topic-metadata">

**Author:** [@Coroebus](https://discourse.nodered.org/u/Coroebus)\
**Replies:** 2\
**Last updated:** [24 August 2022 07:53 UTC](https://discourse.nodered.org/t/pass-one-value-in-terms-of-another/66818 "2022-08-24T07:53:35Z")

</div>

Hello, i get 2 value "Débit" and "Ventilateur entrant" from a xml file to a HomeAssistant Sensor I need to send value "Ventilateur entrant" only when "Débit" is 170. I guess i should use a function but i don't underst…

---

## [Maps and putting location information on it](https://discourse.nodered.org/t/maps-and-putting-location-information-on-it/66747)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 15\
**Last updated:** [24 August 2022 04:53 UTC](https://discourse.nodered.org/t/maps-and-putting-location-information-on-it/66747 "2022-08-24T04:53:11Z")

</div>

Putting aside the dashboard for now I am more interested in the mechanics of getting it working. So I put it under general help rather than dashboard at this stage/point. I receive a message with Lat/Long/Alt (Altitude…

---

## [Anyway to loop function node?](https://discourse.nodered.org/t/anyway-to-loop-function-node/66802)

<div class="topic-metadata">

**Author:** [@EaB11](https://discourse.nodered.org/u/EaB11)\
**Replies:** 10\
**Last updated:** [24 August 2022 04:14 UTC](https://discourse.nodered.org/t/anyway-to-loop-function-node/66802 "2022-08-24T04:14:23Z")

</div>

hi... is there anyway to use inject node to start code in a function node which repeats as a loop and updates msg.payload at the end of each loop cycle ? and then continues to loop until another inject node is triggered …

---

## [Control generators](https://discourse.nodered.org/t/control-generators/66729)

<div class="topic-metadata">

**Author:** [@pierrot](https://discourse.nodered.org/u/pierrot)\
**Replies:** 41\
**Last updated:** [24 August 2022 02:50 UTC](https://discourse.nodered.org/t/control-generators/66729 "2022-08-24T02:50:55Z")

</div>

hello all please need help in setting up 3 switch relay to turn on one of my generators 1- i have 3 generators and electricity source 2- i added 4 optocouplers to see which one is on through led lamps on dashboard . …

---

## [Switch Nodes - Regex](https://discourse.nodered.org/t/switch-nodes-regex/66628)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 18\
**Last updated:** [23 August 2022 23:33 UTC](https://discourse.nodered.org/t/switch-nodes-regex/66628 "2022-08-23T23:33:15Z")

</div>

Guys, Trying to make some decisions on weather data that i am parsing and storing - it looks like this when stored I am wanting to use a switch node to look for permutations with the word sunny in the description. T…

---

## [Reading CSV and make a history](https://discourse.nodered.org/t/reading-csv-and-make-a-history/66824)

<div class="topic-metadata">

**Author:** [@Subsony](https://discourse.nodered.org/u/Subsony)\
**Replies:** 5\
**Last updated:** [23 August 2022 20:16 UTC](https://discourse.nodered.org/t/reading-csv-and-make-a-history/66824 "2022-08-23T20:16:43Z")

</div>

Good evening lads, finding and reading the right manuels to some topic is horrible. Even if you dont know how to declare it to google. So, im tryin here, after google isnt giving me answers. I can create and write a .…

---

## [Out of order http responses](https://discourse.nodered.org/t/out-of-order-http-responses/66809)

<div class="topic-metadata">

**Author:** [@Barbudor](https://discourse.nodered.org/u/Barbudor)\
**Replies:** 5\
**Last updated:** [23 August 2022 19:20 UTC](https://discourse.nodered.org/t/out-of-order-http-responses/66809 "2022-08-23T19:20:41Z")

</div>

Hello I have a problem of possible out-of-order processing in my flow The flow goes through an http-request, which I imagine is processed asynchronously. This introduce an uncertainty on the execution order. On this e…

---

## [Node-red crashing sendEvent.destination.node.receive is not a function](https://discourse.nodered.org/t/node-red-crashing-sendevent-destination-node-receive-is-not-a-function/66674)

<div class="topic-metadata">

**Author:** [@vajonam](https://discourse.nodered.org/u/vajonam)\
**Replies:** 12\
**Last updated:** [23 August 2022 16:23 UTC](https://discourse.nodered.org/t/node-red-crashing-sendevent-destination-node-receive-is-not-a-function/66674 "2022-08-23T16:23:26Z")

</div>

Nodred v.3.0.2 (Home assistant version) crashing, not very often, but about once in a couple of days 19 Aug 09:18:58 - \[red\] Uncaught Exception: 19 Aug 09:18:58 - \[error\] TypeError: sendEvent.destination.node.receive i…

---

## [Is anyone familiar with Tailscale?](https://discourse.nodered.org/t/is-anyone-familiar-with-tailscale/66707)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 12\
**Last updated:** [23 August 2022 16:21 UTC](https://discourse.nodered.org/t/is-anyone-familiar-with-tailscale/66707 "2022-08-23T16:21:31Z")

</div>

Not strictly Node-RED, but we have had some discussion here about securing remote access to NR servers. This product was recommended to me, and it looks like the free option would be enough for my needs on some small p…

---

## [Flow variables in subflows](https://discourse.nodered.org/t/flow-variables-in-subflows/65938)

<div class="topic-metadata">

**Author:** [@Giu-seppe](https://discourse.nodered.org/u/Giu-seppe)\
**Replies:** 6\
**Last updated:** [23 August 2022 14:29 UTC](https://discourse.nodered.org/t/flow-variables-in-subflows/65938 "2022-08-23T14:29:57Z")

</div>

Hello everybody, I would like to create a subflows that use their own internal variables in multiple subflow nodes These are the characteristics: the variables must be read and written in more nodes of the subflow. i…

---

## [Setting directory in "watcher" from context variable](https://discourse.nodered.org/t/setting-directory-in-watcher-from-context-variable/66811)

<div class="topic-metadata">

**Author:** [@kristvanbesien](https://discourse.nodered.org/u/kristvanbesien)\
**Replies:** 2\
**Last updated:** [23 August 2022 13:22 UTC](https://discourse.nodered.org/t/setting-directory-in-watcher-from-context-variable/66811 "2022-08-23T13:22:34Z")

</div>

I have been playing around with node red for a few days now. And there is something I cannot figure out. So I ask it here. There exists a "watcher" node (as well as several variants, like "watcher directory" that you ca…

---

## [How to Configure Multiple repeat intervals for different Alarms& Events -\>5Seconds ,4Seconds etc.,](https://discourse.nodered.org/t/how-to-configure-multiple-repeat-intervals-for-different-alarms-events-5seconds-4seconds-etc/66741)

<div class="topic-metadata">

**Author:** [@sknodered](https://discourse.nodered.org/u/sknodered)\
**Replies:** 14\
**Last updated:** [23 August 2022 12:55 UTC](https://discourse.nodered.org/t/how-to-configure-multiple-repeat-intervals-for-different-alarms-events-5seconds-4seconds-etc/66741 "2022-08-23T12:55:04Z")

</div>

I Need Two Repeat Intervals for same Node . One Interval is 5 Seconds & other one is 4 Seconds, as Machine is sending the events in different times viz., 5 seconds & 4 Seconds. But Now I am able to capture one event 5 se…

---

## [Modbus flex sequencer and text field](https://discourse.nodered.org/t/modbus-flex-sequencer-and-text-field/66804)

<div class="topic-metadata">

**Author:** [@uka](https://discourse.nodered.org/u/uka)\
**Replies:** 2\
**Last updated:** [23 August 2022 12:17 UTC](https://discourse.nodered.org/t/modbus-flex-sequencer-and-text-field/66804 "2022-08-23T12:17:23Z")

</div>

Hello everyone. I'm a new node-red user. I have recently explored reading and writing data via modbus. I have a little problem with the modbus flex sequencer. Reading itself works, but displaying two values with text fi…

---

## [Function with payload + X](https://discourse.nodered.org/t/function-with-payload-x/66796)

<div class="topic-metadata">

**Author:** [@Peres](https://discourse.nodered.org/u/Peres)\
**Replies:** 25\
**Last updated:** [23 August 2022 11:34 UTC](https://discourse.nodered.org/t/function-with-payload-x/66796 "2022-08-23T11:34:17Z")

</div>

Hello I'm new here and need a little help :frowning: At node red, I do air conditioning automation. I would like the air conditioning to turn on when the room temperature is higher by, for example, 2 than the currentl…

---

## [Package my Node-Red application with PKG/NEXE or similar](https://discourse.nodered.org/t/package-my-node-red-application-with-pkg-nexe-or-similar/66801)

<div class="topic-metadata">

**Author:** [@jacques\_za](https://discourse.nodered.org/u/jacques_za)\
**Replies:** 3\
**Last updated:** [23 August 2022 10:10 UTC](https://discourse.nodered.org/t/package-my-node-red-application-with-pkg-nexe-or-similar/66801 "2022-08-23T10:10:52Z")

</div>

I have developed an application, which handles data flow and updates a dashboard so that users can see what is going on. Everything works well, but now I need to deploy this to various clients. I specifically do not wa…

---

## [Cors policy error inside template node but not in http request node](https://discourse.nodered.org/t/cors-policy-error-inside-template-node-but-not-in-http-request-node/66797)

<div class="topic-metadata">

**Author:** [@joshuaC](https://discourse.nodered.org/u/joshuaC)\
**Replies:** 2\
**Last updated:** [23 August 2022 09:12 UTC](https://discourse.nodered.org/t/cors-policy-error-inside-template-node-but-not-in-http-request-node/66797 "2022-08-23T09:12:51Z")

</div>

Hello, I have a template node that is trying to retrieve data with a post request (fetch), I have a CORS policy error that I don't manage to fix. Access to fetch at 'https://example-elasticsearch/index\_3/\_search' from …

---

## [Combine and convert into an integer value](https://discourse.nodered.org/t/combine-and-convert-into-an-integer-value/66434)

<div class="topic-metadata">

**Author:** [@Ganesh](https://discourse.nodered.org/u/Ganesh)\
**Replies:** 9\
**Last updated:** [23 August 2022 07:59 UTC](https://discourse.nodered.org/t/combine-and-convert-into-an-integer-value/66434 "2022-08-23T07:59:11Z")

</div>

Hi I have multi - level sliders each representing an sensor giving 1 or 0 bit based on input which can be seen in debug window , these induvial values i have to combine and convert into an integer value \[Moderator N…

---

## [Creating a Data-Logger](https://discourse.nodered.org/t/creating-a-data-logger/66783)

<div class="topic-metadata">

**Author:** [@ChristophCaina](https://discourse.nodered.org/u/ChristophCaina)\
**Replies:** 4\
**Last updated:** [23 August 2022 07:53 UTC](https://discourse.nodered.org/t/creating-a-data-logger/66783 "2022-08-23T07:53:00Z")

</div>

Hi, I am using NodeRed in combination with HomeAssistant. So far, everything is working as expected - but right now, I am struggling with creating some kind of datalogger like behave. Home Assistant In HomeAssistant,…

---

## [Separation of runtime GUI from editor](https://discourse.nodered.org/t/separation-of-runtime-gui-from-editor/66764)

<div class="topic-metadata">

**Author:** [@mbenson](https://discourse.nodered.org/u/mbenson)\
**Replies:** 2\
**Last updated:** [22 August 2022 21:33 UTC](https://discourse.nodered.org/t/separation-of-runtime-gui-from-editor/66764 "2022-08-22T21:33:53Z")

</div>

I was just curious to see if there are any plugins or external tools to Node Red that could provide a more user friendly runtime GUI, separate from the flow design editor it already has. First, Node Red is a fantastic t…

---

## [Error on install the node-red-contrib-opcua-server](https://discourse.nodered.org/t/error-on-install-the-node-red-contrib-opcua-server/66761)

<div class="topic-metadata">

**Author:** [@7094001998](https://discourse.nodered.org/u/7094001998)\
**Replies:** 0\
**Last updated:** [22 August 2022 14:35 UTC](https://discourse.nodered.org/t/error-on-install-the-node-red-contrib-opcua-server/66761 "2022-08-22T14:35:02Z")

</div>

---

## [Solution for GPS tracking of the vehicle](https://discourse.nodered.org/t/solution-for-gps-tracking-of-the-vehicle/66745)

<div class="topic-metadata">

**Author:** [@demokedes](https://discourse.nodered.org/u/demokedes)\
**Replies:** 8\
**Last updated:** [22 August 2022 15:11 UTC](https://discourse.nodered.org/t/solution-for-gps-tracking-of-the-vehicle/66745 "2022-08-22T15:11:07Z")

</div>

Dear all, I have an idea of creating flow, that will track GPS location of my car. I was thinking of installing a GPS sensor into the car and create everything on my own, but I see there are already sensors like this av…

---

## [How to loop over msg.payload.states as array of objects](https://discourse.nodered.org/t/how-to-loop-over-msg-payload-states-as-array-of-objects/66766)

<div class="topic-metadata">

**Author:** [@novski](https://discourse.nodered.org/u/novski)\
**Replies:** 7\
**Last updated:** [22 August 2022 19:15 UTC](https://discourse.nodered.org/t/how-to-loop-over-msg-payload-states-as-array-of-objects/66766 "2022-08-22T19:15:24Z")

</div>

I have an msg object that has sub array's of objects. How can I add an element in to the objects? This is my data: pastebin link The problem is that every time I try to work with msg.payload.portstates (an array of…

---

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

<div class="topic-metadata">

**Author:** [@k5map](https://discourse.nodered.org/u/k5map)\
**Replies:** 0\
**Last updated:** [22 August 2022 18:37 UTC](https://discourse.nodered.org/t/node-red-contrib-myq/66772 "2022-08-22T18:37:31Z")

</div>

I've been using this node for years but earlier today it stopped reporting device status. When I attempt to retrieve the device status, I get multiple errors: Error received Could not refresh devices! I've confirmed …

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

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