# General

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

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

**Page:** 445

---

## [Roller shutter automation with variables](https://discourse.nodered.org/t/roller-shutter-automation-with-variables/55764)

<div class="topic-metadata">

**Author:** [@u20p17](https://discourse.nodered.org/u/u20p17)\
**Replies:** 17\
**Last updated:** [4 January 2022 19:57 UTC](https://discourse.nodered.org/t/roller-shutter-automation-with-variables/55764 "2022-01-04T19:57:56Z")

</div>

Hi all, at the moment I am trying to implement my roller shutter automation in Node-Red. The roller shutter are closing at night automatically and open in the morning - everything like expected. Now I also want to Imple…

---

## [Use payload or context in filename with node: Read File](https://discourse.nodered.org/t/use-payload-or-context-in-filename-with-node-read-file/56094)

<div class="topic-metadata">

**Author:** [@Seyude](https://discourse.nodered.org/u/Seyude)\
**Replies:** 4\
**Last updated:** [4 January 2022 18:53 UTC](https://discourse.nodered.org/t/use-payload-or-context-in-filename-with-node-read-file/56094 "2022-01-04T18:53:07Z")

</div>

Hello, Short version: How can I use the msg.payload in the filename I want to read with the node 'Read File'? Why: I'm working on the following flow: \[{"id":"d944d9276f412dd6","type":"tab","label":"TESTFLOW","disable…

---

## [Node Red consuming 100% CPU power](https://discourse.nodered.org/t/node-red-consuming-100-cpu-power/56006)

<div class="topic-metadata">

**Author:** [@IAmKonni](https://discourse.nodered.org/u/IAmKonni)\
**Replies:** 21\
**Last updated:** [4 January 2022 15:45 UTC](https://discourse.nodered.org/t/node-red-consuming-100-cpu-power/56006 "2022-01-04T15:45:54Z")

</div>

Hey guys, i am using Node-RED in my home automation scenario for different purposes. I have about 10 flows with each about 5 up to 50 nodes. Everything is working fine, but i have a big problem with the CPU usage that s…

---

## [Corrent syntax to pull date, time, from timestamp and format to .csv](https://discourse.nodered.org/t/corrent-syntax-to-pull-date-time-from-timestamp-and-format-to-csv/56088)

<div class="topic-metadata">

**Author:** [@Loonhaunt](https://discourse.nodered.org/u/Loonhaunt)\
**Replies:** 2\
**Last updated:** [4 January 2022 15:22 UTC](https://discourse.nodered.org/t/corrent-syntax-to-pull-date-time-from-timestamp-and-format-to-csv/56088 "2022-01-04T15:22:58Z")

</div>

I am using the code below in a format node to pull data from openweathermap to create a small .csv data base. I am having a hard time getting and formatting date time info into date,time or datetime, I am only able to …

---

## [Flows disappear when restarting Raspberry pi](https://discourse.nodered.org/t/flows-disappear-when-restarting-raspberry-pi/55439)

<div class="topic-metadata">

**Author:** [@Loonhaunt](https://discourse.nodered.org/u/Loonhaunt)\
**Replies:** 7\
**Last updated:** [4 January 2022 15:14 UTC](https://discourse.nodered.org/t/flows-disappear-when-restarting-raspberry-pi/55439 "2022-01-04T15:14:31Z")

</div>

How do I keep flows from disappearing when I power down or restart my Rpi? I don't know how to recover a flow. This doesn't seem to be consistent. I can work on a flow add nodes create functions etc. If I close my …

---

## [Store complete msg object in InfluxDB](https://discourse.nodered.org/t/store-complete-msg-object-in-influxdb/56025)

<div class="topic-metadata">

**Author:** [@jlazkano](https://discourse.nodered.org/u/jlazkano)\
**Replies:** 4\
**Last updated:** [4 January 2022 14:07 UTC](https://discourse.nodered.org/t/store-complete-msg-object-in-influxdb/56025 "2022-01-04T14:07:54Z")

</div>

Hello, I have a crypto value object that want to store in a InfluxDB server: I have configured a 1.8v Influx server: But I get this error: Error: A 400 Bad Request error occurred: {"error":"unable to parse 'msg.p…

---

## [Node-red-contrib-modbus. Cannot recover TCP connection after server rebooting](https://discourse.nodered.org/t/node-red-contrib-modbus-cannot-recover-tcp-connection-after-server-rebooting/47123)

<div class="topic-metadata">

**Author:** [@John1](https://discourse.nodered.org/u/John1)\
**Replies:** 6\
**Last updated:** [4 January 2022 11:55 UTC](https://discourse.nodered.org/t/node-red-contrib-modbus-cannot-recover-tcp-connection-after-server-rebooting/47123 "2022-01-04T11:55:15Z")

</div>

Hello community. I have a question about possibility to automatically recover TCP connection after modbus server rebooting. There is next situation: Where I deploy the flow, all work good (TCP connection is set, client…

---

## [Extract value on changing date](https://discourse.nodered.org/t/extract-value-on-changing-date/56040)

<div class="topic-metadata">

**Author:** [@Stevom](https://discourse.nodered.org/u/Stevom)\
**Replies:** 8\
**Last updated:** [4 January 2022 11:07 UTC](https://discourse.nodered.org/t/extract-value-on-changing-date/56040 "2022-01-04T11:07:35Z")

</div>

Hello, i need to extract the tho date from the json object. The date's always change depending what day it is. The data in picture is from the last date's, 2022-01-03 and 2022-01-04.

---

## [Export a docker proyect with node-red and some npm packages](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033)

<div class="topic-metadata">

**Author:** [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Replies:** 2\
**Last updated:** [4 January 2022 08:53 UTC](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033 "2022-01-04T08:53:31Z")

</div>

I have a virtual machine with a docker project, it uses docker compose, npm and it has internet. I want to migrate this docker project to another machine without internet and be able to update if I require more changes …

---

## [How to interpretate output of RSI or MACD TALib](https://discourse.nodered.org/t/how-to-interpretate-output-of-rsi-or-macd-talib/55986)

<div class="topic-metadata">

**Author:** [@jrbou](https://discourse.nodered.org/u/jrbou)\
**Replies:** 2\
**Last updated:** [4 January 2022 08:28 UTC](https://discourse.nodered.org/t/how-to-interpretate-output-of-rsi-or-macd-talib/55986 "2022-01-04T08:28:18Z")

</div>

Hi all, I am working on TALib indicators focus on RSI and MACD, I got the results from the node after create a json with my data, but I have no idea about how to store it or plot. I did a lot of search, but using Node-…

---

## [How should the change node work with context?](https://discourse.nodered.org/t/how-should-the-change-node-work-with-context/56058)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 9\
**Last updated:** [3 January 2022 22:23 UTC](https://discourse.nodered.org/t/how-should-the-change-node-work-with-context/56058 "2022-01-03T22:23:35Z")

</div>

Using the change node to modify several properties of an incoming message, I decided to save the modified message in global context. It took a while to find the trick, but this seems to work. But I have questions. S…

---

## [Import csv data to inluxdb - function node](https://discourse.nodered.org/t/import-csv-data-to-inluxdb-function-node/55952)

<div class="topic-metadata">

**Author:** [@tester277](https://discourse.nodered.org/u/tester277)\
**Replies:** 11\
**Last updated:** [3 January 2022 21:35 UTC](https://discourse.nodered.org/t/import-csv-data-to-inluxdb-function-node/55952 "2022-01-03T21:35:49Z")

</div>

Hello everyone, I want to write Data from csv with the following format to a influx db. Example: Time,TS1,TS2,RO1,Heatquantity1,Heatquantity2,CO2Savings,Errors 2020-01-02T00:00,3.0,14.6,0,977,977,234,0 How can you p…

---

## [Deploy node red on Kubernetes with custom settings.js](https://discourse.nodered.org/t/deploy-node-red-on-kubernetes-with-custom-settings-js/56057)

<div class="topic-metadata">

**Author:** [@rorokoko](https://discourse.nodered.org/u/rorokoko)\
**Replies:** 1\
**Last updated:** [3 January 2022 20:11 UTC](https://discourse.nodered.org/t/deploy-node-red-on-kubernetes-with-custom-settings-js/56057 "2022-01-03T20:11:56Z")

</div>

Hi guys, What is the easiest way to deploy node red docker on K8 using custom settings.js and some additional files? One way that i can think of is to first create a persistent volume and paste the files on to it, and t…

---

## [Array Split trouble](https://discourse.nodered.org/t/array-split-trouble/56041)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.nodered.org/u/Dave)\
**Replies:** 7\
**Last updated:** [3 January 2022 15:54 UTC](https://discourse.nodered.org/t/array-split-trouble/56041 "2022-01-03T15:54:51Z")

</div>

I am having trouble splitting an array and converting result to a number as follows. the main array consists of 185 elements I can split the main array into the element I want with the following ... var parts = msg.pa…

---

## [Rain sensor node](https://discourse.nodered.org/t/rain-sensor-node/56027)

<div class="topic-metadata">

**Author:** [@hasan\_s\_m](https://discourse.nodered.org/u/hasan_s_m)\
**Replies:** 8\
**Last updated:** [3 January 2022 14:48 UTC](https://discourse.nodered.org/t/rain-sensor-node/56027 "2022-01-03T14:48:59Z")

</div>

Hi, Everyone, Now I am doing one project with raspberry pi and node red. Now, I am working with rain sensor .But I can not find relevant node for rain detect sensor. Does node red have any node that can detect the rain …

---

## [Unable to get current node-red flows using Admin API GET Method](https://discourse.nodered.org/t/unable-to-get-current-node-red-flows-using-admin-api-get-method/56038)

<div class="topic-metadata">

**Author:** [@abhilash-ingale](https://discourse.nodered.org/u/abhilash-ingale)\
**Replies:** 2\
**Last updated:** [3 January 2022 14:12 UTC](https://discourse.nodered.org/t/unable-to-get-current-node-red-flows-using-admin-api-get-method/56038 "2022-01-03T14:12:23Z")

</div>

Hi all, I am running Node-Red 2.0.6 on a Raspberry Pi 4 and want to get all the currently deployed flows as a JSON object using the HTTP Admin API GET Method. For this, I used an http request node and selected GET meth…

---

## [How to catch this error?](https://discourse.nodered.org/t/how-to-catch-this-error/56034)

<div class="topic-metadata">

**Author:** [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Replies:** 2\
**Last updated:** [3 January 2022 12:55 UTC](https://discourse.nodered.org/t/how-to-catch-this-error/56034 "2022-01-03T12:55:22Z")

</div>

Hello I am using this library: node-red-contrib-cloud-firestore to connect with my firestore database. It works pretty good, but sometimes I get some unexpected error: As you can see, it's: Failed to start HTTP/2 s…

---

## [How to create messages from an array with a variable number of elements](https://discourse.nodered.org/t/how-to-create-messages-from-an-array-with-a-variable-number-of-elements/55991)

<div class="topic-metadata">

**Author:** [@Bodad](https://discourse.nodered.org/u/Bodad)\
**Replies:** 13\
**Last updated:** [3 January 2022 11:39 UTC](https://discourse.nodered.org/t/how-to-create-messages-from-an-array-with-a-variable-number-of-elements/55991 "2022-01-03T11:39:33Z")

</div>

Hi, I have a payload which contains Smart meter readings in sub-arrays in the payload.data array. The payload.data array can contain a variable number of sub-arrays, depending on when the last update took place. I am t…

---

## [Need some help configuring mqtt connection](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019)

<div class="topic-metadata">

**Author:** [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Replies:** 12\
**Last updated:** [3 January 2022 11:31 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019 "2022-01-03T11:31:24Z")

</div>

Hi Everyone, I am trying to configure a API connection to my home automation, The manufacturer provided me with a CA-chain.cert.perm file, allong with a username and password. But no matter how i configure the mqtt no…

---

## [Node-red-contrib-discovery2mqtt nodes](https://discourse.nodered.org/t/node-red-contrib-discovery2mqtt-nodes/55561)

<div class="topic-metadata">

**Author:** [@bobcroft](https://discourse.nodered.org/u/bobcroft)\
**Replies:** 7\
**Last updated:** [3 January 2022 11:06 UTC](https://discourse.nodered.org/t/node-red-contrib-discovery2mqtt-nodes/55561 "2022-01-03T11:06:32Z")

</div>

Is there anybody using these nodes? There doesn't seem to be much information found by Google search. I have spent about half a day trying to get theese nodes to work. Does anybody have working flow thay could share p…

---

## [How to do a simple sum of 2 msgs](https://discourse.nodered.org/t/how-to-do-a-simple-sum-of-2-msgs/5382)

<div class="topic-metadata">

**Author:** [@ederpereira92](https://discourse.nodered.org/u/ederpereira92)\
**Replies:** 27\
**Last updated:** [2 January 2022 21:30 UTC](https://discourse.nodered.org/t/how-to-do-a-simple-sum-of-2-msgs/5382 "2022-01-02T21:30:02Z")

</div>

Hello, Im working in my final paper and I find myself in a situation I cant solve a simple sum of two mqtt messages. Could someone help-me?

---

## [Uibuilder + apexCharts not working](https://discourse.nodered.org/t/uibuilder-apexcharts-not-working/56011)

<div class="topic-metadata">

**Author:** [@ChankyTheConqueror](https://discourse.nodered.org/u/ChankyTheConqueror)\
**Replies:** 3\
**Last updated:** [2 January 2022 21:34 UTC](https://discourse.nodered.org/t/uibuilder-apexcharts-not-working/56011 "2022-01-02T21:34:04Z")

</div>

Hi guys, i'm trying a zoomable time series demo from apex zoomable time series but some how it's not working and i cant really debug because of my limited javascript + html skillls, no error is reported. What i have d…

---

## [World Map Great Circle Lines](https://discourse.nodered.org/t/world-map-great-circle-lines/55842)

<div class="topic-metadata">

**Author:** [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Replies:** 16\
**Last updated:** [2 January 2022 21:19 UTC](https://discourse.nodered.org/t/world-map-great-circle-lines/55842 "2022-01-02T21:19:02Z")

</div>

I took a look around the web, but couldn't find a definite answer, so I'm posting here. I'm looking at producing the following type map with the worldmap node. If it's not a current feature, I'd like to put in a reques…

---

## [Water Level Sensor converter (From Arduino to Raspberry )](https://discourse.nodered.org/t/water-level-sensor-converter-from-arduino-to-raspberry/56010)

<div class="topic-metadata">

**Author:** [@momo\_98](https://discourse.nodered.org/u/momo_98)\
**Replies:** 1\
**Last updated:** [2 January 2022 19:28 UTC](https://discourse.nodered.org/t/water-level-sensor-converter-from-arduino-to-raspberry/56010 "2022-01-02T19:28:58Z")

</div>

Hi, we have a problem with converter the data acquired from a water level sensor, The work is: Water level Sensor send data to arduino uno ( the unity of water is "ml" ) and then through i2c the arduino uno send data …

---

## [How to select current object from an array?](https://discourse.nodered.org/t/how-to-select-current-object-from-an-array/56005)

<div class="topic-metadata">

**Author:** [@niklasn](https://discourse.nodered.org/u/niklasn)\
**Replies:** 7\
**Last updated:** [2 January 2022 19:23 UTC](https://discourse.nodered.org/t/how-to-select-current-object-from-an-array/56005 "2022-01-02T19:23:21Z")

</div>

Hi, obvious newbie-post, but with too little experience from JS, one has to start somewhere... I have an array of objects as per below showing the price of electricity every hour. The array contains this day and tomorr…

---

## [Need to specify subprotocol for WebSocket connection](https://discourse.nodered.org/t/need-to-specify-subprotocol-for-websocket-connection/9466)

<div class="topic-metadata">

**Author:** [@ChipsNSalsa](https://discourse.nodered.org/u/ChipsNSalsa)\
**Replies:** 9\
**Last updated:** [2 January 2022 17:05 UTC](https://discourse.nodered.org/t/need-to-specify-subprotocol-for-websocket-connection/9466 "2022-01-02T17:05:55Z")

</div>

The server that I am working with requires the Sec-WebSocket-Protocol request header field be set to a non-standard (not registered) subprotocol in the client request to upgrade to WebSockets. No matter what I've tried, …

---

## [Cryptocurrency Exchange Array (searching, tabling, etc)](https://discourse.nodered.org/t/cryptocurrency-exchange-array-searching-tabling-etc/55579)

<div class="topic-metadata">

**Author:** [@interscope101](https://discourse.nodered.org/u/interscope101)\
**Replies:** 20\
**Last updated:** [2 January 2022 14:06 UTC](https://discourse.nodered.org/t/cryptocurrency-exchange-array-searching-tabling-etc/55579 "2022-01-02T14:06:12Z")

</div>

Hi there, I' just started using Node and spent a week struggling to implement the following "basic" config - finally decided to ask for help :slight\_smile: Using the ccxt-api-v2 node I check several exchanges if a s…

---

## [Setup node variables in function node on start](https://discourse.nodered.org/t/setup-node-variables-in-function-node-on-start/55984)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 3\
**Last updated:** [2 January 2022 09:06 UTC](https://discourse.nodered.org/t/setup-node-variables-in-function-node-on-start/55984 "2022-01-02T09:06:14Z")

</div>

Hi folks, My first question in 2022, and it is a noob level one. First time that I use the "On start" tabsheet in the function node... All my code in the "On start" tabsheet is executed correctly, but when I add this: …

---

## [Node-RED select sqlite db and transform the date into an object with arrays](https://discourse.nodered.org/t/node-red-select-sqlite-db-and-transform-the-date-into-an-object-with-arrays/18467)

<div class="topic-metadata">

**Author:** [@Argon](https://discourse.nodered.org/u/Argon)\
**Replies:** 4\
**Last updated:** [2 January 2022 06:54 UTC](https://discourse.nodered.org/t/node-red-select-sqlite-db-and-transform-the-date-into-an-object-with-arrays/18467 "2022-01-02T06:54:08Z")

</div>

Hi, To start with, i'm not a pro coder and rather love it to try new things. So some things that i'm saying here could be completly wrong or maybe i'm trying things that are not seen as best practice. :wink: I'm fillin…

---

## [Error with library on function node, is a bug?](https://discourse.nodered.org/t/error-with-library-on-function-node-is-a-bug/55927)

<div class="topic-metadata">

**Author:** [@essereumano](https://discourse.nodered.org/u/essereumano)\
**Replies:** 8\
**Last updated:** [1 January 2022 22:42 UTC](https://discourse.nodered.org/t/error-with-library-on-function-node-is-a-bug/55927 "2022-01-01T22:42:05Z")

</div>

Hello everyone and happy new year. I am using node red 2.1.4 and in the function node I have inserted the library moment in the setup tab, it works correctly but if I go back to the tab on message and I click on the butt…

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

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