# General

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

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

**Page:** 243

---

## [How do you use object or index key in a function?](https://discourse.nodered.org/t/how-do-you-use-object-or-index-key-in-a-function/75692)

<div class="topic-metadata">

**Author:** [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Replies:** 2\
**Last updated:** [24 February 2023 16:56 UTC](https://discourse.nodered.org/t/how-do-you-use-object-or-index-key-in-a-function/75692 "2023-02-24T16:56:32Z")

</div>

I would like to add the object key for an array to the end of a value in the array. The reason being the "value" is the same for each array and I need to make it unique. Maybe there is a better way than using the objec…

---

## [Send to mqtt a json only if certain condition](https://discourse.nodered.org/t/send-to-mqtt-a-json-only-if-certain-condition/75655)

<div class="topic-metadata">

**Author:** [@03397](https://discourse.nodered.org/u/03397)\
**Replies:** 15\
**Last updated:** [24 February 2023 16:56 UTC](https://discourse.nodered.org/t/send-to-mqtt-a-json-only-if-certain-condition/75655 "2023-02-24T16:56:14Z")

</div>

I have the following json that is exported from a function. "{"HeatingUpstairs":{"RSSI":-57,"LQI":49,"Battery":2650,"State":1,"Flags":1,"Measured":21.12,"Required":21.50}}" I want the following to be sent to an mqtt on…

---

## [The same condition does different things](https://discourse.nodered.org/t/the-same-condition-does-different-things/75675)

<div class="topic-metadata">

**Author:** [@Acii](https://discourse.nodered.org/u/Acii)\
**Replies:** 16\
**Last updated:** [24 February 2023 14:32 UTC](https://discourse.nodered.org/t/the-same-condition-does-different-things/75675 "2023-02-24T14:32:58Z")

</div>

I made a simple flow, it contains a node function that sets 2 variables to a certain numerical value, then the node function compares the numerical values of the two variables and sets one variable to a certain strin…

---

## [Sequence Check of Booleans](https://discourse.nodered.org/t/sequence-check-of-booleans/75688)

<div class="topic-metadata">

**Author:** [@jakobgabriel](https://discourse.nodered.org/u/jakobgabriel)\
**Replies:** 2\
**Last updated:** [24 February 2023 14:07 UTC](https://discourse.nodered.org/t/sequence-check-of-booleans/75688 "2023-02-24T14:07:01Z")

</div>

Hello all, i would need some help on a function to create a sequence check of multiple incomming booleans after each other: e.g.: I have 3 booleans that are incomming one after each other: first message : msg.payload…

---

## [Can't connect my node-red with mqtt broker (mosquitto) on pi4](https://discourse.nodered.org/t/cant-connect-my-node-red-with-mqtt-broker-mosquitto-on-pi4/75683)

<div class="topic-metadata">

**Author:** [@ZEus](https://discourse.nodered.org/u/ZEus)\
**Replies:** 9\
**Last updated:** [24 February 2023 13:47 UTC](https://discourse.nodered.org/t/cant-connect-my-node-red-with-mqtt-broker-mosquitto-on-pi4/75683 "2023-02-24T13:47:37Z")

</div>

hello everyone i can't connect my node\_red with mosquitto broker that i created in pi moreover i can't connect with mqtt explorer on the server anyone have any idea ???

---

## [Reconnecting RPI on WLAN without rebooting in order to get 5Ghz](https://discourse.nodered.org/t/reconnecting-rpi-on-wlan-without-rebooting-in-order-to-get-5ghz/75677)

<div class="topic-metadata">

**Author:** [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Replies:** 8\
**Last updated:** [24 February 2023 12:30 UTC](https://discourse.nodered.org/t/reconnecting-rpi-on-wlan-without-rebooting-in-order-to-get-5ghz/75677 "2023-02-24T12:30:03Z")

</div>

I have 14 RPIs connected to my Router (Fritzbox 6591). 12 of them can connect with 5 GHz. But when I have a power loss or a reboot of my router, they all reconnect with 2.4 GHz after rebooting. A second reboot of the RP…

---

## [How to simplify boolean expression](https://discourse.nodered.org/t/how-to-simplify-boolean-expression/75670)

<div class="topic-metadata">

**Author:** [@kjbambe](https://discourse.nodered.org/u/kjbambe)\
**Replies:** 17\
**Last updated:** [24 February 2023 11:56 UTC](https://discourse.nodered.org/t/how-to-simplify-boolean-expression/75670 "2023-02-24T11:56:35Z")

</div>

Hello there, is there a way to simplify this boolean expression? When I try $boolean(payload.errorCode=200) it always return false. I think because it is empty. And in the future i can have 5 or 10 elements, is it a way…

---

## [Which awnings with remote control option should I buy?](https://discourse.nodered.org/t/which-awnings-with-remote-control-option-should-i-buy/75681)

<div class="topic-metadata">

**Author:** [@Olaa](https://discourse.nodered.org/u/Olaa)\
**Replies:** 0\
**Last updated:** [24 February 2023 11:25 UTC](https://discourse.nodered.org/t/which-awnings-with-remote-control-option-should-i-buy/75681 "2023-02-24T11:25:39Z")

</div>

Will replace our old awnings. The new ones will be motor-driven. Here in Sweden, who sells awnings that can be controlled via Node Red, Arduino, etc.? Brand?

---

## [Integer from a payload with the function node](https://discourse.nodered.org/t/integer-from-a-payload-with-the-function-node/75671)

<div class="topic-metadata">

**Author:** [@HaVi](https://discourse.nodered.org/u/HaVi)\
**Replies:** 5\
**Last updated:** [24 February 2023 08:49 UTC](https://discourse.nodered.org/t/integer-from-a-payload-with-the-function-node/75671 "2023-02-24T08:49:50Z")

</div>

NR receives a payload from a Seeed node that contains the light intensity in lux (image). The path of the decoded luminosity payload is: payload.uplink\_message.decoded\_payload.messages\[0\].measurementValue With a functi…

---

## [Openweather node question](https://discourse.nodered.org/t/openweather-node-question/75668)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [24 February 2023 08:34 UTC](https://discourse.nodered.org/t/openweather-node-question/75668 "2023-02-24T08:34:44Z")

</div>

Existing Daily I ask openweather for a weather report and if there is no rain, it does something. All is good - to a point. Problem Say it starts raining at mid-night and rains until 10:00 then stops. Mid-day comes an…

---

## [Group management issues](https://discourse.nodered.org/t/group-management-issues/75571)

<div class="topic-metadata">

**Author:** [@rmwiseman](https://discourse.nodered.org/u/rmwiseman)\
**Replies:** 7\
**Last updated:** [24 February 2023 07:24 UTC](https://discourse.nodered.org/t/group-management-issues/75571 "2023-02-24T07:24:19Z")

</div>

I have noticed that there are some things I need to be able to do with groups, but can't. I've created a flow to demonstrate the issues I've noticed, which are partly to do with nested groups and partly to do with addin…

---

## [Option for auto install specific pallate](https://discourse.nodered.org/t/option-for-auto-install-specific-pallate/75664)

<div class="topic-metadata">

**Author:** [@sdrshnptl](https://discourse.nodered.org/u/sdrshnptl)\
**Replies:** 1\
**Last updated:** [24 February 2023 07:23 UTC](https://discourse.nodered.org/t/option-for-auto-install-specific-pallate/75664 "2023-02-24T07:23:53Z")

</div>

Hello All, Is there option to load set of pallate while installing or launching instance on node red. This way don't need to manually install individual and save time for repetition.

---

## [Graphics not working](https://discourse.nodered.org/t/graphics-not-working/75499)

<div class="topic-metadata">

**Author:** [@sahsha](https://discourse.nodered.org/u/sahsha)\
**Replies:** 9\
**Last updated:** [24 February 2023 07:17 UTC](https://discourse.nodered.org/t/graphics-not-working/75499 "2023-02-24T07:17:24Z")

</div>

I have one instance running on Mint OS but have started showing problem with graphics. like inject node is inoperable, debug messages not showing, node.status() doesn't show on function nodes and other nodes. but whe…

---

## [FTP Node not getting the file](https://discourse.nodered.org/t/ftp-node-not-getting-the-file/75398)

<div class="topic-metadata">

**Author:** [@droidblast](https://discourse.nodered.org/u/droidblast)\
**Replies:** 4\
**Last updated:** [24 February 2023 00:01 UTC](https://discourse.nodered.org/t/ftp-node-not-getting-the-file/75398 "2023-02-24T00:01:11Z")

</div>

Trying to grab the latest image(jpg) from a FTP server and cant quite get the flow to work. Can list and sort by date/time and find the image but get this error. Any advice on what I am missing here? msg : error "Error:…

---

## [Solecast for Influx](https://discourse.nodered.org/t/solecast-for-influx/75636)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 16\
**Last updated:** [23 February 2023 22:26 UTC](https://discourse.nodered.org/t/solecast-for-influx/75636 "2023-02-23T22:26:30Z")

</div>

Hi, I copyed a flow from an other user, to write solecast data (future) into influxdb: \[ { "id": "de74762b.088578", "type": "split", "z": "a85445c69706ecc9", "name": "", "splt…

---

## [Moes BHT-002 Thermostat - Zigbee - Unable control via Node-RED](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646)

<div class="topic-metadata">

**Author:** [@dazza9075](https://discourse.nodered.org/u/dazza9075)\
**Replies:** 6\
**Last updated:** [23 February 2023 21:51 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646 "2023-02-23T21:51:02Z")

</div>

Hi all, forgive me for my bumbling but i am at a loss what to do next I have installed and connected the following thermostat I am able to control the Thermostat via Z2M and HA. Node-RED / MQTT explorer pickes up the…

---

## [How to get value from OpenHab to Nodered](https://discourse.nodered.org/t/how-to-get-value-from-openhab-to-nodered/75657)

<div class="topic-metadata">

**Author:** [@demokedes](https://discourse.nodered.org/u/demokedes)\
**Replies:** 1\
**Last updated:** [23 February 2023 21:23 UTC](https://discourse.nodered.org/t/how-to-get-value-from-openhab-to-nodered/75657 "2023-02-23T21:23:07Z")

</div>

Dear all, For the last few months I am struggling with the fact Apple Find me Node is not working anymore on Node-red. I managed to get all the information from apple through OpenHab. Now I would like to get the value t…

---

## [Combine two arrays into one](https://discourse.nodered.org/t/combine-two-arrays-into-one/75652)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 3\
**Last updated:** [23 February 2023 20:18 UTC](https://discourse.nodered.org/t/combine-two-arrays-into-one/75652 "2023-02-23T20:18:19Z")

</div>

Hello, Hi @E1cid :kissing\_heart: I´ve another data source, which I want to combine: price today \[{"total":0.2828,"energy":0.1347,"tax":0.1481,"startsAt":"2023-02-23T00:00:00.000+01:00","currency":"EUR","level":"NORM…

---

## [TCP Duplex Communication](https://discourse.nodered.org/t/tcp-duplex-communication/75634)

<div class="topic-metadata">

**Author:** [@Highlander](https://discourse.nodered.org/u/Highlander)\
**Replies:** 13\
**Last updated:** [23 February 2023 18:43 UTC](https://discourse.nodered.org/t/tcp-duplex-communication/75634 "2023-02-23T18:43:36Z")

</div>

I have search far and wide and every where i see people asking a similar question and the people answering the fail to understand the problem. the problem! I have an inject node that must write msg.payload="Hello World…

---

## [Exec node results in Docker inconsistent](https://discourse.nodered.org/t/exec-node-results-in-docker-inconsistent/75610)

<div class="topic-metadata">

**Author:** [@LosinIt](https://discourse.nodered.org/u/LosinIt)\
**Replies:** 5\
**Last updated:** [23 February 2023 17:43 UTC](https://discourse.nodered.org/t/exec-node-results-in-docker-inconsistent/75610 "2023-02-23T17:43:08Z")

</div>

For over a year I've been charting my Internet connection metrics as reported by speedtest-cli run from an Exec node: With this configuration: It has always had occasional fails but in the last few months the failu…

---

## [Install node-red to windows server in different ports](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627)

<div class="topic-metadata">

**Author:** [@mbe23](https://discourse.nodered.org/u/mbe23)\
**Replies:** 3\
**Last updated:** [23 February 2023 16:30 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627 "2023-02-23T16:30:56Z")

</div>

Hello everyone, I need to install node-RED to a windows server in different ports and I can't find a way to do it. Already tried many things but none of them is working. I did this before in linux servers and it's easy …

---

## [MQTT Connections - Three paylods](https://discourse.nodered.org/t/mqtt-connections-three-paylods/75514)

<div class="topic-metadata">

**Author:** [@03397](https://discourse.nodered.org/u/03397)\
**Replies:** 10\
**Last updated:** [23 February 2023 16:18 UTC](https://discourse.nodered.org/t/mqtt-connections-three-paylods/75514 "2023-02-23T16:18:29Z")

</div>

Hey guys, I want to do the following task in Node Red. I have 3 different mqtt topics namely Owl/Away/HotWater, Owl/Away/HeatingUpstairs and Owl/Away/HeatingDownstairs. If all three topics have payload "off" then a payl…

---

## [No connection to Mosquitto with localhost (Docker)](https://discourse.nodered.org/t/no-connection-to-mosquitto-with-localhost-docker/74901)

<div class="topic-metadata">

**Author:** [@newbow](https://discourse.nodered.org/u/newbow)\
**Replies:** 9\
**Last updated:** [23 February 2023 16:11 UTC](https://discourse.nodered.org/t/no-connection-to-mosquitto-with-localhost-docker/74901 "2023-02-23T16:11:54Z")

</div>

First of all, I must apologize, as this topic is most likely not directly related to Node-RED, but to Docker. But maybe you guys can help me anyway. Node-RED is natively installed on a Raspberry Pi. In parallel, an ins…

---

## [Node-red V3 - node.warn is not working, function node not working?](https://discourse.nodered.org/t/node-red-v3-node-warn-is-not-working-function-node-not-working/75633)

<div class="topic-metadata">

**Author:** [@bs-eng](https://discourse.nodered.org/u/bs-eng)\
**Replies:** 5\
**Last updated:** [23 February 2023 14:33 UTC](https://discourse.nodered.org/t/node-red-v3-node-warn-is-not-working-function-node-not-working/75633 "2023-02-23T14:33:17Z")

</div>

Hi there! I installed yesterday on a fresh Debian 11 node-red V3. After setting up some new flows I am noticing that function nodes seem not to work for me. E.g. node.warn() produces no output. A code line like msg.pay…

---

## [Error in calculation function of crc-16 check code](https://discourse.nodered.org/t/error-in-calculation-function-of-crc-16-check-code/75591)

<div class="topic-metadata">

**Author:** [@Angin](https://discourse.nodered.org/u/Angin)\
**Replies:** 2\
**Last updated:** [23 February 2023 10:48 UTC](https://discourse.nodered.org/t/error-in-calculation-function-of-crc-16-check-code/75591 "2023-02-23T10:48:30Z")

</div>

Hi, Steve-Mcl, sorry to bother you again, I found a bug in your previous function for calculating crc16 that the last two digits of the check code will not be displayed if there are 0's in it, what do I need to do to fix…

---

## [Node-red-node-pi-gpiod unreliable results](https://discourse.nodered.org/t/node-red-node-pi-gpiod-unreliable-results/74883)

<div class="topic-metadata">

**Author:** [@krzydec](https://discourse.nodered.org/u/krzydec)\
**Replies:** 12\
**Last updated:** [23 February 2023 09:27 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpiod-unreliable-results/74883 "2023-02-23T09:27:05Z")

</div>

Hi there, I'm using Raspberry Pi 4 and running two instances of node-red. One is installed as a docker container and the other is a standard installation on the Raspberry Pi. I'm having an issue with the node-red-node-…

---

## [Messages from uibuilder page (not index.html) to nodered flow (not the flow with uibuilder node in it)](https://discourse.nodered.org/t/messages-from-uibuilder-page-not-index-html-to-nodered-flow-not-the-flow-with-uibuilder-node-in-it/75413)

<div class="topic-metadata">

**Author:** [@ianh33](https://discourse.nodered.org/u/ianh33)\
**Replies:** 18\
**Last updated:** [23 February 2023 09:23 UTC](https://discourse.nodered.org/t/messages-from-uibuilder-page-not-index-html-to-nodered-flow-not-the-flow-with-uibuilder-node-in-it/75413 "2023-02-23T09:23:13Z")

</div>

I am sure this is one of those "of course that's how you do it moments".... I've tried experimantation, thinking and searching (here). I have a number of uibuilder webpages for example index.html and cctv.html. I have…

---

## [Ir receiver sunfounder and rgb led](https://discourse.nodered.org/t/ir-receiver-sunfounder-and-rgb-led/75503)

<div class="topic-metadata">

**Author:** [@donuait](https://discourse.nodered.org/u/donuait)\
**Replies:** 2\
**Last updated:** [23 February 2023 08:20 UTC](https://discourse.nodered.org/t/ir-receiver-sunfounder-and-rgb-led/75503 "2023-02-23T08:20:17Z")

</div>

Good morning everyone. I would like to create a node-red flow that allows me to assign commands to the ir receiver through a sunfounder remote control that allow me to change the color of an rgb led. The RGB led sensor i…

---

## [Reading & writing global variable at the same time](https://discourse.nodered.org/t/reading-writing-global-variable-at-the-same-time/74070)

<div class="topic-metadata">

**Author:** [@sahsha](https://discourse.nodered.org/u/sahsha)\
**Replies:** 10\
**Last updated:** [23 February 2023 06:15 UTC](https://discourse.nodered.org/t/reading-writing-global-variable-at-the-same-time/74070 "2023-02-23T06:15:42Z")

</div>

Need help in understanding the best way to use global.set & global.get I'm reading OMRON plc D tags using FINS multiple node using below steps:- injecting below code using function node var tag\_1 = 'D1,D2,D3 .........…

---

## [Convert string of char to decimal?](https://discourse.nodered.org/t/convert-string-of-char-to-decimal/75596)

<div class="topic-metadata">

**Author:** [@SPS](https://discourse.nodered.org/u/SPS)\
**Replies:** 4\
**Last updated:** [23 February 2023 02:36 UTC](https://discourse.nodered.org/t/convert-string-of-char-to-decimal/75596 "2023-02-23T02:36:52Z")

</div>

Hey Experts, I hope to find some helps here. At first I convert INT to CHAR --\> Easy, take a look: // Split the string into array of individual values var parts = msg.payload.split(" "); // Remove the last blank part…

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

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