# General

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

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

**Page:** 220

---

## [Get Data to Var... but nothing work](https://discourse.nodered.org/t/get-data-to-var-but-nothing-work/77571)

<div class="topic-metadata">

**Author:** [@einfach112](https://discourse.nodered.org/u/einfach112)\
**Replies:** 5\
**Last updated:** [18 April 2023 13:02 UTC](https://discourse.nodered.org/t/get-data-to-var-but-nothing-work/77571 "2023-04-18T13:02:04Z")

</div>

hi! i have a catch node. on this node is a debug node. the return on the debug node is: 14.4.2023, 19:00:30node: debug 43 msg : Object object error: object message: "no JSON" source: object value: undefined \_error: "…

---

## [Extract a Substring from msg.payload and use it as a variable for global.set?](https://discourse.nodered.org/t/extract-a-substring-from-msg-payload-and-use-it-as-a-variable-for-global-set/77687)

<div class="topic-metadata">

**Author:** [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Replies:** 1\
**Last updated:** [18 April 2023 12:33 UTC](https://discourse.nodered.org/t/extract-a-substring-from-msg-payload-and-use-it-as-a-variable-for-global-set/77687 "2023-04-18T12:33:26Z")

</div>

Hi, is there a chance to extract a value from a string, e.g. tele/SP111\_131308/# (i need the value between the slashes) and would like to use it as a global Variable: global.set ("SP111\_131308.State", msg.payload.Sw…

---

## [Deleting a bunch of files with Exec Node](https://discourse.nodered.org/t/deleting-a-bunch-of-files-with-exec-node/77684)

<div class="topic-metadata">

**Author:** [@FloRu](https://discourse.nodered.org/u/FloRu)\
**Replies:** 15\
**Last updated:** [18 April 2023 12:24 UTC](https://discourse.nodered.org/t/deleting-a-bunch-of-files-with-exec-node/77684 "2023-04-18T12:24:27Z")

</div>

Hi! I want to delete a bunch of files using the exec node. When I try to start the job with the payload rm /mnt/dietpi\_userdata/File-to-delete\* the exec node tells me: rm: cannot remove '/mnt/dietpi\_userdata/File-t…

---

## [Node-red Worldmap API query](https://discourse.nodered.org/t/node-red-worldmap-api-query/77663)

<div class="topic-metadata">

**Author:** [@pijush.rinti](https://discourse.nodered.org/u/pijush.rinti)\
**Replies:** 3\
**Last updated:** [18 April 2023 11:08 UTC](https://discourse.nodered.org/t/node-red-worldmap-api-query/77663 "2023-04-18T11:08:17Z")

</div>

Hello experts, I am a newbie in node-red and working on a personal project. I would like to ask if node-red-contrib-web-worldmap is using an external map to present the map to us? Does it use an API for that? Thanks i…

---

## [TCP-IN node send data internally](https://discourse.nodered.org/t/tcp-in-node-send-data-internally/77675)

<div class="topic-metadata">

**Author:** [@bjdaijun](https://discourse.nodered.org/u/bjdaijun)\
**Replies:** 8\
**Last updated:** [18 April 2023 09:08 UTC](https://discourse.nodered.org/t/tcp-in-node-send-data-internally/77675 "2023-04-18T09:08:11Z")

</div>

\[{"id":"19d8c6fadea93ef9","type":"tab","label":"tcp-in","disabled":false,"info":"","env":\[\]},{"id":"1787daf384b3888d","type":"tcp in","z":"19d8c6fadea93ef9","name":"","server":"server","host":"","port":"28001","datamode"…

---

## [Onclick (event)](https://discourse.nodered.org/t/onclick-event/77667)

<div class="topic-metadata">

**Author:** [@CJ10](https://discourse.nodered.org/u/CJ10)\
**Replies:** 2\
**Last updated:** [18 April 2023 06:27 UTC](https://discourse.nodered.org/t/onclick-event/77667 "2023-04-18T06:27:55Z")

</div>

What I am attempting to do is, activate a button on an external website page. The first question I want to ask is, is this even possible using Node Red? If it's not, so be it. But assuming it is possible, then is the ap…

---

## [Declaring array of objects in payload](https://discourse.nodered.org/t/declaring-array-of-objects-in-payload/77657)

<div class="topic-metadata">

**Author:** [@JesFo](https://discourse.nodered.org/u/JesFo)\
**Replies:** 3\
**Last updated:** [18 April 2023 05:24 UTC](https://discourse.nodered.org/t/declaring-array-of-objects-in-payload/77657 "2023-04-18T05:24:21Z")

</div>

Hello. I'm trying to declare an array of objects into my msg.payload using a JavaScript node. I declare my array as such: msg.payload = { DeviceID : '0', Sensors : \[\] } And th…

---

## [Jsonata $number(hexstring) not working](https://discourse.nodered.org/t/jsonata-number-hexstring-not-working/77672)

<div class="topic-metadata">

**Author:** [@Barbudor](https://discourse.nodered.org/u/Barbudor)\
**Replies:** 2\
**Last updated:** [17 April 2023 21:08 UTC](https://discourse.nodered.org/t/jsonata-number-hexstring-not-working/77672 "2023-04-17T21:08:26Z")

</div>

Hi According to Numeric functions · JSONata the function $number("0x12") should return the parsed number 18 (and not 0x18...) However in Node-RED 3.0.2 I get error "Unable to cast value to a number" Can someone confi…

---

## [How can you determine size of table](https://discourse.nodered.org/t/how-can-you-determine-size-of-table/77461)

<div class="topic-metadata">

**Author:** [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Replies:** 20\
**Last updated:** [17 April 2023 20:32 UTC](https://discourse.nodered.org/t/how-can-you-determine-size-of-table/77461 "2023-04-17T20:32:20Z")

</div>

Determine size of table

---

## [Telegram got nuked](https://discourse.nodered.org/t/telegram-got-nuked/77643)

<div class="topic-metadata">

**Author:** [@jbob762](https://discourse.nodered.org/u/jbob762)\
**Replies:** 7\
**Last updated:** [17 April 2023 19:30 UTC](https://discourse.nodered.org/t/telegram-got-nuked/77643 "2023-04-17T19:30:05Z")

</div>

Telegram bot got nuked. I have had NR working in docker on a rpi for years, it runs my home automation and until today has been flawless. Went to do updates today - there were no updates to NR, but there were a few node…

---

## [How to create pages from song strophes](https://discourse.nodered.org/t/how-to-create-pages-from-song-strophes/77542)

<div class="topic-metadata">

**Author:** [@Felix](https://discourse.nodered.org/u/Felix)\
**Replies:** 10\
**Last updated:** [17 April 2023 16:53 UTC](https://discourse.nodered.org/t/how-to-create-pages-from-song-strophes/77542 "2023-04-17T16:53:00Z")

</div>

Hello all. So, may be I am stupid, or really tired, but... I need a help. I have a text with strophes ... like a this : text first is here 2.text second is here 3.text third is here ... and so on. I need extract th…

---

## [How to create table with SQLite](https://discourse.nodered.org/t/how-to-create-table-with-sqlite/77661)

<div class="topic-metadata">

**Author:** [@Nicklas](https://discourse.nodered.org/u/Nicklas)\
**Replies:** 5\
**Last updated:** [17 April 2023 15:51 UTC](https://discourse.nodered.org/t/how-to-create-table-with-sqlite/77661 "2023-04-17T15:51:22Z")

</div>

Hello there, I'm relatively new to Node-Red, and I'm trying to create a table with values from SQLite, my problem is that the values are not in the table, my SQLite statement works fine but when it comes to the template…

---

## [\[FlexDash\]: Sharing some use cases](https://discourse.nodered.org/t/flexdash-sharing-some-use-cases/77642)

<div class="topic-metadata">

**Author:** [@PLCMercenary](https://discourse.nodered.org/u/PLCMercenary)\
**Replies:** 3\
**Last updated:** [17 April 2023 15:44 UTC](https://discourse.nodered.org/t/flexdash-sharing-some-use-cases/77642 "2023-04-17T15:44:15Z")

</div>

@tve , Community, sharing a couple of smallish but visually relevant things Ive come across. 1) props table, and setting a bg / fg color for values; There were no props that I could see would allow me to set a BG color …

---

## [Send hexadecimal value to serial port](https://discourse.nodered.org/t/send-hexadecimal-value-to-serial-port/77537)

<div class="topic-metadata">

**Author:** [@zeus8497](https://discourse.nodered.org/u/zeus8497)\
**Replies:** 11\
**Last updated:** [17 April 2023 13:34 UTC](https://discourse.nodered.org/t/send-hexadecimal-value-to-serial-port/77537 "2023-04-17T13:34:06Z")

</div>

hi, I'm currently working on a project where i need to send data over the serial port. data are in hexadecimal form so, i did put them in a buffer following this code before sending them. var data = \[0x7E,0xA0,0x07,0x03…

---

## [Could not connect to MQTT broker hosted on OVH](https://discourse.nodered.org/t/could-not-connect-to-mqtt-broker-hosted-on-ovh/77533)

<div class="topic-metadata">

**Author:** [@moussa869](https://discourse.nodered.org/u/moussa869)\
**Replies:** 7\
**Last updated:** [17 April 2023 11:40 UTC](https://discourse.nodered.org/t/could-not-connect-to-mqtt-broker-hosted-on-ovh/77533 "2023-04-17T11:40:30Z")

</div>

Hi, please I could not connect to my broker with node red even that i tried it with MQTT spy and it woks normally could pub and sub data but with node red i get not connected i could not do anything without reaching the …

---

## [Local time for text input node using datetime picker](https://discourse.nodered.org/t/local-time-for-text-input-node-using-datetime-picker/77559)

<div class="topic-metadata">

**Author:** [@Switchblade2](https://discourse.nodered.org/u/Switchblade2)\
**Replies:** 24\
**Last updated:** [16 April 2023 21:20 UTC](https://discourse.nodered.org/t/local-time-for-text-input-node-using-datetime-picker/77559 "2023-04-16T21:20:39Z")

</div>

Hi, Is there any easy way to get a 'text node' set as 'datetime picker' send the output as local time. Currently I get the output in UTC. Example: When I select 14/4/2023 and 10:00 in the ui the output is 14/04/2023…

---

## [Comparing flow variables](https://discourse.nodered.org/t/comparing-flow-variables/77631)

<div class="topic-metadata">

**Author:** [@richiep](https://discourse.nodered.org/u/richiep)\
**Replies:** 4\
**Last updated:** [16 April 2023 16:46 UTC](https://discourse.nodered.org/t/comparing-flow-variables/77631 "2023-04-16T16:46:55Z")

</div>

Hey All, I have a motion sensor that turns on lights, in addition to that I have a fan that I want to turn on and off based on the temperature. I set the "temperature threshold" and write the value to a text file. I a…

---

## [Pass message property with another node in-between](https://discourse.nodered.org/t/pass-message-property-with-another-node-in-between/77635)

<div class="topic-metadata">

**Author:** [@vineetg](https://discourse.nodered.org/u/vineetg)\
**Replies:** 4\
**Last updated:** [16 April 2023 16:40 UTC](https://discourse.nodered.org/t/pass-message-property-with-another-node-in-between/77635 "2023-04-16T16:40:59Z")

</div>

Hello forum, I have this flow: A -\> B -\> C Node A has an output property msg.foo, which I want to pass to node C. However node B does not support that property, and it makes an API call, so there is a delay. How do I…

---

## [Uibuilder and nginx](https://discourse.nodered.org/t/uibuilder-and-nginx/77628)

<div class="topic-metadata">

**Author:** [@Manuel\_o](https://discourse.nodered.org/u/Manuel_o)\
**Replies:** 3\
**Last updated:** [16 April 2023 14:01 UTC](https://discourse.nodered.org/t/uibuilder-and-nginx/77628 "2023-04-16T14:01:30Z")

</div>

Hello. I am experimenting with uibilder nginx. To install nginx i follow this guide from: I tried to test nginx with a very simple node. i created a simple uibilder npde that has the URL myserverip:1880/test. My sec…

---

## [Renaming array elements after join](https://discourse.nodered.org/t/renaming-array-elements-after-join/77617)

<div class="topic-metadata">

**Author:** [@GreyEarl](https://discourse.nodered.org/u/GreyEarl)\
**Replies:** 2\
**Last updated:** [16 April 2023 13:08 UTC](https://discourse.nodered.org/t/renaming-array-elements-after-join/77617 "2023-04-16T13:08:23Z")

</div>

I have joined two payloads to an array. How would one replace the array element numbers to a custom string? I tried using the change node and move payloads, without success.

---

## [Node Red access to USB port for rfxcom (running in iobroker)](https://discourse.nodered.org/t/node-red-access-to-usb-port-for-rfxcom-running-in-iobroker/77626)

<div class="topic-metadata">

**Author:** [@Mikee1234K](https://discourse.nodered.org/u/Mikee1234K)\
**Replies:** 6\
**Last updated:** [16 April 2023 12:42 UTC](https://discourse.nodered.org/t/node-red-access-to-usb-port-for-rfxcom-running-in-iobroker/77626 "2023-04-16T12:42:33Z")

</div>

My Node Red runs in iobroker, on Windows10 Pro. I want to give Node Red access to one (or all) of my USB ports, to access my Rfxtrx 433 device (it is on USB4) I am trying to use the Rfxcom nodes, but trying to configure…

---

## [Best way to keep data synced with external datastore](https://discourse.nodered.org/t/best-way-to-keep-data-synced-with-external-datastore/77590)

<div class="topic-metadata">

**Author:** [@Slyke](https://discourse.nodered.org/u/Slyke)\
**Replies:** 4\
**Last updated:** [16 April 2023 09:30 UTC](https://discourse.nodered.org/t/best-way-to-keep-data-synced-with-external-datastore/77590 "2023-04-16T09:30:11Z")

</div>

What is the best way to keep data synced, from say an Redis, Timeseries, MQTT, NoSQL or SQL database in Node Red? For example, lets say I have something that triggers a flow, and a function node does something with the …

---

## [From mqtt =\> timer =\> telegram](https://discourse.nodered.org/t/from-mqtt-timer-telegram/77595)

<div class="topic-metadata">

**Author:** [@acd](https://discourse.nodered.org/u/acd)\
**Replies:** 5\
**Last updated:** [16 April 2023 08:47 UTC](https://discourse.nodered.org/t/from-mqtt-timer-telegram/77595 "2023-04-16T08:47:03Z")

</div>

hello, from an mqtt node, I need to send payload to the telegram node but only each hour. Could you advice me how to process ? thanks,

---

## [Change node: set an array of objects](https://discourse.nodered.org/t/change-node-set-an-array-of-objects/77620)

<div class="topic-metadata">

**Author:** [@pacmanmt](https://discourse.nodered.org/u/pacmanmt)\
**Replies:** 4\
**Last updated:** [16 April 2023 08:15 UTC](https://discourse.nodered.org/t/change-node-set-an-array-of-objects/77620 "2023-04-16T08:15:19Z")

</div>

I am sure i am not seeing it (my bad :smiling\_face\_with\_tear:), but I am unsuccessfully trying to set a msg property to an array of objects to feed an email node using a change node. I need to set the msg.attachments pr…

---

## [(GMT) Date time specified in HTTP 1.1 protocol](https://discourse.nodered.org/t/gmt-date-time-specified-in-http-1-1-protocol/77593)

<div class="topic-metadata">

**Author:** [@MaxSchaaper](https://discourse.nodered.org/u/MaxSchaaper)\
**Replies:** 6\
**Last updated:** [16 April 2023 07:38 UTC](https://discourse.nodered.org/t/gmt-date-time-specified-in-http-1-1-protocol/77593 "2023-04-16T07:38:12Z")

</div>

Hello, For an API Post request I have to add Date and time in a HTTP 1.1. format like: Fri, 14 Apr 2023 11:00:46 GMT (+2) I tried new Date settings and a Date/Time Formatter, but cannot get it correct. Some advice we…

---

## [Help with logging to a .csv file at a user-alterable time-base](https://discourse.nodered.org/t/help-with-logging-to-a-csv-file-at-a-user-alterable-time-base/77588)

<div class="topic-metadata">

**Author:** [@CADonkey](https://discourse.nodered.org/u/CADonkey)\
**Replies:** 9\
**Last updated:** [15 April 2023 21:43 UTC](https://discourse.nodered.org/t/help-with-logging-to-a-csv-file-at-a-user-alterable-time-base/77588 "2023-04-15T21:43:58Z")

</div>

Hi, I am trying to log a set of data (constructed from various sensor inputs over serial and OPCUA links) to a .csv file and struggling how to resolve a few issues that I hope someone can help with. I want to have the …

---

## [Is it possible to set output labels of a function node?](https://discourse.nodered.org/t/is-it-possible-to-set-output-labels-of-a-function-node/77598)

<div class="topic-metadata">

**Author:** [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Replies:** 6\
**Last updated:** [15 April 2023 18:53 UTC](https://discourse.nodered.org/t/is-it-possible-to-set-output-labels-of-a-function-node/77598 "2023-04-15T18:53:38Z")

</div>

I saw in the docs how to create output labels for a custom node, but I would like to label outputs in a function node. Is that possible?

---

## [Node red Projects](https://discourse.nodered.org/t/node-red-projects/77594)

<div class="topic-metadata">

**Author:** [@peterpreininger](https://discourse.nodered.org/u/peterpreininger)\
**Replies:** 1\
**Last updated:** [15 April 2023 18:42 UTC](https://discourse.nodered.org/t/node-red-projects/77594 "2023-04-15T18:42:18Z")

</div>

Hi, I have got my own local GIT server and would prefer to use this one for my projects. Is/will this be possible somehow?

---

## [Leer estado dispositivo tuya en S7](https://discourse.nodered.org/t/leer-estado-dispositivo-tuya-en-s7/77541)

<div class="topic-metadata">

**Author:** [@jmgimo75](https://discourse.nodered.org/u/jmgimo75)\
**Replies:** 4\
**Last updated:** [15 April 2023 17:24 UTC](https://discourse.nodered.org/t/leer-estado-dispositivo-tuya-en-s7/77541 "2023-04-15T17:24:10Z")

</div>

Buenas. Soy nuevo es este mundo. Pido disculpas si me espreso mal Estoy intentando leer el estado de apertura de las persianas desde un dispositivo tuya, en un PLC S7. Quiero recibir el valor en enteros, pero sin éxi…

---

## [Rain in Geofence Node?](https://discourse.nodered.org/t/rain-in-geofence-node/77597)

<div class="topic-metadata">

**Author:** [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Replies:** 0\
**Last updated:** [15 April 2023 16:31 UTC](https://discourse.nodered.org/t/rain-in-geofence-node/77597 "2023-04-15T16:31:27Z")

</div>

Is there a way to alert or send a message when using the node-red-node-geofence node to say if rain or a thunderstorm is detected within that geofence, send a payload? Kyle

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

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