# General

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

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

**Page:** 472

---

## [Reset Join Node](https://discourse.nodered.org/t/reset-join-node/53375)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 2\
**Last updated:** [8 November 2021 13:23 UTC](https://discourse.nodered.org/t/reset-join-node/53375 "2021-11-08T13:23:34Z")

</div>

Hi there, is there a way to reset a join node without sending the buffered messages? My case: the join node is set to manual: Send the message: After a number of message parts 5 There are 4 messages buffered and I w…

---

## [Extract values from Json Object](https://discourse.nodered.org/t/extract-values-from-json-object/52906)

<div class="topic-metadata">

**Author:** [@Mr.816](https://discourse.nodered.org/u/Mr.816)\
**Replies:** 6\
**Last updated:** [8 November 2021 12:58 UTC](https://discourse.nodered.org/t/extract-values-from-json-object/52906 "2021-11-08T12:58:50Z")

</div>

Hello, I'm using a great node to connect a universal robot to node red. The connection works finde and I'm getting Json Data from the robot. I would like to pick certain values from this json object and display them o…

---

## [Error in node-red-contrib-modbus installation in windows environment](https://discourse.nodered.org/t/error-in-node-red-contrib-modbus-installation-in-windows-environment/53371)

<div class="topic-metadata">

**Author:** [@migkikas](https://discourse.nodered.org/u/migkikas)\
**Replies:** 2\
**Last updated:** [8 November 2021 12:50 UTC](https://discourse.nodered.org/t/error-in-node-red-contrib-modbus-installation-in-windows-environment/53371 "2021-11-08T12:50:35Z")

</div>

Hello I tried to install node-red-contrib-modbus in node-red in windows machine and a got the following errors: node.js version is 14.4.0 LTS npm version is 6.14.5 Node-red version 2.0.6 C:\\Users\\energytop\\AppData\\…

---

## [Node-red-contrib-finite-statemachine nesting messages in FSM loops (warning + solution)](https://discourse.nodered.org/t/node-red-contrib-finite-statemachine-nesting-messages-in-fsm-loops-warning-solution/53374)

<div class="topic-metadata">

**Author:** [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Replies:** 0\
**Last updated:** [8 November 2021 12:48 UTC](https://discourse.nodered.org/t/node-red-contrib-finite-statemachine-nesting-messages-in-fsm-loops-warning-solution/53374 "2021-11-08T12:48:02Z")

</div>

In a previous post about the issue, I didn't find any cause about node-red stopping the FSM loops after some time, but I've finally figured it out and already raised an issue in the NPM page of the node. As I pointed ou…

---

## [Rounding floats](https://discourse.nodered.org/t/rounding-floats/53369)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 7\
**Last updated:** [8 November 2021 11:55 UTC](https://discourse.nodered.org/t/rounding-floats/53369 "2021-11-08T11:55:41Z")

</div>

Hi, guys. Can anyone tell me what is the best way to ROUND a float with 6 decimals to for instance a float with 2 decimals. ".Precision()", has the disadvantage that it includes the number of digits before the comma.

---

## [Msg.topic previously set still appearing](https://discourse.nodered.org/t/msg-topic-previously-set-still-appearing/53364)

<div class="topic-metadata">

**Author:** [@geoffreydemaagd](https://discourse.nodered.org/u/geoffreydemaagd)\
**Replies:** 7\
**Last updated:** [8 November 2021 11:14 UTC](https://discourse.nodered.org/t/msg-topic-previously-set-still-appearing/53364 "2021-11-08T11:14:52Z")

</div>

The msg.topic seems to be stored in the node but what of you don't want this? But only pushing the topic received by a earlier node in the flow? When using for example a switch with topic = msg.topic, the topic set befo…

---

## [NRD to Influxdb-strings](https://discourse.nodered.org/t/nrd-to-influxdb-strings/53315)

<div class="topic-metadata">

**Author:** [@Fishy](https://discourse.nodered.org/u/Fishy)\
**Replies:** 4\
**Last updated:** [8 November 2021 10:50 UTC](https://discourse.nodered.org/t/nrd-to-influxdb-strings/53315 "2021-11-08T10:50:03Z")

</div>

Having the same trouble as many others have from my research, my data from NRD labelled as value is being sent as a string to influxdb and hence not recognised by Grafana. The set up is Atlas Scientific water sensors se…

---

## [Optimize js function to convert decimal to 8 outputs](https://discourse.nodered.org/t/optimize-js-function-to-convert-decimal-to-8-outputs/53305)

<div class="topic-metadata">

**Author:** [@xjust](https://discourse.nodered.org/u/xjust)\
**Replies:** 5\
**Last updated:** [8 November 2021 10:33 UTC](https://discourse.nodered.org/t/optimize-js-function-to-convert-decimal-to-8-outputs/53305 "2021-11-08T10:33:43Z")

</div>

I have 6 instances of snmp requests that converts the output (decimal value) to each of the 8 outputs (true/false) using the function below. All of these outputs go to switches inside dashboard. Anybody can help me mak…

---

## [Unable to load drop-down using payload values](https://discourse.nodered.org/t/unable-to-load-drop-down-using-payload-values/53359)

<div class="topic-metadata">

**Author:** [@ana1955](https://discourse.nodered.org/u/ana1955)\
**Replies:** 1\
**Last updated:** [8 November 2021 10:29 UTC](https://discourse.nodered.org/t/unable-to-load-drop-down-using-payload-values/53359 "2021-11-08T10:29:37Z")

</div>

Hello, I am using a template node to create UI page with 2 dropdowns. The option values are in 2 arrays. When the arrays are hardcoded inside the fill1st() and fill2nd() functions, the UI page works. Now, I want the opti…

---

## [Convert timestamp 2021-09-24T16:01:14.979695752Z](https://discourse.nodered.org/t/convert-timestamp-2021-09-24t1614-979695752z/53339)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 14\
**Last updated:** [8 November 2021 04:23 UTC](https://discourse.nodered.org/t/convert-timestamp-2021-09-24t1614-979695752z/53339 "2021-11-08T04:23:34Z")

</div>

I am not sure if this question has been already answered but I have not found it. Eventually.....sorry for asking the same question. I would like to convert the timestamp given in this format: 2021-09-24T16:01:14.97969…

---

## [HTML request Node - Digest authentication header](https://discourse.nodered.org/t/html-request-node-digest-authentication-header/53353)

<div class="topic-metadata">

**Author:** [@pmnodered](https://discourse.nodered.org/u/pmnodered)\
**Replies:** 0\
**Last updated:** [8 November 2021 02:24 UTC](https://discourse.nodered.org/t/html-request-node-digest-authentication-header/53353 "2021-11-08T02:24:59Z")

</div>

Hi guys I have a Http Request node to send a GET with Digest authentication. If I check the "Use authentication", select the "Digest" option and write the user and password, work perfectly. Can any share some example …

---

## [Promise can't return msg](https://discourse.nodered.org/t/promise-cant-return-msg/53317)

<div class="topic-metadata">

**Author:** [@RootShell-coder](https://discourse.nodered.org/u/RootShell-coder)\
**Replies:** 4\
**Last updated:** [7 November 2021 23:52 UTC](https://discourse.nodered.org/t/promise-cant-return-msg/53317 "2021-11-07T23:52:19Z")

</div>

I am trying to use a function with the following seems to be simple code. settings.js functionGlobalContext: { bluebird:require('bluebird') }, function const Promise = context.global.bluebird const p…

---

## [Temperature probe offset](https://discourse.nodered.org/t/temperature-probe-offset/53318)

<div class="topic-metadata">

**Author:** [@mfassier](https://discourse.nodered.org/u/mfassier)\
**Replies:** 2\
**Last updated:** [7 November 2021 23:34 UTC](https://discourse.nodered.org/t/temperature-probe-offset/53318 "2021-11-07T23:34:05Z")

</div>

Hi all. I use a USB temperature and RH logger that feeds into Node Red. I managed to get as far as getting data but I'm in a pickle over the temperature probe: using the Buffer-parser, I managed to extract the proper me…

---

## [Help with complicated timing flow](https://discourse.nodered.org/t/help-with-complicated-timing-flow/53337)

<div class="topic-metadata">

**Author:** [@gschmidl](https://discourse.nodered.org/u/gschmidl)\
**Replies:** 2\
**Last updated:** [7 November 2021 20:00 UTC](https://discourse.nodered.org/t/help-with-complicated-timing-flow/53337 "2021-11-07T20:00:37Z")

</div>

I have a Hue setup I'm trying to migrate to zigbee2mqtt with node-red on HomeAssistant. I've managed to move almost everything over except the most complicated bit, which I had already hacked together even on the Hue bri…

---

## [Convert MQTT Topic for Gauge](https://discourse.nodered.org/t/convert-mqtt-topic-for-gauge/52953)

<div class="topic-metadata">

**Author:** [@gerribaldi](https://discourse.nodered.org/u/gerribaldi)\
**Replies:** 5\
**Last updated:** [7 November 2021 19:42 UTC](https://discourse.nodered.org/t/convert-mqtt-topic-for-gauge/52953 "2021-11-07T19:42:37Z")

</div>

Hi, i got a mqtt topic which provides a temp value. p4d2mqtt/sensor/Aussentemperatur\_0x4/state : msg.payload : Object object value: 3.5 How can i get the 3.5 to a gauge? I try severell things without success. Conn…

---

## [Node red crashes](https://discourse.nodered.org/t/node-red-crashes/53265)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 13\
**Last updated:** [7 November 2021 17:55 UTC](https://discourse.nodered.org/t/node-red-crashes/53265 "2021-11-07T17:55:39Z")

</div>

Hi! every time node red crashes when doing nothing have no idea what or where i found this below in the log Nov 5 15:11:49 bomb-game Node-RED\[16879\]: (node:16879) UnhandledPromiseRejectionWarning: Unhandled promise …

---

## [Holiday Selection Script](https://discourse.nodered.org/t/holiday-selection-script/53256)

<div class="topic-metadata">

**Author:** [@Amishman](https://discourse.nodered.org/u/Amishman)\
**Replies:** 9\
**Last updated:** [7 November 2021 15:02 UTC](https://discourse.nodered.org/t/holiday-selection-script/53256 "2021-11-07T15:02:23Z")

</div>

I am not very good with Javascript. I found the Easter function and Googled how to setup the rest. This script is in a function node that I use for my holiday lights. It used to work but now that I have changed some thin…

---

## [How can I programmatically generate nodes in a flow?](https://discourse.nodered.org/t/how-can-i-programmatically-generate-nodes-in-a-flow/53267)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 15\
**Last updated:** [7 November 2021 14:29 UTC](https://discourse.nodered.org/t/how-can-i-programmatically-generate-nodes-in-a-flow/53267 "2021-11-07T14:29:43Z")

</div>

I've done a search and the answer is pretty much no but in the spirit of the truly lazy programmer I will again ask! :wink: I know you must hate this question but I'm interested in adding a set of nodes (mqtt topic and …

---

## [Understanding Link call node - before I start changing my flow design](https://discourse.nodered.org/t/understanding-link-call-node-before-i-start-changing-my-flow-design/53321)

<div class="topic-metadata">

**Author:** [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Replies:** 4\
**Last updated:** [7 November 2021 14:19 UTC](https://discourse.nodered.org/t/understanding-link-call-node-before-i-start-changing-my-flow-design/53321 "2021-11-07T14:19:02Z")

</div>

Just have some questions and thoughts before I change anything in my working flow. I have a "simple" subflow as seen below. Inside it I have the tf coco ssd node. The flow works very well but since the subflow is loaded …

---

## [MCP3424 with RedPLC](https://discourse.nodered.org/t/mcp3424-with-redplc/52623)

<div class="topic-metadata">

**Author:** [@Crashy77](https://discourse.nodered.org/u/Crashy77)\
**Replies:** 11\
**Last updated:** [7 November 2021 12:48 UTC](https://discourse.nodered.org/t/mcp3424-with-redplc/52623 "2021-11-07T12:48:06Z")

</div>

Hi. I´m using 5 I²C modules for my Pi. Today I´ve tried to work with an analog input 18bit, but I don´t know how to configurate it. IA-address: 0 Dev-Type: mcp3424 Dev-Addr.: 68H Mode of all 4 channels is 18bit, ra…

---

## [Function doesn't work](https://discourse.nodered.org/t/function-doesnt-work/53254)

<div class="topic-metadata">

**Author:** [@maru](https://discourse.nodered.org/u/maru)\
**Replies:** 4\
**Last updated:** [7 November 2021 10:41 UTC](https://discourse.nodered.org/t/function-doesnt-work/53254 "2021-11-07T10:41:52Z")

</div>

Hi All, I've made a small test flow and fiddling with decoding my MQTT payload and it still won't work :smirk: My goal is to get a output like this: { "protocol\_version": 2, "device\_id": 3547, "battery\_voltage":…

---

## [Sort objects that contain array values?](https://discourse.nodered.org/t/sort-objects-that-contain-array-values/53320)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 4\
**Last updated:** [7 November 2021 08:53 UTC](https://discourse.nodered.org/t/sort-objects-that-contain-array-values/53320 "2021-11-07T08:53:42Z")

</div>

Guys, I have an object that represents a series of prices and times - as per the screenshot below What i need to do is loop through all of the objects and then sort them based on the price field (lowest to highest) A…

---

## [Split value from an object](https://discourse.nodered.org/t/split-value-from-an-object/53291)

<div class="topic-metadata">

**Author:** [@Ramzi1](https://discourse.nodered.org/u/Ramzi1)\
**Replies:** 4\
**Last updated:** [6 November 2021 21:20 UTC](https://discourse.nodered.org/t/split-value-from-an-object/53291 "2021-11-06T21:20:32Z")

</div>

hello! i'm new with node red i want to know how to sent the value only the function in the photo is empty thanks alot

---

## [More regex guidance](https://discourse.nodered.org/t/more-regex-guidance/53304)

<div class="topic-metadata">

**Author:** [@Romprod](https://discourse.nodered.org/u/Romprod)\
**Replies:** 2\
**Last updated:** [6 November 2021 19:59 UTC](https://discourse.nodered.org/t/more-regex-guidance/53304 "2021-11-06T19:59:38Z")

</div>

Hey guys, I'm back again struggling to understand how to format some more text I have the following that I'm trying to split up and comma delimit (if that's the correct phrase) msg.payload= 1Chelsea1 Burnley,0Manchest…

---

## [Function editing with iPad broken \[solved, actually not iPad-related\]](https://discourse.nodered.org/t/function-editing-with-ipad-broken-solved-actually-not-ipad-related/53043)

<div class="topic-metadata">

**Author:** [@yesdred](https://discourse.nodered.org/u/yesdred)\
**Replies:** 11\
**Last updated:** [6 November 2021 16:12 UTC](https://discourse.nodered.org/t/function-editing-with-ipad-broken-solved-actually-not-ipad-related/53043 "2021-11-06T16:12:28Z")

</div>

I can no longer select function code when editing it from an iOS device. Node-RED's context popup overrides iOS's. Every once in a while I need to edit flows through a VPN while I am on the road and until recently (defin…

---

## [Node-red-node-pi-mcp3008 v0.5.0 problem](https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137)

<div class="topic-metadata">

**Author:** [@Piotr\_Rutkowski](https://discourse.nodered.org/u/Piotr_Rutkowski)\
**Replies:** 1\
**Last updated:** [6 November 2021 16:08 UTC](https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137 "2021-11-06T16:08:13Z")

</div>

Hello, It seems that version 0.5.0 is not stable (or something). After a crash of RPi CM4 I made a fresh installation of Raspi OS with Node Red and few other things. As usual I enabled SPI using raspi-config tool. Beca…

---

## [Ignore events from automation](https://discourse.nodered.org/t/ignore-events-from-automation/53194)

<div class="topic-metadata">

**Author:** [@Leonti](https://discourse.nodered.org/u/Leonti)\
**Replies:** 6\
**Last updated:** [6 November 2021 15:35 UTC](https://discourse.nodered.org/t/ignore-events-from-automation/53194 "2021-11-06T15:35:14Z")

</div>

Hi! Is there a way to distinguish events coming from a physical button press vs events triggered by automation? I have Tasmota light switches which are communicating with Home Assistant via MQTT. What I'm trying to do…

---

## [Different static files path on nested routes](https://discourse.nodered.org/t/different-static-files-path-on-nested-routes/53294)

<div class="topic-metadata">

**Author:** [@VZonys](https://discourse.nodered.org/u/VZonys)\
**Replies:** 2\
**Last updated:** [6 November 2021 15:01 UTC](https://discourse.nodered.org/t/different-static-files-path-on-nested-routes/53294 "2021-11-06T15:01:44Z")

</div>

Hi, I'm having trouble with static files: My problem is: Then I creating a http-in with route /blog, all static files loading ok http://localhost:1880/images/posts/post-2-70x70.jpg But if i add another route like /blo…

---

## [I've just discovered the Debugger :)](https://discourse.nodered.org/t/ive-just-discovered-the-debugger/53293)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 0\
**Last updated:** [6 November 2021 13:23 UTC](https://discourse.nodered.org/t/ive-just-discovered-the-debugger/53293 "2021-11-06T13:23:33Z")

</div>

... and its blooming marvellous :smiley: Well done team!

---

## [Parse Date/Time IEC 62056-21](https://discourse.nodered.org/t/parse-date-time-iec-62056-21/53238)

<div class="topic-metadata">

**Author:** [@New2Node](https://discourse.nodered.org/u/New2Node)\
**Replies:** 10\
**Last updated:** [6 November 2021 10:43 UTC](https://discourse.nodered.org/t/parse-date-time-iec-62056-21/53238 "2021-11-06T10:43:35Z")

</div>

Hi, I’m trying to extract the date/time from a device that uses IEC 62056 protocol. I can use the buffer/parser node to split the data to output the time, but I can’t work out how I get the date. I’m sure the answers si…

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

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