# General

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

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

**Page:** 821

---

## [How to add a carriage return to a buffer?](https://discourse.nodered.org/t/how-to-add-a-carriage-return-to-a-buffer/18580)

<div class="topic-metadata">

**Author:** [@JeanPascalDC](https://discourse.nodered.org/u/JeanPascalDC)\
**Replies:** 2\
**Last updated:** [2 December 2019 19:34 UTC](https://discourse.nodered.org/t/how-to-add-a-carriage-return-to-a-buffer/18580 "2019-12-02T19:34:28Z")

</div>

Hi all, I'm looking for a way to add a carriage return \[0xd\] at the end of my buffer array but can't figure out how. For reference, here is my string to carriage function var payload = msg.payload b = Buffer.from(msg.p…

---

## [Subflow: a replace or a function?](https://discourse.nodered.org/t/subflow-a-replace-or-a-function/18625)

<div class="topic-metadata">

**Author:** [@Joris6](https://discourse.nodered.org/u/Joris6)\
**Replies:** 13\
**Last updated:** [2 December 2019 19:15 UTC](https://discourse.nodered.org/t/subflow-a-replace-or-a-function/18625 "2019-12-02T19:15:46Z")

</div>

Hello everybody! I am struggling a bit with the concept of a subflow. And I am not sure if I understand the concept 100% correctly. I read the manual and some topics in this forum about subflows. But still I am not sur…

---

## [Send chart to another url](https://discourse.nodered.org/t/send-chart-to-another-url/18008)

<div class="topic-metadata">

**Author:** [@fmqs](https://discourse.nodered.org/u/fmqs)\
**Replies:** 6\
**Last updated:** [2 December 2019 17:52 UTC](https://discourse.nodered.org/t/send-chart-to-another-url/18008 "2019-12-02T17:52:50Z")

</div>

Hi, I'm new to Node-Red and I need to send data or a graph to an external URL (not the node-red dashboard). I am collecting the data from my plant and I'd like to send it to my laboratory website to display it as a grap…

---

## [Close a file after read/write](https://discourse.nodered.org/t/close-a-file-after-read-write/18697)

<div class="topic-metadata">

**Author:** [@ksmeeks0001](https://discourse.nodered.org/u/ksmeeks0001)\
**Replies:** 1\
**Last updated:** [2 December 2019 17:20 UTC](https://discourse.nodered.org/t/close-a-file-after-read-write/18697 "2019-12-02T17:20:38Z")

</div>

How would you set a file read/write to close the file after it is completed with it. I am adding to a CSV file at the end of each day but I would like the ability to edit the files manually if I wish. I receive the messa…

---

## [Letsencrypt SSL Nodered on Windows](https://discourse.nodered.org/t/letsencrypt-ssl-nodered-on-windows/18674)

<div class="topic-metadata">

**Author:** [@Raul\_77](https://discourse.nodered.org/u/Raul_77)\
**Replies:** 2\
**Last updated:** [2 December 2019 14:52 UTC](https://discourse.nodered.org/t/letsencrypt-ssl-nodered-on-windows/18674 "2019-12-02T14:52:56Z")

</div>

Hi Guys, I have nodered running and working great, I want to implement SSL to make it more secure. I have my nodered running on Windows 10, any help is appreciated. Thank you,

---

## [Pimoroni Rainbow hat pallete](https://discourse.nodered.org/t/pimoroni-rainbow-hat-pallete/18685)

<div class="topic-metadata">

**Author:** [@bmeester](https://discourse.nodered.org/u/bmeester)\
**Replies:** 2\
**Last updated:** [2 December 2019 10:43 UTC](https://discourse.nodered.org/t/pimoroni-rainbow-hat-pallete/18685 "2019-12-02T10:43:49Z")

</div>

I am trying to install the node-red-contrib-rainbow-hat but I get the following errors: Anybody got the rainbow head pallete working? errlog.txt (47.4 KB)

---

## [Continuing counting after reboot](https://discourse.nodered.org/t/continuing-counting-after-reboot/18354)

<div class="topic-metadata">

**Author:** [@Ki-va](https://discourse.nodered.org/u/Ki-va)\
**Replies:** 9\
**Last updated:** [2 December 2019 09:52 UTC](https://discourse.nodered.org/t/continuing-counting-after-reboot/18354 "2019-12-02T09:52:12Z")

</div>

I wrote the following counter: it 's start counting from a defined time forward. I want it to continue the count from the defined time even if my RPI is rebooted. But after a reboot the initial time is reset to the ti…

---

## [Osram Smart+ Socket with zigbee2mqtt](https://discourse.nodered.org/t/osram-smart-socket-with-zigbee2mqtt/18358)

<div class="topic-metadata">

**Author:** [@Mario](https://discourse.nodered.org/u/Mario)\
**Replies:** 1\
**Last updated:** [2 December 2019 08:27 UTC](https://discourse.nodered.org/t/osram-smart-socket-with-zigbee2mqtt/18358 "2019-12-02T08:27:56Z")

</div>

I would like to be able to switch my osram socket into node red. Unfortunately that is not so easy with a switch before the mqtt\_out. what do I have to do so that I can switch my osram smart + socket? the log on my raspi…

---

## [How to join numbers to form a date?](https://discourse.nodered.org/t/how-to-join-numbers-to-form-a-date/18655)

<div class="topic-metadata">

**Author:** [@Phil](https://discourse.nodered.org/u/Phil)\
**Replies:** 13\
**Last updated:** [1 December 2019 22:37 UTC](https://discourse.nodered.org/t/how-to-join-numbers-to-form-a-date/18655 "2019-12-01T22:37:32Z")

</div>

I have 3 numbers say 1,12, 2019 coming from different nodes at the same time. I need to join them to form a date like 1/12/2019. how to do it? I tried to save the numbers in context.data. and then tried to join them in …

---

## [Convert Seconds to Hours, Minutes & Seconds](https://discourse.nodered.org/t/convert-seconds-to-hours-minutes-seconds/4565)

<div class="topic-metadata">

**Author:** [@whatsupskip](https://discourse.nodered.org/u/whatsupskip)\
**Replies:** 6\
**Last updated:** [1 December 2019 22:11 UTC](https://discourse.nodered.org/t/convert-seconds-to-hours-minutes-seconds/4565 "2019-12-01T22:11:38Z")

</div>

Node Red 0.19.5 on Raspberry Pi For display purposes on the dashboard I want to display time remaining in Hours, Minutes & Seconds. I assume this is a common task to complete, but I have found very little on the best w…

---

## [Error was reported when the data is stored in the Mysql](https://discourse.nodered.org/t/error-was-reported-when-the-data-is-stored-in-the-mysql/18669)

<div class="topic-metadata">

**Author:** [@molly](https://discourse.nodered.org/u/molly)\
**Replies:** 1\
**Last updated:** [1 December 2019 21:08 UTC](https://discourse.nodered.org/t/error-was-reported-when-the-data-is-stored-in-the-mysql/18669 "2019-12-01T21:08:28Z")

</div>

Hi everyone, I have been trying to store the humidity and light values to a Mysql database, and displayed as a table 'mqtt', the flow is like this: The sensed value is shown in msg.payload.payload\_fields which are hu…

---

## [IBM Cloud: where is the "IBM Iot in" node?](https://discourse.nodered.org/t/ibm-cloud-where-is-the-ibm-iot-in-node/18618)

<div class="topic-metadata">

**Author:** [@deveops](https://discourse.nodered.org/u/deveops)\
**Replies:** 5\
**Last updated:** [1 December 2019 20:44 UTC](https://discourse.nodered.org/t/ibm-cloud-where-is-the-ibm-iot-in-node/18618 "2019-12-01T20:44:11Z")

</div>

When running Node-Red in the IBM Cloud, there used to be "IBM IoT in" and "IBM IoT out" nodes which allowed to easily connect to the IBM Watson IoT platform. Many tutorials in the web refer to these nodes. But now, they …

---

## [HTTP POST with form data but content type application/json](https://discourse.nodered.org/t/http-post-with-form-data-but-content-type-application-json/18639)

<div class="topic-metadata">

**Author:** [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Replies:** 5\
**Last updated:** [1 December 2019 20:40 UTC](https://discourse.nodered.org/t/http-post-with-form-data-but-content-type-application-json/18639 "2019-12-01T20:40:42Z")

</div>

I want to perform a HTTP POST request with form(?) data. Function node: msg.headers = {} msg.method = "POST" msg.url = "https://api.goslide.io/api/auth/login" msg.payload = {"email": "email","password": "pass"} msg.he…

---

## [General observations about the forum](https://discourse.nodered.org/t/general-observations-about-the-forum/18663)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 2\
**Last updated:** [1 December 2019 18:49 UTC](https://discourse.nodered.org/t/general-observations-about-the-forum/18663 "2019-12-01T18:49:29Z")

</div>

Having been in IT since when we chiseled on rocks I have seen the internet invented and grow. Basically being a hardware guy my exposure to programming was limited to making sure it ran on the hardware and yelling at dev…

---

## [Read Date and Time out of any Node](https://discourse.nodered.org/t/read-date-and-time-out-of-any-node/17722)

<div class="topic-metadata">

**Author:** [@AndSoOn](https://discourse.nodered.org/u/AndSoOn)\
**Replies:** 13\
**Last updated:** [1 December 2019 17:14 UTC](https://discourse.nodered.org/t/read-date-and-time-out-of-any-node/17722 "2019-12-01T17:14:57Z")

</div>

Hi, i stumbel with the Date and Time at any Node. I know how to get Date and Time with the Timestamp, but how can i get them out of the Node i just use. e.g I read 12 Temperatursensor and write them to a file. now it w…

---

## [REST API Message Retriever](https://discourse.nodered.org/t/rest-api-message-retriever/18658)

<div class="topic-metadata">

**Author:** [@Noa17](https://discourse.nodered.org/u/Noa17)\
**Replies:** 0\
**Last updated:** [1 December 2019 15:32 UTC](https://discourse.nodered.org/t/rest-api-message-retriever/18658 "2019-12-01T15:32:37Z")

</div>

Hi i need a proper response function for this flow Note that am using this code for the query : ........................................................................................................... if(!msg.req.…

---

## [httpServerOptions (settings.js) does not accept settings](https://discourse.nodered.org/t/httpserveroptions-settings-js-does-not-accept-settings/10627)

<div class="topic-metadata">

**Author:** [@adamiD](https://discourse.nodered.org/u/adamiD)\
**Replies:** 5\
**Last updated:** [1 December 2019 15:19 UTC](https://discourse.nodered.org/t/httpserveroptions-settings-js-does-not-accept-settings/10627 "2019-12-01T15:19:02Z")

</div>

Hello guys, I am using the latest version (0.20.5) without any problem, but when I try to configure (httpServerOptions) it does not work on any "expressjs" settings. // The following property can be used to pass cu…

---

## [PLC with node red](https://discourse.nodered.org/t/plc-with-node-red/18540)

<div class="topic-metadata">

**Author:** [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Replies:** 3\
**Last updated:** [30 November 2019 22:37 UTC](https://discourse.nodered.org/t/plc-with-node-red/18540 "2019-11-30T22:37:19Z")

</div>

Hi I want to make two connection of plc in node red flow but the thing is it is giving one plc output all time How two plc node can be imported so that both plcs data can be access. when i inject in plc1 the conf…

---

## [Flow stops working, why? and how to fix it? (TypeError: Cannot read property '0' of null)](https://discourse.nodered.org/t/flow-stops-working-why-and-how-to-fix-it-typeerror-cannot-read-property-0-of-null/18556)

<div class="topic-metadata">

**Author:** [@valent](https://discourse.nodered.org/u/valent)\
**Replies:** 4\
**Last updated:** [30 November 2019 22:28 UTC](https://discourse.nodered.org/t/flow-stops-working-why-and-how-to-fix-it-typeerror-cannot-read-property-0-of-null/18556 "2019-11-30T22:28:56Z")

</div>

Hi, I'm using simple functions to format data from the things network and to save it locally and to forward it to influx database. Flow works some time for few days, some time for few hours and I just see that data is …

---

## [Raspi 2B+ node-red-node-pi-gpio does not send msg when pin status was changed](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 8\
**Last updated:** [30 November 2019 21:43 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634 "2019-11-30T21:43:10Z")

</div>

Hiho, I tried using node-red-node-pi-gpio to read pin status and it should send a 1 / 0 msg. But it doesn´t send any msg when changing pin status. rpi.gpio is installed and reading pin with the bash does give me a good …

---

## [Field in TTN Uplink node](https://discourse.nodered.org/t/field-in-ttn-uplink-node/18641)

<div class="topic-metadata">

**Author:** [@molly](https://discourse.nodered.org/u/molly)\
**Replies:** 0\
**Last updated:** [30 November 2019 21:16 UTC](https://discourse.nodered.org/t/field-in-ttn-uplink-node/18641 "2019-11-30T21:16:41Z")

</div>

Hi, I wanna to define the Field in TTN Uplink, so only one payload can be the output. But in fact, after I defined this to 'humidity' or 'payload.humidity' or 'payload\_fields.humidity', there has no change. I am so cond…

---

## [Preparation of a Data string for insert into MSQL database](https://discourse.nodered.org/t/preparation-of-a-data-string-for-insert-into-msql-database/18597)

<div class="topic-metadata">

**Author:** [@Francesco](https://discourse.nodered.org/u/Francesco)\
**Replies:** 2\
**Last updated:** [30 November 2019 20:30 UTC](https://discourse.nodered.org/t/preparation-of-a-data-string-for-insert-into-msql-database/18597 "2019-11-30T20:30:19Z")

</div>

Hello everyone I ran into a small problem, currently solved, but I would like to understand. Preparing a string to introduce a date in the DB I need to have the fields month, hour, minutes and seconds always expressed …

---

## [Search in spreadsheet (CTRL+F)](https://discourse.nodered.org/t/search-in-spreadsheet-ctrl-f/18635)

<div class="topic-metadata">

**Author:** [@debouttek](https://discourse.nodered.org/u/debouttek)\
**Replies:** 1\
**Last updated:** [30 November 2019 14:28 UTC](https://discourse.nodered.org/t/search-in-spreadsheet-ctrl-f/18635 "2019-11-30T14:28:07Z")

</div>

My msg.payload output gives me a number from 0 to 40. I have a spreadsheet with 2 columns and 40 rows. Column A contains data from 0 to 40 and column B contains information that I need. Is it possible to search in the…

---

## [Opinions on UI design](https://discourse.nodered.org/t/opinions-on-ui-design/16286)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 11\
**Last updated:** [30 November 2019 13:41 UTC](https://discourse.nodered.org/t/opinions-on-ui-design/16286 "2019-11-30T13:41:24Z")

</div>

Although I am quite new to node-red I now have a couple of working flows I use not daily but often. They require some interaction so I have done a dashboard with the controls on them. There is little control on placement…

---

## [Jump from 1st flow tab to last one](https://discourse.nodered.org/t/jump-from-1st-flow-tab-to-last-one/18633)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 10\
**Last updated:** [30 November 2019 12:20 UTC](https://discourse.nodered.org/t/jump-from-1st-flow-tab-to-last-one/18633 "2019-11-30T12:20:41Z")

</div>

If there a shortcut method (like ctrl-shift-alt-f43 or something) to get from my 1st flow tab to my last flow tab Confession: I currently have 90 tabs on my Win10 Node-RED instance .....

---

## [Arduino disconnected](https://discourse.nodered.org/t/arduino-disconnected/18374)

<div class="topic-metadata">

**Author:** [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Replies:** 4\
**Last updated:** [30 November 2019 11:20 UTC](https://discourse.nodered.org/t/arduino-disconnected/18374 "2019-11-30T11:20:39Z")

</div>

Hi There, I'm using raspberry PI MODEL 3 A+, with arduino board connected in to usb problem is after some time it is disconnected from raspberry pi, and I have to restart the RPI so that it is connected again. How to s…

---

## [Virtual Gateway in LoRaWAN with Node-Red](https://discourse.nodered.org/t/virtual-gateway-in-lorawan-with-node-red/18558)

<div class="topic-metadata">

**Author:** [@Florinda](https://discourse.nodered.org/u/Florinda)\
**Replies:** 1\
**Last updated:** [30 November 2019 10:41 UTC](https://discourse.nodered.org/t/virtual-gateway-in-lorawan-with-node-red/18558 "2019-11-30T10:41:14Z")

</div>

Good morning, I am trying to implement a LoRaWANRelay, as explained in the following https://github.com/LoRaWanRelay/LoRaWanRelay Node-Red is required in order to create a virtual gateway, that has to be registered als…

---

## [What's wrong in my function](https://discourse.nodered.org/t/whats-wrong-in-my-function/18624)

<div class="topic-metadata">

**Author:** [@Mario](https://discourse.nodered.org/u/Mario)\
**Replies:** 4\
**Last updated:** [29 November 2019 23:35 UTC](https://discourse.nodered.org/t/whats-wrong-in-my-function/18624 "2019-11-29T23:35:33Z")

</div>

Hello, my function works only in one direction. Either she only goes once or only once. depending on whether I switch on or off in the function. I can not find the mistake. in the debug is to see that from the function …

---

## [Searching a way to set link out / link in by Dashboard](https://discourse.nodered.org/t/searching-a-way-to-set-link-out-link-in-by-dashboard/18604)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 2\
**Last updated:** [29 November 2019 20:00 UTC](https://discourse.nodered.org/t/searching-a-way-to-set-link-out-link-in-by-dashboard/18604 "2019-11-29T20:00:17Z")

</div>

Hi folks, I have different pir sensors linked by link in / out nodes to switches. Is there a way to set the linking by dashbord ? Thx !

---

## [TypeError: message.chat is not a function](https://discourse.nodered.org/t/typeerror-message-chat-is-not-a-function/18576)

<div class="topic-metadata">

**Author:** [@burns1111](https://discourse.nodered.org/u/burns1111)\
**Replies:** 4\
**Last updated:** [29 November 2019 19:39 UTC](https://discourse.nodered.org/t/typeerror-message-chat-is-not-a-function/18576 "2019-11-29T19:39:00Z")

</div>

Hello, i try to send a text to a telagram bot, but i get the follow error: "TypeError: message.chat is not a function" I use a function msg.payload = {} msg.payload.chatId = "my id" msg.payload.type = 'message' ms…

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

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