# General

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

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

**Page:** 327

---

## [Set msg.payload to msg.payload.xyz](https://discourse.nodered.org/t/set-msg-payload-to-msg-payload-xyz/67326)

<div class="topic-metadata">

**Author:** [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Replies:** 3\
**Last updated:** [5 September 2022 08:57 UTC](https://discourse.nodered.org/t/set-msg-payload-to-msg-payload-xyz/67326 "2022-09-05T08:57:12Z")

</div>

Hello all :wave:, I am here asking is there a JSON code where i can input it in my function node and achieve this function, for example I am trying to set my msg.payload to msg.payload.xyz. Would appreciate it!

---

## [Get an updated status node-red-contrib-velux 0.0.7](https://discourse.nodered.org/t/get-an-updated-status-node-red-contrib-velux-0-0-7/67344)

<div class="topic-metadata">

**Author:** [@goedelroedel](https://discourse.nodered.org/u/goedelroedel)\
**Replies:** 2\
**Last updated:** [5 September 2022 08:50 UTC](https://discourse.nodered.org/t/get-an-updated-status-node-red-contrib-velux-0-0-7/67344 "2022-09-05T08:50:21Z")

</div>

With the Flow I want to control a Velux roller shutter via a slide switch. To transmit a new position to the roller shutter is possible, but if the roller shutter is controlled with the remote control, the slide switch …

---

## [Other dynamic parameters in MQTT in](https://discourse.nodered.org/t/other-dynamic-parameters-in-mqtt-in/67329)

<div class="topic-metadata">

**Author:** [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Replies:** 3\
**Last updated:** [4 September 2022 20:56 UTC](https://discourse.nodered.org/t/other-dynamic-parameters-in-mqtt-in/67329 "2022-09-04T20:56:11Z")

</div>

Hello, The documentation of the MQTT in node and this post Dynamic MQTT node's "actions-\>connect" guidance needed - #2 by Steve-Mcl explains how to use the dynamic subscription for: broker For the "connect" action, thi…

---

## [How to convert a number that is 0 to a decimal 0.0?](https://discourse.nodered.org/t/how-to-convert-a-number-that-is-0-to-a-decimal-0-0/67289)

<div class="topic-metadata">

**Author:** [@questuk](https://discourse.nodered.org/u/questuk)\
**Replies:** 42\
**Last updated:** [4 September 2022 14:35 UTC](https://discourse.nodered.org/t/how-to-convert-a-number-that-is-0-to-a-decimal-0-0/67289 "2022-09-04T14:35:26Z")

</div>

Hi, I have looked at many posts on here but cannot find the answer. I have a counter that resets to a number 0 at midnight. But my graph requires it as decimal 0.0 How do i convert and keep it a as a decimal number …

---

## [No debug output in side-bar. Tried lots, stuck, please help](https://discourse.nodered.org/t/no-debug-output-in-side-bar-tried-lots-stuck-please-help/12418)

<div class="topic-metadata">

**Author:** [@EnigmaHQ](https://discourse.nodered.org/u/EnigmaHQ)\
**Replies:** 97\
**Last updated:** [4 September 2022 07:49 UTC](https://discourse.nodered.org/t/no-debug-output-in-side-bar-tried-lots-stuck-please-help/12418 "2022-09-04T07:49:16Z")

</div>

Hi, I am running the first two tutorial examples, but I get nothing in my debug box. In my command prompt, I can see that it seems to have started the flows, but my debug box is empty. Any ides why?

---

## [Node-red-contrib-opcua: "OPC UA Client" sometimes fails to reconnect](https://discourse.nodered.org/t/node-red-contrib-opcua-opc-ua-client-sometimes-fails-to-reconnect/66221)

<div class="topic-metadata">

**Author:** [@meierva](https://discourse.nodered.org/u/meierva)\
**Replies:** 3\
**Last updated:** [3 September 2022 15:26 UTC](https://discourse.nodered.org/t/node-red-contrib-opcua-opc-ua-client-sometimes-fails-to-reconnect/66221 "2022-09-03T15:26:23Z")

</div>

Hi everybody. I use node-red-contrib-opcua (Version 0.2.284) to connect Node-RED with my WinCC OPC-UA Server (Version 7.5.2). I have multiple instances of the "OPC UA Client" node. Each of them subscribes to 7-13 vari…

---

## [Default placement of new flow at far right is inconvenient](https://discourse.nodered.org/t/default-placement-of-new-flow-at-far-right-is-inconvenient/67294)

<div class="topic-metadata">

**Author:** [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Replies:** 1\
**Last updated:** [3 September 2022 20:17 UTC](https://discourse.nodered.org/t/default-placement-of-new-flow-at-far-right-is-inconvenient/67294 "2022-09-03T20:17:09Z")

</div>

I've got a roughly 30 flows in one NR app. I like to organize my flows in a particular way. When I create a new flow and it goes all the way to the right, I have to drag it back to where I want it. It would be handy if t…

---

## [Two way switch infinite loop](https://discourse.nodered.org/t/two-way-switch-infinite-loop/67115)

<div class="topic-metadata">

**Author:** [@petertmooney](https://discourse.nodered.org/u/petertmooney)\
**Replies:** 23\
**Last updated:** [3 September 2022 01:01 UTC](https://discourse.nodered.org/t/two-way-switch-infinite-loop/67115 "2022-09-03T01:01:46Z")

</div>

Hi all I am very new to node red and home automation. I have a switch at the bottom of the stairs and one also at the top. There is also a lamp at top and bottom of stairs, ie. hall/landing. I have been trying to creat…

---

## [Changing the message payload outcome without changing the function](https://discourse.nodered.org/t/changing-the-message-payload-outcome-without-changing-the-function/67004)

<div class="topic-metadata">

**Author:** [@Hossam\_Ali](https://discourse.nodered.org/u/Hossam_Ali)\
**Replies:** 17\
**Last updated:** [3 September 2022 13:15 UTC](https://discourse.nodered.org/t/changing-the-message-payload-outcome-without-changing-the-function/67004 "2022-09-03T13:15:04Z")

</div>

Hi, I have a node function that gives an output with a certain data format as follows This is the script that produces the TempHumi outcome in the figure above var TempHumi = \[2\]; tempEvents = msg.payload.TempHumi…

---

## [Join outputs from two python scripts into one message](https://discourse.nodered.org/t/join-outputs-from-two-python-scripts-into-one-message/67042)

<div class="topic-metadata">

**Author:** [@ED209](https://discourse.nodered.org/u/ED209)\
**Replies:** 17\
**Last updated:** [3 September 2022 12:06 UTC](https://discourse.nodered.org/t/join-outputs-from-two-python-scripts-into-one-message/67042 "2022-09-03T12:06:30Z")

</div>

Hi, First time poster here so be gentle. I'm not a programmer and just dabbling in python and JS to try and learn a bit more. I have the Docker Pi Sensor Hub board for my Pi and the first script is the sensorhub.py scr…

---

## [Problem with multiple modbus clients](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278)

<div class="topic-metadata">

**Author:** [@Angin](https://discourse.nodered.org/u/Angin)\
**Replies:** 2\
**Last updated:** [3 September 2022 09:02 UTC](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278 "2022-09-03T09:02:05Z")

</div>

Hi all. I'm using node-red-contrib-modbus for the first time and I'm having a problem, I've spent the whole day looking for a solution but I haven't found the right answer yet. The problem is: If I have multiple modbus…

---

## [Bit Strip from Int](https://discourse.nodered.org/t/bit-strip-from-int/67221)

<div class="topic-metadata">

**Author:** [@HansZnarf](https://discourse.nodered.org/u/HansZnarf)\
**Replies:** 26\
**Last updated:** [3 September 2022 06:28 UTC](https://discourse.nodered.org/t/bit-strip-from-int/67221 "2022-09-03T06:28:56Z")

</div>

This should be a simple application but we are struggling. The least significant bit is to the right. Bit 1 = Input 1 Register read = 1 Bit 2 = Input 2 Register read = 2 Bit 3 = Input 3 Register read = 4 Bit 4 = Inp…

---

## [Bit handling in JavaScript](https://discourse.nodered.org/t/bit-handling-in-javascript/67271)

<div class="topic-metadata">

**Author:** [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Replies:** 0\
**Last updated:** [2 September 2022 21:37 UTC](https://discourse.nodered.org/t/bit-handling-in-javascript/67271 "2022-09-02T21:37:57Z")

</div>

Thank you @Colin, JavaScript is a very deep well. You learn something new every time. Not easy for C/C++ people. I'm going to switch from UINT32 datatype to Array of Boolean in my redPlc nodes.

---

## [How to convert 16 bits into a word / integer](https://discourse.nodered.org/t/how-to-convert-16-bits-into-a-word-integer/67263)

<div class="topic-metadata">

**Author:** [@HansZnarf](https://discourse.nodered.org/u/HansZnarf)\
**Replies:** 8\
**Last updated:** [2 September 2022 21:10 UTC](https://discourse.nodered.org/t/how-to-convert-16-bits-into-a-word-integer/67263 "2022-09-02T21:10:02Z")

</div>

Need the reverse of this so dashboard switches can effect a control device. Have looked - any ideas? Thanks - Hans

---

## [Asking for help with public MQTT brokers - which one?](https://discourse.nodered.org/t/asking-for-help-with-public-mqtt-brokers-which-one/66987)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 44\
**Last updated:** [2 September 2022 21:03 UTC](https://discourse.nodered.org/t/asking-for-help-with-public-mqtt-brokers-which-one/66987 "2022-09-02T21:03:53Z")

</div>

I am still a bit away from committing, but I may be in need of a public MQTT broker. Lowish traffic - once set up. But testing will be a bit laborious. I've seen hive and emqx. Just wanting to ask people's data on ho…

---

## [Bug? using \`change\` node (jsonata) to add non-existing flow/global variables generates no error](https://discourse.nodered.org/t/bug-using-change-node-jsonata-to-add-non-existing-flow-global-variables-generates-no-error/67148)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 12\
**Last updated:** [2 September 2022 17:53 UTC](https://discourse.nodered.org/t/bug-using-change-node-jsonata-to-add-non-existing-flow-global-variables-generates-no-error/67148 "2022-09-02T17:53:05Z")

</div>

NR v3.0.2 If you use use jsonata in a change node and try to add flow/global variables together and one of the flow/global variables does not exist, no error and no result is returned. Example flow: \[{"id":"1b34f2e…

---

## [Huemagic node install](https://discourse.nodered.org/t/huemagic-node-install/67267)

<div class="topic-metadata">

**Author:** [@wolfbastion](https://discourse.nodered.org/u/wolfbastion)\
**Replies:** 0\
**Last updated:** [2 September 2022 19:15 UTC](https://discourse.nodered.org/t/huemagic-node-install/67267 "2022-09-02T19:15:17Z")

</div>

Hello, i want to add button(hue) to my automations but couldnt find the propper node for it. i install Hue Magic and manage configure bridge but cant understand how to get items id to use as node

---

## [How to set an limit to the value entered in text input node](https://discourse.nodered.org/t/how-to-set-an-limit-to-the-value-entered-in-text-input-node/67050)

<div class="topic-metadata">

**Author:** [@Ganesh](https://discourse.nodered.org/u/Ganesh)\
**Replies:** 13\
**Last updated:** [2 September 2022 10:13 UTC](https://discourse.nodered.org/t/how-to-set-an-limit-to-the-value-entered-in-text-input-node/67050 "2022-09-02T10:13:37Z")

</div>

Hi I want to create an input box for my dashboard which has a limit of min = 0 and max = 100 value so only value within the limit can be entered I am using text input node but unable to set this min and max value Tha…

---

## [Help with routing messages based on unique identifiers](https://discourse.nodered.org/t/help-with-routing-messages-based-on-unique-identifiers/67257)

<div class="topic-metadata">

**Author:** [@Corey](https://discourse.nodered.org/u/Corey)\
**Replies:** 11\
**Last updated:** [2 September 2022 17:32 UTC](https://discourse.nodered.org/t/help-with-routing-messages-based-on-unique-identifiers/67257 "2022-09-02T17:32:49Z")

</div>

Hi all, Looking for some help in routing messages. I have a function node that is manipulating data pulled from an API every 60 seconds and doing some if/else statements to determine output and calculate when a relay sh…

---

## [Exec node isn't working correctly](https://discourse.nodered.org/t/exec-node-isnt-working-correctly/67256)

<div class="topic-metadata">

**Author:** [@JustinB](https://discourse.nodered.org/u/JustinB)\
**Replies:** 14\
**Last updated:** [2 September 2022 13:16 UTC](https://discourse.nodered.org/t/exec-node-isnt-working-correctly/67256 "2022-09-02T13:16:34Z")

</div>

Hello community, I wrote a script, which edits a file and copies it into another folder. If I execute it myself it works just fine and does its work but as long as Node-Red is executing it with the exec node, the files…

---

## [String to IEEE 754 Converter](https://discourse.nodered.org/t/string-to-ieee-754-converter/44124)

<div class="topic-metadata">

**Author:** [@rogier](https://discourse.nodered.org/u/rogier)\
**Replies:** 13\
**Last updated:** [2 September 2022 13:07 UTC](https://discourse.nodered.org/t/string-to-ieee-754-converter/44124 "2022-09-02T13:07:41Z")

</div>

For my Project to write with a dashdoard slider to my DDC controller i need to convert the Decimal value to a IEEE-754 Floating Point. On this site i found a correct working converter. IEEE-754 Floating Point Converter …

---

## [Node polling...is it wrong](https://discourse.nodered.org/t/node-polling-is-it-wrong/67245)

<div class="topic-metadata">

**Author:** [@Thewaver](https://discourse.nodered.org/u/Thewaver)\
**Replies:** 3\
**Last updated:** [2 September 2022 12:46 UTC](https://discourse.nodered.org/t/node-polling-is-it-wrong/67245 "2022-09-02T12:46:07Z")

</div>

Is it deemed wrong to continually pole a node checking its state every second (does it use lots of bandwidth etc?). EG: I have a node waiting for a thermostate to turn off before it can turn on another device. If they ar…

---

## [How to store all contents of an Intel hex file it on sql server database?](https://discourse.nodered.org/t/how-to-store-all-contents-of-an-intel-hex-file-it-on-sql-server-database/67248)

<div class="topic-metadata">

**Author:** [@Nirajan](https://discourse.nodered.org/u/Nirajan)\
**Replies:** 5\
**Last updated:** [2 September 2022 12:06 UTC](https://discourse.nodered.org/t/how-to-store-all-contents-of-an-intel-hex-file-it-on-sql-server-database/67248 "2022-09-02T12:06:20Z")

</div>

Hi Everyone, I am reading an Intel hex file of size more than 60KB, using an 'file in' node, which gives output as 'a single Buffer object'. I have a table with a field of data type varbinary(max) in ms sql server. I …

---

## [Usage of buienradar rain prediction](https://discourse.nodered.org/t/usage-of-buienradar-rain-prediction/67218)

<div class="topic-metadata">

**Author:** [@Jos-77](https://discourse.nodered.org/u/Jos-77)\
**Replies:** 4\
**Last updated:** [2 September 2022 11:26 UTC](https://discourse.nodered.org/t/usage-of-buienradar-rain-prediction/67218 "2022-09-02T11:26:57Z")

</div>

I would like to use the Home Assistant Buienradar intergration to calculate the rainfall for 5 days. In HA there are rain 1d to rain 5d. if average is \<10 I want my irrigation to run on some days. And then I run into a…

---

## [Node Red Button in HA dashboard](https://discourse.nodered.org/t/node-red-button-in-ha-dashboard/67240)

<div class="topic-metadata">

**Author:** [@Abernus](https://discourse.nodered.org/u/Abernus)\
**Replies:** 1\
**Last updated:** [2 September 2022 09:13 UTC](https://discourse.nodered.org/t/node-red-button-in-ha-dashboard/67240 "2022-09-02T09:13:26Z")

</div>

Hi all, I have just started with Node-Red and I am on a big learning curve with it. I am just trying to create a simple flow that will turn selected lights off at a random time. However, I want a button or slider or som…

---

## [Wallbox-Energy-Chart](https://discourse.nodered.org/t/wallbox-energy-chart/67247)

<div class="topic-metadata">

**Author:** [@Pinky](https://discourse.nodered.org/u/Pinky)\
**Replies:** 2\
**Last updated:** [2 September 2022 08:44 UTC](https://discourse.nodered.org/t/wallbox-energy-chart/67247 "2022-09-02T08:44:00Z")

</div>

Hello everybody, I've got a question regarding storing Data in node-red. I have a Wallbox with an endpoint that delivers the amount of energy in kWh used. Every day this amount grows. I already thought about storing t…

---

## [Format data to INT\_16 for Modbus TCP](https://discourse.nodered.org/t/format-data-to-int-16-for-modbus-tcp/67238)

<div class="topic-metadata">

**Author:** [@telinal](https://discourse.nodered.org/u/telinal)\
**Replies:** 4\
**Last updated:** [2 September 2022 08:40 UTC](https://discourse.nodered.org/t/format-data-to-int-16-for-modbus-tcp/67238 "2022-09-02T08:40:55Z")

</div>

We are using the 1-wire node to read temperature from a 1-wire sensor. The node output msg.payload is as follows: {"payload":15.25,"topic":"","\_msgid":"dac51164c5a5ec03"} We need to write this temperature data (in this…

---

## [API - Json-variable - multiple request](https://discourse.nodered.org/t/api-json-variable-multiple-request/66895)

<div class="topic-metadata">

**Author:** [@Gus0711](https://discourse.nodered.org/u/Gus0711)\
**Replies:** 9\
**Last updated:** [2 September 2022 07:22 UTC](https://discourse.nodered.org/t/api-json-variable-multiple-request/66895 "2022-09-02T07:22:54Z")

</div>

Hello, I am using Node-red to perform API queries on modems. The steps are as follows: 1 – Request 1: Initialize the connection with the modem - \*\*\*It's OK! \*\*\* 2 – Request 2: Retrieve the token then send a second re…

---

## [Writing(Array Data) to OPC-UA server by using OPC-UA-IIOT node client](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051)

<div class="topic-metadata">

**Author:** [@Ferdi84](https://discourse.nodered.org/u/Ferdi84)\
**Replies:** 3\
**Last updated:** [2 September 2022 06:39 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051 "2022-09-02T06:39:07Z")

</div>

Array\_Write\_IIOT.json (3.2 KB) I am trying to write array of data through IIOT opc-UA client to OPC-UA PLC server. i could able to read/write single integer as well as reading of array of data too. but while writing ar…

---

## [Problem with global.get - it keeps returning a null value](https://discourse.nodered.org/t/problem-with-global-get-it-keeps-returning-a-null-value/67243)

<div class="topic-metadata">

**Author:** [@gadget](https://discourse.nodered.org/u/gadget)\
**Replies:** 1\
**Last updated:** [2 September 2022 05:44 UTC](https://discourse.nodered.org/t/problem-with-global-get-it-keeps-returning-a-null-value/67243 "2022-09-02T05:44:37Z")

</div>

I'm at a loss why this is happening. I have a current global context "totalvalue" per this: I'm accessing the context in a function node per the simple example flow shown below : However this returns a null value …

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

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