# General

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

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

**Page:** 460

---

## [Getting Today's Date](https://discourse.nodered.org/t/getting-todays-date/54533)

<div class="topic-metadata">

**Author:** [@rlongfield](https://discourse.nodered.org/u/rlongfield)\
**Replies:** 3\
**Last updated:** [30 November 2021 21:25 UTC](https://discourse.nodered.org/t/getting-todays-date/54533 "2021-11-30T21:25:01Z")

</div>

I am trying to get the days date whenever a flow is run and store that date in slots.date. I tried this, the code was modified from a get time node. var dateString = new Date().toLocaleTimeString(\[\], { day: "2-digi…

---

## [OpnSense Firewall Automation](https://discourse.nodered.org/t/opnsense-firewall-automation/54391)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 7\
**Last updated:** [30 November 2021 21:22 UTC](https://discourse.nodered.org/t/opnsense-firewall-automation/54391 "2021-11-30T21:22:02Z")

</div>

Wondering if anyone on here has done anything with Automation of OPNSense firewall ? In particular the ability to dynamically add rule sets etc ? What i am planning on doing is scanning an number of log files on an inte…

---

## [How to add information ( username, birthday, date...) to mongodb from function of node-red. Pls help me](https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495)

<div class="topic-metadata">

**Author:** [@Anh](https://discourse.nodered.org/u/Anh)\
**Replies:** 1\
**Last updated:** [30 November 2021 19:30 UTC](https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495 "2021-11-30T19:30:46Z")

</div>

I don't know how about add information to mongodb. Help me

---

## [Beginner needs help -\> Smartmeter data to MQTT](https://discourse.nodered.org/t/beginner-needs-help-smartmeter-data-to-mqtt/54445)

<div class="topic-metadata">

**Author:** [@Klobrille](https://discourse.nodered.org/u/Klobrille)\
**Replies:** 5\
**Last updated:** [30 November 2021 19:15 UTC](https://discourse.nodered.org/t/beginner-needs-help-smartmeter-data-to-mqtt/54445 "2021-11-30T19:15:20Z")

</div>

Hello, I hope you can help me. I am an absolut beginner with Raspberry PI, Linux and especially Node Red. My situation: I have an Raspberry PI 4 with Raspberry OS, running "Home Assistant" with mosquitto (MQTT), influ…

---

## [Modbus Failure on State Sending](https://discourse.nodered.org/t/modbus-failure-on-state-sending/53942)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 13\
**Last updated:** [30 November 2021 19:14 UTC](https://discourse.nodered.org/t/modbus-failure-on-state-sending/53942 "2021-11-30T19:14:56Z")

</div>

I have a code, that sends data over modbus to a device. it works. But every so often, i get a warning: "Modbus Failure on State sending Get more about it by logging" I'm not even sending data at the moment and I ge…

---

## [Router on a stick](https://discourse.nodered.org/t/router-on-a-stick/54521)

<div class="topic-metadata">

**Author:** [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Replies:** 4\
**Last updated:** [30 November 2021 18:35 UTC](https://discourse.nodered.org/t/router-on-a-stick/54521 "2021-11-30T18:35:57Z")

</div>

Has anyone tried to create a router on a stick using NR? For reference: a router on a stick, also known as a one-armed router, is a router that has a single physical or logical connection to a network. It is a method o…

---

## [Node red Not starting Look at log idk](https://discourse.nodered.org/t/node-red-not-starting-look-at-log-idk/54473)

<div class="topic-metadata">

**Author:** [@LostiLama](https://discourse.nodered.org/u/LostiLama)\
**Replies:** 7\
**Last updated:** [30 November 2021 15:32 UTC](https://discourse.nodered.org/t/node-red-not-starting-look-at-log-idk/54473 "2021-11-30T15:32:05Z")

</div>

Start Node-RED Once Node-RED has started, point a browser at http://192.168.178.33:1880 On Pi Node-RED works better with the Firefox or Chrome browser Use node-red-stop to stop Node-RED Use…

---

## [A pull of mqtt info](https://discourse.nodered.org/t/a-pull-of-mqtt-info/54507)

<div class="topic-metadata">

**Author:** [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Replies:** 3\
**Last updated:** [30 November 2021 13:29 UTC](https://discourse.nodered.org/t/a-pull-of-mqtt-info/54507 "2021-11-30T13:29:44Z")

</div>

Hello I need your knowledge. When I restart my system, I have the problem that mqtt state of several relays only will be send, when a change after my restart takes place. So I do not have for my flows the current stat…

---

## [SMA Inverter Readout](https://discourse.nodered.org/t/sma-inverter-readout/54480)

<div class="topic-metadata">

**Author:** [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Replies:** 4\
**Last updated:** [30 November 2021 12:47 UTC](https://discourse.nodered.org/t/sma-inverter-readout/54480 "2021-11-30T12:47:30Z")

</div>

Hello, I have a PV system with a STP 20000TL-30 474, SBS6.0-10 319 and Home Manager 2 351. Now I want to read out all the values via NodeRed and display them in the dashboard. I have already read a lot, but do not get …

---

## [TypeError: Cannot create property 'accX' on string '-0.009'](https://discourse.nodered.org/t/typeerror-cannot-create-property-accx-on-string-0-009/54455)

<div class="topic-metadata">

**Author:** [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Replies:** 6\
**Last updated:** [30 November 2021 10:23 UTC](https://discourse.nodered.org/t/typeerror-cannot-create-property-accx-on-string-0-009/54455 "2021-11-30T10:23:00Z")

</div>

My own node outputs an object non-stop in order. The below figure shows the first 3 outputs. Then it repeats with new values: I would like to get 3 decimals points only hence, I have written the below function: var n…

---

## [Cannot update modbus node because of NPM version 7.7.6](https://discourse.nodered.org/t/cannot-update-modbus-node-because-of-npm-version-7-7-6/54474)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 7\
**Last updated:** [30 November 2021 09:40 UTC](https://discourse.nodered.org/t/cannot-update-modbus-node-because-of-npm-version-7-7-6/54474 "2021-11-30T09:40:21Z")

</div>

I just tried to update my installed modbus node, but the install log told me that the NPM version was too low. I needed version 10 or higher, but before I updated the system with a bash file I thought was the right way …

---

## [Uibuilder moving to new instance](https://discourse.nodered.org/t/uibuilder-moving-to-new-instance/54417)

<div class="topic-metadata">

**Author:** [@magicman](https://discourse.nodered.org/u/magicman)\
**Replies:** 3\
**Last updated:** [30 November 2021 09:16 UTC](https://discourse.nodered.org/t/uibuilder-moving-to-new-instance/54417 "2021-11-30T09:16:31Z")

</div>

Hi i want to use the changing state of a switch to open another page on my uibuilder . so when switch A changes state , A page on uibuilder displays this fact then returns to the main page either timed return or manuall…

---

## [Daily Flow Problem](https://discourse.nodered.org/t/daily-flow-problem/54424)

<div class="topic-metadata">

**Author:** [@pongolo](https://discourse.nodered.org/u/pongolo)\
**Replies:** 4\
**Last updated:** [30 November 2021 09:15 UTC](https://discourse.nodered.org/t/daily-flow-problem/54424 "2021-11-30T09:15:19Z")

</div>

Hello, I am fairly new to Node Red and am having an issue with a couple of Home Assistant (core-2021.11.5 & Node Red 10.1.1) automations and hope someone can help me with them. The first one is controlling an outlet fo…

---

## [Umlauts in mail csv-attachment content](https://discourse.nodered.org/t/umlauts-in-mail-csv-attachment-content/54469)

<div class="topic-metadata">

**Author:** [@Andreas703](https://discourse.nodered.org/u/Andreas703)\
**Replies:** 1\
**Last updated:** [30 November 2021 07:10 UTC](https://discourse.nodered.org/t/umlauts-in-mail-csv-attachment-content/54469 "2021-11-30T07:10:07Z")

</div>

Hi, I am sending me log files every day as backup. If I am sending it as csv there are problems with the encoding and all umlauts like ö,ä,ü and so on arent readable. If I am sending the same text as .txt it works. Th…

---

## [Splitting data advice](https://discourse.nodered.org/t/splitting-data-advice/54426)

<div class="topic-metadata">

**Author:** [@gregoinc](https://discourse.nodered.org/u/gregoinc)\
**Replies:** 7\
**Last updated:** [30 November 2021 01:32 UTC](https://discourse.nodered.org/t/splitting-data-advice/54426 "2021-11-30T01:32:08Z")

</div>

Hello, I am receiving some data from an aqara temperature sensor and I really want to extract just the temperature data to send to my blynk app. Here's what I have setup... Here's the code from the json node... kind…

---

## [Just upgraded to 2.1.3](https://discourse.nodered.org/t/just-upgraded-to-2-1-3/54418)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 9\
**Last updated:** [29 November 2021 22:12 UTC](https://discourse.nodered.org/t/just-upgraded-to-2-1-3/54418 "2021-11-29T22:12:31Z")

</div>

Yeah, ok, I have a foreign dark theme installed. I just updated to the latest version. Going through the tutorial. But it is hard to read. It's the installed theme - yeah? :frowning:

---

## [What node to FTP access](https://discourse.nodered.org/t/what-node-to-ftp-access/54456)

<div class="topic-metadata">

**Author:** [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Replies:** 1\
**Last updated:** [29 November 2021 13:25 UTC](https://discourse.nodered.org/t/what-node-to-ftp-access/54456 "2021-11-29T13:25:13Z")

</div>

Hi I have and ReoLink NVR that's support FTP access. What node in NodeRed is best, if I need to look into a folder (LAN/Local Network) on the NVR using FTP access, to see if a new image is added, if so... then somethin…

---

## [Unhandled Promise Rejection Warning](https://discourse.nodered.org/t/unhandled-promise-rejection-warning/54405)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 18\
**Last updated:** [29 November 2021 11:55 UTC](https://discourse.nodered.org/t/unhandled-promise-rejection-warning/54405 "2021-11-29T11:55:14Z")

</div>

In terminal I have this error: (node:1946) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pro…

---

## [Node modbus v.5.15 not support node.js 16.9.1](https://discourse.nodered.org/t/node-modbus-v-5-15-not-support-node-js-16-9-1/54432)

<div class="topic-metadata">

**Author:** [@sarawut](https://discourse.nodered.org/u/sarawut)\
**Replies:** 4\
**Last updated:** [29 November 2021 11:08 UTC](https://discourse.nodered.org/t/node-modbus-v-5-15-not-support-node-js-16-9-1/54432 "2021-11-29T11:08:18Z")

</div>

Hi all, I have question for when i install node.js v.16.9.1 and after that install modbus in plellte menu. It shown error not support please see picture need to install modbus v.6+ please help me for this case.

---

## [Modbus sniffer?](https://discourse.nodered.org/t/modbus-sniffer/54290)

<div class="topic-metadata">

**Author:** [@TheMiloNet](https://discourse.nodered.org/u/TheMiloNet)\
**Replies:** 9\
**Last updated:** [29 November 2021 11:00 UTC](https://discourse.nodered.org/t/modbus-sniffer/54290 "2021-11-29T11:00:33Z")

</div>

hi all, i am trying to implement a modbus sniffer. you will wonder why. very simple. I have a heat pump (slave) that communicates in modbus with its lcd panel (master). I would like to fetch the machine data without …

---

## [How to reassemble n sequential messages in one?](https://discourse.nodered.org/t/how-to-reassemble-n-sequential-messages-in-one/54280)

<div class="topic-metadata">

**Author:** [@thoraz](https://discourse.nodered.org/u/thoraz)\
**Replies:** 14\
**Last updated:** [29 November 2021 10:37 UTC](https://discourse.nodered.org/t/how-to-reassemble-n-sequential-messages-in-one/54280 "2021-11-29T10:37:06Z")

</div>

In my flow (v.1.3.5) I receive sequential MQTT messages that represent fragments of a bigger packet. In the messages I have the info of which number of fragment is. How can I reassemble the fragments in the original pack…

---

## [Cannot install module please help](https://discourse.nodered.org/t/cannot-install-module-please-help/54435)

<div class="topic-metadata">

**Author:** [@CaptainPengu](https://discourse.nodered.org/u/CaptainPengu)\
**Replies:** 6\
**Last updated:** [29 November 2021 10:26 UTC](https://discourse.nodered.org/t/cannot-install-module-please-help/54435 "2021-11-29T10:26:40Z")

</div>

Hi there, I'm new to nodered and was just starting out, I am trying to use NodeRed to receive data from a ESP8266 connected to a QMC5883L (Magnetic compass sensor). I am unsure of what issue but when I tried to run " np…

---

## [How do I dynamically set the time in TCP Request](https://discourse.nodered.org/t/how-do-i-dynamically-set-the-time-in-tcp-request/53803)

<div class="topic-metadata">

**Author:** [@MaoMao](https://discourse.nodered.org/u/MaoMao)\
**Replies:** 8\
**Last updated:** [29 November 2021 09:22 UTC](https://discourse.nodered.org/t/how-do-i-dynamically-set-the-time-in-tcp-request/53803 "2021-11-29T09:22:45Z")

</div>

I'm sorry to disturb you so much. For the node "TCP Request", I want to dynamically pass a time into the node instead of writing the time into the node in a fixed way. I tried to write "MSG.time". I don't know if this no…

---

## [Assigning function node variable to incoming payload naming convention](https://discourse.nodered.org/t/assigning-function-node-variable-to-incoming-payload-naming-convention/54437)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 1\
**Last updated:** [29 November 2021 09:04 UTC](https://discourse.nodered.org/t/assigning-function-node-variable-to-incoming-payload-naming-convention/54437 "2021-11-29T09:04:18Z")

</div>

I tend to have my first line in my Blocky nodes as assigning a variable called payload to msg.payload I then do stuff and quite often just change it to something else and then output it I was idling wondering whet…

---

## [Processing Time-Series Sensor Data](https://discourse.nodered.org/t/processing-time-series-sensor-data/54439)

<div class="topic-metadata">

**Author:** [@hamin123](https://discourse.nodered.org/u/hamin123)\
**Replies:** 1\
**Last updated:** [29 November 2021 08:11 UTC](https://discourse.nodered.org/t/processing-time-series-sensor-data/54439 "2021-11-29T08:11:28Z")

</div>

Hi, I am looking for a filter node that would give me output when it receives N number of inputs e.g. 1 for a specific message. For example, I have a dry contact on port 0 and it gives output every second. Now, if port…

---

## [HTTP request getting PDF as a string](https://discourse.nodered.org/t/http-request-getting-pdf-as-a-string/54443)

<div class="topic-metadata">

**Author:** [@toupou](https://discourse.nodered.org/u/toupou)\
**Replies:** 2\
**Last updated:** [29 November 2021 07:55 UTC](https://discourse.nodered.org/t/http-request-getting-pdf-as-a-string/54443 "2021-11-29T07:55:07Z")

</div>

Dear all, I´m getting from an API the PDF data as a string. When testing with Postman it shows the PDF and I can save it. But when working with Node-Red I can´t process that data any further. Just for testing I tried t…

---

## [Newbie trying to integrate OpenHAB with RFID card Reader](https://discourse.nodered.org/t/newbie-trying-to-integrate-openhab-with-rfid-card-reader/54423)

<div class="topic-metadata">

**Author:** [@dastrix](https://discourse.nodered.org/u/dastrix)\
**Replies:** 6\
**Last updated:** [29 November 2021 01:51 UTC](https://discourse.nodered.org/t/newbie-trying-to-integrate-openhab-with-rfid-card-reader/54423 "2021-11-29T01:51:04Z")

</div>

Hi All, I've managed to get the OpenHAB nodes imported and can see state changes etc working just fine. I downloaded some code and imported it for my Wiegand RFID reader and it also works fine by using an Inject Node to…

---

## [Help with TCP-Ping](https://discourse.nodered.org/t/help-with-tcp-ping/54389)

<div class="topic-metadata">

**Author:** [@gregoinc](https://discourse.nodered.org/u/gregoinc)\
**Replies:** 9\
**Last updated:** [29 November 2021 00:29 UTC](https://discourse.nodered.org/t/help-with-tcp-ping/54389 "2021-11-29T00:29:44Z")

</div>

Been a while since OI have posted. Have hit a bit of snag in relation to pinging a node on my network. Originally was using the 'ping' node but couldn't workout how to ping an IP address with a non-standard port. So I h…

---

## [Web Scraping with Empty results](https://discourse.nodered.org/t/web-scraping-with-empty-results/52587)

<div class="topic-metadata">

**Author:** [@Erin](https://discourse.nodered.org/u/Erin)\
**Replies:** 3\
**Last updated:** [28 November 2021 22:43 UTC](https://discourse.nodered.org/t/web-scraping-with-empty-results/52587 "2021-11-28T22:43:32Z")

</div>

Hello, I'm new to Node Red so I'm not quite sure how to extract correctly the data from web sites. I tried to retrieve data from http://www.bom.gov.au/nt/forecasts/darwin.shtml, but I got empty result. Could you please h…

---

## [Importing nodes - existing nodes/subflows - question](https://discourse.nodered.org/t/importing-nodes-existing-nodes-subflows-question/54384)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 8\
**Last updated:** [28 November 2021 21:23 UTC](https://discourse.nodered.org/t/importing-nodes-existing-nodes-subflows-question/54384 "2021-11-28T21:23:28Z")

</div>

Please read it all before replying. OK, I have kind of asked before but I am still not understanding it. (Though it does seem a bit better than before) Saying NR 1.3.5 I have subflows. I import a flow (code) from ano…

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

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