# General

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

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

**Page:** 242

---

## [How can i populated value to JSON payload](https://discourse.nodered.org/t/how-can-i-populated-value-to-json-payload/75818)

<div class="topic-metadata">

**Author:** [@rchandrashekar53](https://discourse.nodered.org/u/rchandrashekar53)\
**Replies:** 2\
**Last updated:** [27 February 2023 16:15 UTC](https://discourse.nodered.org/t/how-can-i-populated-value-to-json-payload/75818 "2023-02-27T16:15:40Z")

</div>

Hi, i do have a function node where i build a JSON message based on the set points. However as you observer i do have a parent node "01" this refers to the data packet which i receive from the global.get("currentDataP…

---

## [Problem sending FLOAT data and DW with MCprotocol](https://discourse.nodered.org/t/problem-sending-float-data-and-dw-with-mcprotocol/75807)

<div class="topic-metadata">

**Author:** [@Seadiver](https://discourse.nodered.org/u/Seadiver)\
**Replies:** 2\
**Last updated:** [27 February 2023 13:18 UTC](https://discourse.nodered.org/t/problem-sending-float-data-and-dw-with-mcprotocol/75807 "2023-02-27T13:18:48Z")

</div>

Hi I'm setting up a Node-red project were I need to be able to send and receive data from a Mitsubishi FX5 CPU. Reading data is not an issue but I am struggling with writing data. I can not figure out how to write to a…

---

## [I can't install node-red-contrib-modbus in MAC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-modbus-in-mac/75786)

<div class="topic-metadata">

**Author:** [@Lim](https://discourse.nodered.org/u/Lim)\
**Replies:** 2\
**Last updated:** [27 February 2023 09:38 UTC](https://discourse.nodered.org/t/i-cant-install-node-red-contrib-modbus-in-mac/75786 "2023-02-27T09:38:02Z")

</div>

For some reasons, I can't install node-red-contrib-modbus into MAC. I tried to install using the command ofnpm install -g node-red-contrib-modbus. Then the message says that I don't have access permission

---

## [Installation: Node-RED core 3.0.2 is not installed](https://discourse.nodered.org/t/installation-node-red-core-3-0-2-is-not-installed/75505)

<div class="topic-metadata">

**Author:** [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)\
**Replies:** 22\
**Last updated:** [27 February 2023 09:39 UTC](https://discourse.nodered.org/t/installation-node-red-core-3-0-2-is-not-installed/75505 "2023-02-27T09:39:30Z")

</div>

Hi, I know this should be a simple problem to solve, but is driving me crazy. I have installed node-red plenty of times, some problem to solve some times, but ok. Now I'm stuck here. It's a fresch buster legacy installat…

---

## [Get Tibber home ID from API-Key](https://discourse.nodered.org/t/get-tibber-home-id-from-api-key/75800)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 4\
**Last updated:** [27 February 2023 09:35 UTC](https://discourse.nodered.org/t/get-tibber-home-id-from-api-key/75800 "2023-02-27T09:35:11Z")

</div>

Hi, I´m using https://flows.nodered.org/node/node-red-contrib-tibber-api this requires the home ID for quering, from Tibber you get the API-Key, but not the home ID. Do you know how to get the home ID ?

---

## [IKEA Tradfri Sockets from Loxone via Node-red/Loxone virtual output](https://discourse.nodered.org/t/ikea-tradfri-sockets-from-loxone-via-node-red-loxone-virtual-output/75789)

<div class="topic-metadata">

**Author:** [@jkosatko](https://discourse.nodered.org/u/jkosatko)\
**Replies:** 0\
**Last updated:** [27 February 2023 06:46 UTC](https://discourse.nodered.org/t/ikea-tradfri-sockets-from-loxone-via-node-red-loxone-virtual-output/75789 "2023-02-27T06:46:58Z")

</div>

Hello all, I have node-red connected to IKEA Tradfri Gateway and Loxone miniserver (using pallets node-red-contrib-loxone and node-red-contrib-ikea-tradfri) and it works fine for simple things. E.g. I can switch on/off …

---

## [How to send Free write data using modbus RTU?](https://discourse.nodered.org/t/how-to-send-free-write-data-using-modbus-rtu/75785)

<div class="topic-metadata">

**Author:** [@akatsuki92](https://discourse.nodered.org/u/akatsuki92)\
**Replies:** 0\
**Last updated:** [27 February 2023 03:53 UTC](https://discourse.nodered.org/t/how-to-send-free-write-data-using-modbus-rtu/75785 "2023-02-27T03:53:44Z")

</div>

I want send 01 16 10 10 00 01 02 00 00 352B to slave device. its must use 16H function code and 10 10 (hex) is the address to reset that device. what should i do? Please Help Me..

---

## [Download uitable](https://discourse.nodered.org/t/download-uitable/75776)

<div class="topic-metadata">

**Author:** [@tenziki](https://discourse.nodered.org/u/tenziki)\
**Replies:** 2\
**Last updated:** [27 February 2023 01:16 UTC](https://discourse.nodered.org/t/download-uitable/75776 "2023-02-27T01:16:26Z")

</div>

How do I download this ui table in csv I am using node-red ui table Below is the flow, click inject timestamp to inject table data \[ { "id": "758b47d77078d14e", "type": "tab", "label": "Flo…

---

## [Mqtt with conditions taking into account previous payload](https://discourse.nodered.org/t/mqtt-with-conditions-taking-into-account-previous-payload/75732)

<div class="topic-metadata">

**Author:** [@03397](https://discourse.nodered.org/u/03397)\
**Replies:** 8\
**Last updated:** [26 February 2023 21:52 UTC](https://discourse.nodered.org/t/mqtt-with-conditions-taking-into-account-previous-payload/75732 "2023-02-26T21:52:20Z")

</div>

I have the attached flow. This listen to a topic and when an "on" or "off" comes it executes two tasks. I want to modify this and execute the two tasks with these if conditions: It will execute the "off" if the previou…

---

## [Configure topics MQTT OUT node](https://discourse.nodered.org/t/configure-topics-mqtt-out-node/75706)

<div class="topic-metadata">

**Author:** [@Septain21](https://discourse.nodered.org/u/Septain21)\
**Replies:** 19\
**Last updated:** [26 February 2023 18:56 UTC](https://discourse.nodered.org/t/configure-topics-mqtt-out-node/75706 "2023-02-26T18:56:39Z")

</div>

Good evening I'm setting up to receive data from a solar inverter through nodered. I receive a frame of information that I transformed into a table. I want to send this data through the MQTT OUT node but I can't co…

---

## [Change format of an array](https://discourse.nodered.org/t/change-format-of-an-array/75765)

<div class="topic-metadata">

**Author:** [@choel83](https://discourse.nodered.org/u/choel83)\
**Replies:** 3\
**Last updated:** [26 February 2023 17:30 UTC](https://discourse.nodered.org/t/change-format-of-an-array/75765 "2023-02-26T17:30:08Z")

</div>

I need to change the format of an array coming from one node to fit into another node. And I only need two of the objects in the array. The array I need to change looks like this. \[ {"timestamp":"2023-02-25T23:00:00.00…

---

## [Education context: Push notifications to Android, iOS etc](https://discourse.nodered.org/t/education-context-push-notifications-to-android-ios-etc/75761)

<div class="topic-metadata">

**Author:** [@brendonhatcher](https://discourse.nodered.org/u/brendonhatcher)\
**Replies:** 4\
**Last updated:** [26 February 2023 17:22 UTC](https://discourse.nodered.org/t/education-context-push-notifications-to-android-ios-etc/75761 "2023-02-26T17:22:34Z")

</div>

Hi. I am putting together educational activities within a Code Club context (9 to 11 year olds). I am exploring ways to send notifications from instructor-provided Raspberry Pi Node-RED devices to participant-provided …

---

## [How to check duplicate data and not insert to sql](https://discourse.nodered.org/t/how-to-check-duplicate-data-and-not-insert-to-sql/75768)

<div class="topic-metadata">

**Author:** [@komkitPP](https://discourse.nodered.org/u/komkitPP)\
**Replies:** 3\
**Last updated:** [26 February 2023 17:04 UTC](https://discourse.nodered.org/t/how-to-check-duplicate-data-and-not-insert-to-sql/75768 "2023-02-26T17:04:38Z")

</div>

var value = 6 var pld pld = "INSERT INTO \[HIG\].\[dbo\].\[Alum\]" pld = pld + "(\[Aluminium\])" pld = pld + "VALUES ('" + value + "')" msg.payload = pld return msg; IF value equals 6 not insert data to sql \> ?? How to c…

---

## [If Statement, so close to getting it right](https://discourse.nodered.org/t/if-statement-so-close-to-getting-it-right/75746)

<div class="topic-metadata">

**Author:** [@richiep](https://discourse.nodered.org/u/richiep)\
**Replies:** 5\
**Last updated:** [26 February 2023 16:28 UTC](https://discourse.nodered.org/t/if-statement-so-close-to-getting-it-right/75746 "2023-02-26T16:28:20Z")

</div>

Hey All, I've been trying for the better part of a day and I can't get an if statement to work. I've got serial data coming in from an Arduino to a Raspberry Pi running Mosquitto and Node-Red. I'm trying to read the m…

---

## [\[HowTo\] Change default indent from 4 to 2 spaces in function nodes](https://discourse.nodered.org/t/howto-change-default-indent-from-4-to-2-spaces-in-function-nodes/75759)

<div class="topic-metadata">

**Author:** [@Subnum12](https://discourse.nodered.org/u/Subnum12)\
**Replies:** 7\
**Last updated:** [26 February 2023 14:53 UTC](https://discourse.nodered.org/t/howto-change-default-indent-from-4-to-2-spaces-in-function-nodes/75759 "2023-02-26T14:53:29Z")

</div>

As this was closed already I could not provide the solution but did run into same question. It is just simple but not documented. In settings.js go to codeEditor: {options: {tabSize: 2,}}

---

## [Extracting Value using Javascript](https://discourse.nodered.org/t/extracting-value-using-javascript/75724)

<div class="topic-metadata">

**Author:** [@CJ10](https://discourse.nodered.org/u/CJ10)\
**Replies:** 6\
**Last updated:** [26 February 2023 11:51 UTC](https://discourse.nodered.org/t/extracting-value-using-javascript/75724 "2023-02-26T11:51:50Z")

</div>

I have one object with multiple strings(?) which in turn have an associated value. 25/02/2023, 12:50:39\[node: debug 4\](http://homeassistant.local:8123/api/hassio\_ingress/Es9h\_91l3om-pMJ8ebe--nzrVZnJhDX5XNOIMrFJH48/#) …

---

## ["Call-service error. extra keys not allowed" Help](https://discourse.nodered.org/t/call-service-error-extra-keys-not-allowed-help/75755)

<div class="topic-metadata">

**Author:** [@aperture1988](https://discourse.nodered.org/u/aperture1988)\
**Replies:** 8\
**Last updated:** [26 February 2023 10:53 UTC](https://discourse.nodered.org/t/call-service-error-extra-keys-not-allowed-help/75755 "2023-02-26T10:53:42Z")

</div>

Hi guys, Im trying to setup a flow that will pull down the version number of the installed Node-Red package and store the information within an Input\_text helper within Home Assistant. The command I am running seems to…

---

## [How to trigger a flow if a newer version is released?](https://discourse.nodered.org/t/how-to-trigger-a-flow-if-a-newer-version-is-released/75743)

<div class="topic-metadata">

**Author:** [@aperture1988](https://discourse.nodered.org/u/aperture1988)\
**Replies:** 2\
**Last updated:** [26 February 2023 08:33 UTC](https://discourse.nodered.org/t/how-to-trigger-a-flow-if-a-newer-version-is-released/75743 "2023-02-26T08:33:16Z")

</div>

Hello Guys, Im looking to set up some proactive notifications to alert me when there is a new version of Node-Red available for installation. Ive been hunting around trying to find this information but keep coming up bl…

---

## [Raspberry Pi - Philips Hue light control with TSL2591 sensor](https://discourse.nodered.org/t/raspberry-pi-philips-hue-light-control-with-tsl2591-sensor/12811)

<div class="topic-metadata">

**Author:** [@MAaron](https://discourse.nodered.org/u/MAaron)\
**Replies:** 26\
**Last updated:** [26 February 2023 03:45 UTC](https://discourse.nodered.org/t/raspberry-pi-philips-hue-light-control-with-tsl2591-sensor/12811 "2023-02-26T03:45:17Z")

</div>

Hi there! I'm very new to the Node-RED and Rpi, so I might be asking a lot, but any help I would appreciate very much. So, up until now, I was controlling my Philips HUE lights through my phone and it's built-in light …

---

## [Is there a way to get the (parent) group name a node is in or on?](https://discourse.nodered.org/t/is-there-a-way-to-get-the-parent-group-name-a-node-is-in-or-on/75745)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 0\
**Last updated:** [26 February 2023 03:41 UTC](https://discourse.nodered.org/t/is-there-a-way-to-get-the-parent-group-name-a-node-is-in-or-on/75745 "2023-02-26T03:41:59Z")

</div>

Is there a way to get the (parent) group name a flow is in or on? Basically the flow needs to know where it lives so to speak. I seem to remember the dashboard tab and groups contained can be accessed some how, just do…

---

## [The flow is sending the same message/image twice to me](https://discourse.nodered.org/t/the-flow-is-sending-the-same-message-image-twice-to-me/75720)

<div class="topic-metadata">

**Author:** [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Replies:** 24\
**Last updated:** [25 February 2023 19:34 UTC](https://discourse.nodered.org/t/the-flow-is-sending-the-same-message-image-twice-to-me/75720 "2023-02-25T19:34:26Z")

</div>

Hi Can someone guide/help me, with this flow. It working fine, but I get every message/image two times. How can I fix it, so it only send the same message/image one time? \[{"id":"ad6ed13d6cc36211","type":"comment","z…

---

## [Convert TimeZone to Universal Time Coordinated?](https://discourse.nodered.org/t/convert-timezone-to-universal-time-coordinated/75660)

<div class="topic-metadata">

**Author:** [@lucas3d](https://discourse.nodered.org/u/lucas3d)\
**Replies:** 7\
**Last updated:** [25 February 2023 20:29 UTC](https://discourse.nodered.org/t/convert-timezone-to-universal-time-coordinated/75660 "2023-02-25T20:29:40Z")

</div>

Hi, I'm looking to convert TimeZone to Universal Time Coordinated (UTC) for one of my projects. Initially, the data is an IP address, I'm using the node "node-red-contrib-ip-location-lite" to get a timezone. I'm looki…

---

## [I am unable to make responsive gauge or ui\_template](https://discourse.nodered.org/t/i-am-unable-to-make-responsive-gauge-or-ui-template/75014)

<div class="topic-metadata">

**Author:** [@Jayeshpitale1](https://discourse.nodered.org/u/Jayeshpitale1)\
**Replies:** 21\
**Last updated:** [25 February 2023 17:23 UTC](https://discourse.nodered.org/t/i-am-unable-to-make-responsive-gauge-or-ui-template/75014 "2023-02-25T17:23:59Z")

</div>

Hi There, @TotallyInformation , @Colin , @jbudd. I need some help regarding responsive in ui\_template node, the HTML and css code which i am using outside the Node-Red which working well but when i put the code in ui\_t…

---

## [Telegram: Live Location sharing stops after first submission](https://discourse.nodered.org/t/telegram-live-location-sharing-stops-after-first-submission/46116)

<div class="topic-metadata">

**Author:** [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Replies:** 6\
**Last updated:** [25 February 2023 14:02 UTC](https://discourse.nodered.org/t/telegram-live-location-sharing-stops-after-first-submission/46116 "2023-02-25T14:02:20Z")

</div>

I'm trying to use Telegram's Live Location reporting to track the location of a mobile Android device in Node-RED (v1.3.5) using node-red-contrib-telegrambot (9.4.2). I get a response (with lat, lon, time values) when I…

---

## [How do I delete (drop) Influxdb2 measurements in Node red](https://discourse.nodered.org/t/how-do-i-delete-drop-influxdb2-measurements-in-node-red/75631)

<div class="topic-metadata">

**Author:** [@myozone](https://discourse.nodered.org/u/myozone)\
**Replies:** 12\
**Last updated:** [25 February 2023 09:43 UTC](https://discourse.nodered.org/t/how-do-i-delete-drop-influxdb2-measurements-in-node-red/75631 "2023-02-25T09:43:20Z")

</div>

How do I drop a measurement from a database in Influxdb2 ? I have power and voltage data coming into Node-red then into Influxdb2 to Grafana and cannot figure out for the life of me how to drop/clear/delete complete mea…

---

## [Multiline labels revert to single line](https://discourse.nodered.org/t/multiline-labels-revert-to-single-line/75673)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 13\
**Last updated:** [25 February 2023 07:59 UTC](https://discourse.nodered.org/t/multiline-labels-revert-to-single-line/75673 "2023-02-25T07:59:37Z")

</div>

I just noticed that nodes with multiline labels switch to single line once you've dragged them into the workspace Little bug or just something hard to prevent?

---

## [Error using pkg](https://discourse.nodered.org/t/error-using-pkg/75715)

<div class="topic-metadata">

**Author:** [@snowy127](https://discourse.nodered.org/u/snowy127)\
**Replies:** 0\
**Last updated:** [24 February 2023 23:56 UTC](https://discourse.nodered.org/t/error-using-pkg/75715 "2023-02-24T23:56:27Z")

</div>

Hi, I've been trying to solve this error for a few days but I can't find how to solve it, I Want to create an exe or something similar so that users can't see the code of settings.js and flows.json

---

## [Add rule to change node using a payload](https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686)

<div class="topic-metadata">

**Author:** [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Replies:** 1\
**Last updated:** [24 February 2023 22:55 UTC](https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686 "2023-02-24T22:55:31Z")

</div>

So what in wanting to do is add rules into a change node by using dashboard forms, is there anyways to do this? Some way to send a payload that will add a rule into the change node?

---

## [How to extract exact data from payload](https://discourse.nodered.org/t/how-to-extract-exact-data-from-payload/75659)

<div class="topic-metadata">

**Author:** [@demokedes](https://discourse.nodered.org/u/demokedes)\
**Replies:** 3\
**Last updated:** [24 February 2023 22:08 UTC](https://discourse.nodered.org/t/how-to-extract-exact-data-from-payload/75659 "2023-02-24T22:08:51Z")

</div>

Dear all, I am getting GPS coordinated as a string. Please take a look at bellow screen. How can I get each value separately. Can I "call" latitude and longitude desperately? I tried with "payload.payload.value\[0\]", b…

---

## [Pointer please - How to If Then](https://discourse.nodered.org/t/pointer-please-how-to-if-then/75700)

<div class="topic-metadata">

**Author:** [@Busta999](https://discourse.nodered.org/u/Busta999)\
**Replies:** 6\
**Last updated:** [24 February 2023 18:07 UTC](https://discourse.nodered.org/t/pointer-please-how-to-if-then/75700 "2023-02-24T18:07:12Z")

</div>

I am new to Node Red. I am loving it but still banging my head against a wall - really nice when I finally get it through my thick head :slight\_smile: A quick question please. I am trying to create flow that Every 30…

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

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