# General

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

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

**Page:** 357

---

## [How to string format?](https://discourse.nodered.org/t/how-to-string-format/64612)

<div class="topic-metadata">

**Author:** [@nodiaque](https://discourse.nodered.org/u/nodiaque)\
**Replies:** 1\
**Last updated:** [2 July 2022 14:24 UTC](https://discourse.nodered.org/t/how-to-string-format/64612 "2022-07-02T14:24:03Z")

</div>

Hello everyone, I have a function where I need to create a simple 00:00:00 string. I received a time in decimal format (8.25, 8.50, etc...) and I want to convert to a String HH:MM:SS. I have everything, but I can't find…

---

## [How to custom log format](https://discourse.nodered.org/t/how-to-custom-log-format/64601)

<div class="topic-metadata">

**Author:** [@mafeifan](https://discourse.nodered.org/u/mafeifan)\
**Replies:** 2\
**Last updated:** [2 July 2022 07:53 UTC](https://discourse.nodered.org/t/how-to-custom-log-format/64601 "2022-07-02T07:53:49Z")

</div>

currently let str = JSON.stringify(msg.payload); node.warn(str); return msg; the output is 2 Jul 06:56:16 - \[warn\] \[function:1a91795a.0f8ff7\] { "msg": {...}} How to implement a custom format for example: node.war…

---

## [Concatenate Two variable strings](https://discourse.nodered.org/t/concatenate-two-variable-strings/64604)

<div class="topic-metadata">

**Author:** [@ravi1987](https://discourse.nodered.org/u/ravi1987)\
**Replies:** 3\
**Last updated:** [2 July 2022 07:50 UTC](https://discourse.nodered.org/t/concatenate-two-variable-strings/64604 "2022-07-02T07:50:37Z")

</div>

Hello every one here I'm reading two variables in mqtt i want both in singe line how can I do

---

## [Command to install](https://discourse.nodered.org/t/command-to-install/64577)

<div class="topic-metadata">

**Author:** [@JoanHc](https://discourse.nodered.org/u/JoanHc)\
**Replies:** 14\
**Last updated:** [2 July 2022 00:28 UTC](https://discourse.nodered.org/t/command-to-install/64577 "2022-07-02T00:28:40Z")

</div>

command to install the grovepi nodes for npm version 8.11.0

---

## [Running npm install node-red-contrib-grovepi throws errors](https://discourse.nodered.org/t/running-npm-install-node-red-contrib-grovepi-throws-errors/64600)

<div class="topic-metadata">

**Author:** [@Antonio4060](https://discourse.nodered.org/u/Antonio4060)\
**Replies:** 1\
**Last updated:** [2 July 2022 00:28 UTC](https://discourse.nodered.org/t/running-npm-install-node-red-contrib-grovepi-throws-errors/64600 "2022-07-02T00:28:24Z")

</div>

make: \*\*\* \[buffertools.target.mk:107: Release/obj.target/buffertools/buffertools.o\] Error 1 make: Leaving directory '/home/pi/.node-red/node\_modules/buffertools/build' gyp ERR! build error gyp ERR! stack Error: make f…

---

## [Problems of the version](https://discourse.nodered.org/t/problems-of-the-version/64594)

<div class="topic-metadata">

**Author:** [@JoanHc](https://discourse.nodered.org/u/JoanHc)\
**Replies:** 1\
**Last updated:** [1 July 2022 20:49 UTC](https://discourse.nodered.org/t/problems-of-the-version/64594 "2022-07-01T20:49:23Z")

</div>

which version of npm runs grove pi nodes ?

---

## [Round down Timestamps to minutes](https://discourse.nodered.org/t/round-down-timestamps-to-minutes/64590)

<div class="topic-metadata">

**Author:** [@DemalCal96](https://discourse.nodered.org/u/DemalCal96)\
**Replies:** 4\
**Last updated:** [1 July 2022 19:49 UTC](https://discourse.nodered.org/t/round-down-timestamps-to-minutes/64590 "2022-07-01T19:49:45Z")

</div>

Hello everyone. I have an array of objects with the following structure: \[{timestamp:1315485284895, value: 45},{timestamp:1315485285583, value: 49},{timestamp:1315485153214, value: 38},.....\] It has around 2000 objects…

---

## [Possible to inject a msg.payload into fields in nodes that take strings?](https://discourse.nodered.org/t/possible-to-inject-a-msg-payload-into-fields-in-nodes-that-take-strings/64564)

<div class="topic-metadata">

**Author:** [@mitch-shiver](https://discourse.nodered.org/u/mitch-shiver)\
**Replies:** 3\
**Last updated:** [1 July 2022 19:33 UTC](https://discourse.nodered.org/t/possible-to-inject-a-msg-payload-into-fields-in-nodes-that-take-strings/64564 "2022-07-01T19:33:16Z")

</div>

Hi, long time user... I see a number of nodes that don't let me interact with msg.payload but instead take a string as input. A good example is the write file node, image below. The field 'Filename' does not take in a…

---

## [De-Crypt messages using GXDLMS?](https://discourse.nodered.org/t/de-crypt-messages-using-gxdlms/64592)

<div class="topic-metadata">

**Author:** [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Replies:** 0\
**Last updated:** [1 July 2022 17:58 UTC](https://discourse.nodered.org/t/de-crypt-messages-using-gxdlms/64592 "2022-07-01T17:58:09Z")

</div>

Hi Guys, I would like to decrypt and read the serial stream coming from my power measuring device "Kaifa MA309". I have connected a MBUS-USB Adapter to read the serial stream but unfortunately it is crypted with a stat…

---

## [How to insert data in csv in predetermined position](https://discourse.nodered.org/t/how-to-insert-data-in-csv-in-predetermined-position/64589)

<div class="topic-metadata">

**Author:** [@nenny](https://discourse.nodered.org/u/nenny)\
**Replies:** 2\
**Last updated:** [1 July 2022 14:47 UTC](https://discourse.nodered.org/t/how-to-insert-data-in-csv-in-predetermined-position/64589 "2022-07-01T14:47:16Z")

</div>

Hello, I am trying to figure out how i can insert data in a specific position of a csv file (example in column C row 5). Unfortunately i am not really getting anywhere with this if anyone can help me or point me into th…

---

## [How do i continuosly update the payload?](https://discourse.nodered.org/t/how-do-i-continuosly-update-the-payload/64580)

<div class="topic-metadata">

**Author:** [@Huntonion](https://discourse.nodered.org/u/Huntonion)\
**Replies:** 2\
**Last updated:** [1 July 2022 10:38 UTC](https://discourse.nodered.org/t/how-do-i-continuosly-update-the-payload/64580 "2022-07-01T10:38:44Z")

</div>

Hello, I have an inject node that injects every x seconds a Json string,and I have a function node which operates on the json string, and i want to save those changes in order to have the updated json string every time i…

---

## [Using \`presence-faker\` to launch a script instead of lights?](https://discourse.nodered.org/t/using-presence-faker-to-launch-a-script-instead-of-lights/64581)

<div class="topic-metadata">

**Author:** [@Zeltak](https://discourse.nodered.org/u/Zeltak)\
**Replies:** 0\
**Last updated:** [1 July 2022 08:50 UTC](https://discourse.nodered.org/t/using-presence-faker-to-launch-a-script-instead-of-lights/64581 "2022-07-01T08:50:55Z")

</div>

Hi! im using the excellent presence-faker for vacation mode like lights. I want to add some sounds to that via a script that sends some random noise to my speakers. im very new to both node-red and Home assistant and st…

---

## [Send data using modbus tcp protocol from node-red to a PLC](https://discourse.nodered.org/t/send-data-using-modbus-tcp-protocol-from-node-red-to-a-plc/64321)

<div class="topic-metadata">

**Author:** [@samirovic](https://discourse.nodered.org/u/samirovic)\
**Replies:** 21\
**Last updated:** [1 July 2022 06:14 UTC](https://discourse.nodered.org/t/send-data-using-modbus-tcp-protocol-from-node-red-to-a-plc/64321 "2022-07-01T06:14:11Z")

</div>

Hello, I would like to send data using modbus tcp protocol from node-red to a PLC. it is possible to create a modbus TCP server on the node-red?

---

## [Node-red-contrib-httpauth not compatible with Nodered 2.x](https://discourse.nodered.org/t/node-red-contrib-httpauth-not-compatible-with-nodered-2-x/63594)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 6\
**Last updated:** [1 July 2022 06:13 UTC](https://discourse.nodered.org/t/node-red-contrib-httpauth-not-compatible-with-nodered-2-x/63594 "2022-07-01T06:13:51Z")

</div>

Hi there, I did try to install the httpAuth node but as mentioned in the title, it is not compatible with Node Red 2. npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with y…

---

## [Exporting Docker container with settings and flows](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551)

<div class="topic-metadata">

**Author:** [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Replies:** 3\
**Last updated:** [1 July 2022 06:02 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551 "2022-07-01T06:02:00Z")

</div>

I'm pretty new to using docker. I've just learned to start,stop remove containers. My task is to create a docker container, add my desired flow, update settings.js file and push it to Docker Hub, so i can run it on Digi…

---

## [UDP port monitoring? Not done this with NR as yet, but instance issue? Permissions?](https://discourse.nodered.org/t/udp-port-monitoring-not-done-this-with-nr-as-yet-but-instance-issue-permissions/64524)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 4\
**Last updated:** [1 July 2022 05:25 UTC](https://discourse.nodered.org/t/udp-port-monitoring-not-done-this-with-nr-as-yet-but-instance-issue-permissions/64524 "2022-07-01T05:25:35Z")

</div>

UDP port monitoring? Not done this with NR as yet, but instance issue? Permissions? The node states that you need to be root to use the node for ports below 1000. Which makes sense. The question is, has anyone avoid…

---

## [Compare 2 sensors](https://discourse.nodered.org/t/compare-2-sensors/63704)

<div class="topic-metadata">

**Author:** [@bkenobi](https://discourse.nodered.org/u/bkenobi)\
**Replies:** 20\
**Last updated:** [1 July 2022 01:07 UTC](https://discourse.nodered.org/t/compare-2-sensors/63704 "2022-07-01T01:07:30Z")

</div>

I have an existing Arduino fan controller I am ready to replace with a NR based approach. I have several temperature/humidity sensors that I want to use to compare values and turn a fan on/off based on differential valu…

---

## [Function crashing node-red - Fatal JavaScript invalid size error](https://discourse.nodered.org/t/function-crashing-node-red-fatal-javascript-invalid-size-error/64549)

<div class="topic-metadata">

**Author:** [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Replies:** 11\
**Last updated:** [30 June 2022 19:56 UTC](https://discourse.nodered.org/t/function-crashing-node-red-fatal-javascript-invalid-size-error/64549 "2022-06-30T19:56:19Z")

</div>

I have a function node containing the following code: // set number of boxes/prisoners const MaxPrisoners = 20; // create PrisonerBoxes array let PrisonerBoxes = \[\]; // set which box/prisoner to start from const start…

---

## [Replace NaN values with null to store in InfluxDB](https://discourse.nodered.org/t/replace-nan-values-with-null-to-store-in-influxdb/64494)

<div class="topic-metadata">

**Author:** [@Easiii](https://discourse.nodered.org/u/Easiii)\
**Replies:** 15\
**Last updated:** [30 June 2022 19:13 UTC](https://discourse.nodered.org/t/replace-nan-values-with-null-to-store-in-influxdb/64494 "2022-06-30T19:13:27Z")

</div>

Hello, I'm looking for a function to replace all NaN values with null. In my scenario I want to store Temp datainto an InfluxDB. If a Sensor doesn't work i will get NaN as a value. To store this missing information int…

---

## [Value to another Node Red](https://discourse.nodered.org/t/value-to-another-node-red/64546)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 18\
**Last updated:** [30 June 2022 17:47 UTC](https://discourse.nodered.org/t/value-to-another-node-red/64546 "2022-06-30T17:47:07Z")

</div>

Hi! I would like to send a value to another Node Red. The two are connected via a VPN. What's the best way to do this? Many thanks for the help

---

## [Function programming help](https://discourse.nodered.org/t/function-programming-help/64548)

<div class="topic-metadata">

**Author:** [@Nick94](https://discourse.nodered.org/u/Nick94)\
**Replies:** 4\
**Last updated:** [30 June 2022 15:39 UTC](https://discourse.nodered.org/t/function-programming-help/64548 "2022-06-30T15:39:29Z")

</div>

Hi Guys, im new to Node Red and hooked up my Smartmeter. Now i want to isolate this Value on the button. But how can i do it over the function node. Sorry i have non coding skills and this is my last problem to solve th…

---

## [How to boot windows after install Ubuntu](https://discourse.nodered.org/t/how-to-boot-windows-after-install-ubuntu/64543)

<div class="topic-metadata">

**Author:** [@Por1995](https://discourse.nodered.org/u/Por1995)\
**Replies:** 3\
**Last updated:** [30 June 2022 15:35 UTC](https://discourse.nodered.org/t/how-to-boot-windows-after-install-ubuntu/64543 "2022-06-30T15:35:46Z")

</div>

how to boot windows after install Ubuntu ? on GNU GRUB I select windows 10 (on/dev/sda1) but is not boot to windows it boot to come back to GNU GRUB again How I can fix it.

---

## [Cannot publish my flows without error about nodes that I did not use anymore](https://discourse.nodered.org/t/cannot-publish-my-flows-without-error-about-nodes-that-i-did-not-use-anymore/64461)

<div class="topic-metadata">

**Author:** [@pi1234](https://discourse.nodered.org/u/pi1234)\
**Replies:** 2\
**Last updated:** [30 June 2022 14:35 UTC](https://discourse.nodered.org/t/cannot-publish-my-flows-without-error-about-nodes-that-i-did-not-use-anymore/64461 "2022-06-30T14:35:44Z")

</div>

Hi, Since month I have a problem with publishing my flows. At first I got the message that there would be an '1x1 whatever' thing that is not used correctly or whatever the message was. This 1x1 thing was a space 'thin…

---

## [Entity ' ' is unknown](https://discourse.nodered.org/t/entity-is-unknown/64460)

<div class="topic-metadata">

**Author:** [@pi1234](https://discourse.nodered.org/u/pi1234)\
**Replies:** 2\
**Last updated:** [30 June 2022 14:33 UTC](https://discourse.nodered.org/t/entity-is-unknown/64460 "2022-06-30T14:33:46Z")

</div>

Hi, Every 5 minutes I get this error message in the debug node (copied from journalctl): Jun 27 22:14:49 raspberrypi npm\[628\]: Zigbee2MQTT:info 2022-06-27 22:14:49: MQTT publish: topic 'zigbee2mqtt/bridge/log', payloa…

---

## [Return a msg.payload with more digits and decimals](https://discourse.nodered.org/t/return-a-msg-payload-with-more-digits-and-decimals/64526)

<div class="topic-metadata">

**Author:** [@zouhir](https://discourse.nodered.org/u/zouhir)\
**Replies:** 9\
**Last updated:** [30 June 2022 10:58 UTC](https://discourse.nodered.org/t/return-a-msg-payload-with-more-digits-and-decimals/64526 "2022-06-30T10:58:30Z")

</div>

Hi, my msg.payload is returning a temperature sensor value that is supposed to be as 56,7deg, which means composed at least with 2 digits and 1 decimal. What should I write in the function node to get this done as I'm g…

---

## [Using a Working curl with node-red http-request](https://discourse.nodered.org/t/using-a-working-curl-with-node-red-http-request/64534)

<div class="topic-metadata">

**Author:** [@lorccan](https://discourse.nodered.org/u/lorccan)\
**Replies:** 5\
**Last updated:** [30 June 2022 09:27 UTC](https://discourse.nodered.org/t/using-a-working-curl-with-node-red-http-request/64534 "2022-06-30T09:27:27Z")

</div>

I've read various posts here on the node-red way to provide data to an http-request node, but no matter what I try I am not getting anywhere fast. (Because this contains sensitive data, I have had to obscure or modify c…

---

## [Function Node to search a content of a payload (Object Array)](https://discourse.nodered.org/t/function-node-to-search-a-content-of-a-payload-object-array/64539)

<div class="topic-metadata">

**Author:** [@vanilla-sky](https://discourse.nodered.org/u/vanilla-sky)\
**Replies:** 1\
**Last updated:** [30 June 2022 09:26 UTC](https://discourse.nodered.org/t/function-node-to-search-a-content-of-a-payload-object-array/64539 "2022-06-30T09:26:13Z")

</div>

Hello my dear supporter :slight\_smile: i am stucking at the following "problem": I get two payloads: {"ASYS":{"BOARD\_REQUIREMENT":\[{"$":{"l\_MsgId":"359","s\_Type":"AES03 Speed","s\_SerNum":"077576","l\_lane":"1","l\_value…

---

## [Same MQTT flow not connecting on RaspberryPi (Dietpi) but on laptop (Manjaro)](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489)

<div class="topic-metadata">

**Author:** [@zeirix](https://discourse.nodered.org/u/zeirix)\
**Replies:** 2\
**Last updated:** [30 June 2022 09:12 UTC](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489 "2022-06-30T09:12:19Z")

</div>

Hello Everybody, I've got a strange problem, the same flow (copy/paste) works on my notebook (Manjaro Linux, Kernel 5.15.49-1), but it refuses to work on a RaspberryPi (Model B, Dietpi v8.5.1, Kernel 5.15.32+) The flow…

---

## [Starting my learning process!](https://discourse.nodered.org/t/starting-my-learning-process/64519)

<div class="topic-metadata">

**Author:** [@mmccabe](https://discourse.nodered.org/u/mmccabe)\
**Replies:** 5\
**Last updated:** [30 June 2022 04:43 UTC](https://discourse.nodered.org/t/starting-my-learning-process/64519 "2022-06-30T04:43:22Z")

</div>

Building panels to demonstrate sensors communicating over Ethernet/IP. Would like to control and visualize the sensors using an HMI. Who can point in a direction to start running down?

---

## [Insert a string into a change node string?](https://discourse.nodered.org/t/insert-a-string-into-a-change-node-string/64469)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 17\
**Last updated:** [30 June 2022 04:28 UTC](https://discourse.nodered.org/t/insert-a-string-into-a-change-node-string/64469 "2022-06-30T04:28:14Z")

</div>

Insert a string into a change node string? I am addicted to function nodes, and trying to break the habit. So here is what has to be a bone-headed easy thing to do? Say I have a message that has payload of 'test' and …

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

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