# General

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

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

**Page:** 225

---

## [Handling of environment variables locally and in Docker](https://discourse.nodered.org/t/handling-of-environment-variables-locally-and-in-docker/77300)

<div class="topic-metadata">

**Author:** [@flipzz](https://discourse.nodered.org/u/flipzz)\
**Replies:** 2\
**Last updated:** [6 April 2023 08:11 UTC](https://discourse.nodered.org/t/handling-of-environment-variables-locally-and-in-docker/77300 "2023-04-06T08:11:38Z")

</div>

Hi, I have a setup that looks like this: I develop locally using Node red (npm start etc) I have build scripts that can build these files as docker containers that can be deployed in other environments The problem I …

---

## [Function Node "On Start" Tab](https://discourse.nodered.org/t/function-node-on-start-tab/77257)

<div class="topic-metadata">

**Author:** [@andyp](https://discourse.nodered.org/u/andyp)\
**Replies:** 9\
**Last updated:** [5 April 2023 20:17 UTC](https://discourse.nodered.org/t/function-node-on-start-tab/77257 "2023-04-05T20:17:10Z")

</div>

Hi I am looking for examples on how to use the 'On Start' tab in a function node. Can I use it like Arduino 'Void Setup()'? For example (and my example does not work), can I put in 'On Start' something like this: stat…

---

## [Only print ending](https://discourse.nodered.org/t/only-print-ending/77289)

<div class="topic-metadata">

**Author:** [@nbech](https://discourse.nodered.org/u/nbech)\
**Replies:** 2\
**Last updated:** [5 April 2023 20:09 UTC](https://discourse.nodered.org/t/only-print-ending/77289 "2023-04-05T20:09:19Z")

</div>

I have a payload sting thats exporting like this. Im wanting to read just the end fields and not all the " { :. I have tired using the split but I cant seem to get the right function. node: debug 113 msg.payload…

---

## [Countdown from Number](https://discourse.nodered.org/t/countdown-from-number/77273)

<div class="topic-metadata">

**Author:** [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Replies:** 4\
**Last updated:** [5 April 2023 14:36 UTC](https://discourse.nodered.org/t/countdown-from-number/77273 "2023-04-05T14:36:34Z")

</div>

Hi I am trying to build an countdown from a number (7777777777). Every 4 Seconds it should decrease at 1 And this number is shown in Dashboard. That works all. Now my Question: If the Raspyery gets off from Power an…

---

## [Values do not go at the same row for MSSQL](https://discourse.nodered.org/t/values-do-not-go-at-the-same-row-for-mssql/77187)

<div class="topic-metadata">

**Author:** [@boarak](https://discourse.nodered.org/u/boarak)\
**Replies:** 17\
**Last updated:** [5 April 2023 14:02 UTC](https://discourse.nodered.org/t/values-do-not-go-at-the-same-row-for-mssql/77187 "2023-04-05T14:02:38Z")

</div>

Hello. I am sending the values of my electric screwdriver to MSSQL. I have four different values. These are speed, torque, turns, and total time. I also sent them to MSSQL. Every value is creating a different row. I woul…

---

## [Node-red V3.0.2 - fail after many reconnect attemps on OPC-ua](https://discourse.nodered.org/t/node-red-v3-0-2-fail-after-many-reconnect-attemps-on-opc-ua/77276)

<div class="topic-metadata">

**Author:** [@Briooosa](https://discourse.nodered.org/u/Briooosa)\
**Replies:** 0\
**Last updated:** [5 April 2023 14:00 UTC](https://discourse.nodered.org/t/node-red-v3-0-2-fail-after-many-reconnect-attemps-on-opc-ua/77276 "2023-04-05T14:00:57Z")

</div>

Hi All, Last month i update to Node-red V3.0.2, and i have been having many problems with OPC-UA. When the equipment is off, the node-red flow start on reconnects attempts and after some time or attempts, i don´t know.…

---

## [Problem in updating a document in MongoDB](https://discourse.nodered.org/t/problem-in-updating-a-document-in-mongodb/76609)

<div class="topic-metadata">

**Author:** [@manankanchu](https://discourse.nodered.org/u/manankanchu)\
**Replies:** 6\
**Last updated:** [5 April 2023 13:01 UTC](https://discourse.nodered.org/t/problem-in-updating-a-document-in-mongodb/76609 "2023-04-05T13:01:49Z")

</div>

Hi I'm using "node-red-node-mongodb" to write to a MongoDB cluster. All fine as long as I'm using "save" to write a document with a set of objects. When trying to "update" a certain document by adding additional objec…

---

## [Time formating convert](https://discourse.nodered.org/t/time-formating-convert/77258)

<div class="topic-metadata">

**Author:** [@soerenbull](https://discourse.nodered.org/u/soerenbull)\
**Replies:** 1\
**Last updated:** [5 April 2023 10:56 UTC](https://discourse.nodered.org/t/time-formating-convert/77258 "2023-04-05T10:56:23Z")

</div>

Hey. Still a newbie to node red :slight\_smile: i maneged to get my PLC time function to work with the help of this topic: So now i can read the time value from my PLC The code for function block is: var asHex = par…

---

## [Error code in RTSP stream decoding](https://discourse.nodered.org/t/error-code-in-rtsp-stream-decoding/77192)

<div class="topic-metadata">

**Author:** [@lodv](https://discourse.nodered.org/u/lodv)\
**Replies:** 18\
**Last updated:** [5 April 2023 10:52 UTC](https://discourse.nodered.org/t/error-code-in-rtsp-stream-decoding/77192 "2023-04-05T10:52:43Z")

</div>

This is the code I use to decode my rtsp stream from an Sonoff camera (GK-200MP2-B): ffmpeg -f rtsp -i "rtsp://rtsp:xxxxxx@192.168.178.73:554/av\_stream/ch0" -f image2pipe pipe:1 xxxx = the code I received from the c…

---

## [Splitting arrays from an accelerometer into small records for Influxdb](https://discourse.nodered.org/t/splitting-arrays-from-an-accelerometer-into-small-records-for-influxdb/77252)

<div class="topic-metadata">

**Author:** [@seismo](https://discourse.nodered.org/u/seismo)\
**Replies:** 3\
**Last updated:** [5 April 2023 07:04 UTC](https://discourse.nodered.org/t/splitting-arrays-from-an-accelerometer-into-small-records-for-influxdb/77252 "2023-04-05T07:04:10Z")

</div>

Hi, I am trying to convert the MQTT msg below into separate records for the ingest InfluxDB node: {"device\_id":"VEHIGE9820","sr":32,"device\_t":1680654643559, "x":\[324,294,358,230,279,332,385,490,381,362,290,336,328,275,…

---

## [How to access auth\_token](https://discourse.nodered.org/t/how-to-access-auth-token/77238)

<div class="topic-metadata">

**Author:** [@sabir](https://discourse.nodered.org/u/sabir)\
**Replies:** 2\
**Last updated:** [5 April 2023 04:03 UTC](https://discourse.nodered.org/t/how-to-access-auth-token/77238 "2023-04-05T04:03:24Z")

</div>

I saw this PR is merged Feature add: Store external token when authenticate if provided by ArFe · Pull Request #3460 · node-red/node-red · GitHub. Now I'm able to authenticate with external api and set the token which a…

---

## [Alternative to LED node](https://discourse.nodered.org/t/alternative-to-led-node/77224)

<div class="topic-metadata">

**Author:** [@k5map](https://discourse.nodered.org/u/k5map)\
**Replies:** 19\
**Last updated:** [5 April 2023 01:38 UTC](https://discourse.nodered.org/t/alternative-to-led-node/77224 "2023-04-05T01:38:04Z")

</div>

I've been using the dashboard LED node for several of my flows but it lacks one feature... flashing. Does anyone know of a alternative node with the same features as the LED node but with the option of flashing?

---

## [Tabulator in ui-template issue with js from unpkg.com](https://discourse.nodered.org/t/tabulator-in-ui-template-issue-with-js-from-unpkg-com/77244)

<div class="topic-metadata">

**Author:** [@Vilnis\_R](https://discourse.nodered.org/u/Vilnis_R)\
**Replies:** 2\
**Last updated:** [4 April 2023 20:12 UTC](https://discourse.nodered.org/t/tabulator-in-ui-template-issue-with-js-from-unpkg-com/77244 "2023-04-04T20:12:08Z")

</div>

Hi! I am looking for an editable table where one column value can be selected from dropdown list which is populated from incoming msg. I was looking at node-red-contrib-ui-etable but it can handle only predefined values. …

---

## [How to secure Node-Red in Docker container?](https://discourse.nodered.org/t/how-to-secure-node-red-in-docker-container/77249)

<div class="topic-metadata">

**Author:** [@agentsmith1612](https://discourse.nodered.org/u/agentsmith1612)\
**Replies:** 3\
**Last updated:** [4 April 2023 18:56 UTC](https://discourse.nodered.org/t/how-to-secure-node-red-in-docker-container/77249 "2023-04-04T18:56:16Z")

</div>

Hello, I am running node-red in a docker container and want to make it secure in my network, in best case with user and password. I found a lot of "how to do..." and videos on youtube but it did not work for me because …

---

## [Flows and dashboard palette disappeared](https://discourse.nodered.org/t/flows-and-dashboard-palette-disappeared/77156)

<div class="topic-metadata">

**Author:** [@hary](https://discourse.nodered.org/u/hary)\
**Replies:** 26\
**Last updated:** [4 April 2023 19:01 UTC](https://discourse.nodered.org/t/flows-and-dashboard-palette-disappeared/77156 "2023-04-04T19:01:32Z")

</div>

Hi I'm running nodered on a headless RPi and my flows suddenly disappeared ! I was trying to setup mosquitto, then start nodered, and the connexion from remote machine at IP:1880 give me a blank flow. Also, the dashbo…

---

## [PID Control with Limit // PV](https://discourse.nodered.org/t/pid-control-with-limit-pv/75733)

<div class="topic-metadata">

**Author:** [@Nick94](https://discourse.nodered.org/u/Nick94)\
**Replies:** 2\
**Last updated:** [4 April 2023 13:37 UTC](https://discourse.nodered.org/t/pid-control-with-limit-pv/75733 "2023-04-04T13:37:59Z")

</div>

Hi Guys, i want to do a Controller to heat my water with PV Energy when there is an "overflow". I grab the Data from my main meter and convert it to these numbers shown in the pictures. My Problem is, that i got low nu…

---

## [Unable to install NODE-RED Linux Mint 21 XCFE](https://discourse.nodered.org/t/unable-to-install-node-red-linux-mint-21-xcfe/77203)

<div class="topic-metadata">

**Author:** [@vikingsraven](https://discourse.nodered.org/u/vikingsraven)\
**Replies:** 9\
**Last updated:** [4 April 2023 11:24 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-linux-mint-21-xcfe/77203 "2023-04-04T11:24:14Z")

</div>

HI, we are trying to put node red on a Intel NUC Core i3 device. Put Linux Mint 21 on there as base OS, tried to install using the Bash script and its refusing to install node-red core. got Node js 18.15.00 npm is v…

---

## [Custom Auth is not working](https://discourse.nodered.org/t/custom-auth-is-not-working/77233)

<div class="topic-metadata">

**Author:** [@sabir](https://discourse.nodered.org/u/sabir)\
**Replies:** 0\
**Last updated:** [4 April 2023 07:57 UTC](https://discourse.nodered.org/t/custom-auth-is-not-working/77233 "2023-04-04T07:57:30Z")

</div>

I implemented the custom authentication, when I login with correct credentials It just refresh it and keep me to the login page /auth/token is responding with access token and token type http://localhost:1880/settings?…

---

## [Custom user authentication not working](https://discourse.nodered.org/t/custom-user-authentication-not-working/5984)

<div class="topic-metadata">

**Author:** [@jdiegosierra](https://discourse.nodered.org/u/jdiegosierra)\
**Replies:** 4\
**Last updated:** [4 April 2023 08:10 UTC](https://discourse.nodered.org/t/custom-user-authentication-not-working/5984 "2023-04-04T08:10:10Z")

</div>

I'm just trying to use Custom user authentication example. authenticate: function(username,password) { return new Promise(function(resolve) { // Do whatever work is needed to validate the username/password …

---

## [Query string in HTTP Get Request](https://discourse.nodered.org/t/query-string-in-http-get-request/77218)

<div class="topic-metadata">

**Author:** [@sepdoce90](https://discourse.nodered.org/u/sepdoce90)\
**Replies:** 2\
**Last updated:** [4 April 2023 01:35 UTC](https://discourse.nodered.org/t/query-string-in-http-get-request/77218 "2023-04-04T01:35:32Z")

</div>

I'm trying to add a Query string the url from a payload response, but kind of stuck. Any help is much appreciated. object Response Debug \_msgid: "1db80dc515d48aaf" payload: object headers: object query: "var quer…

---

## [Fail to install tensorflow](https://discourse.nodered.org/t/fail-to-install-tensorflow/77114)

<div class="topic-metadata">

**Author:** [@amine1](https://discourse.nodered.org/u/amine1)\
**Replies:** 4\
**Last updated:** [4 April 2023 00:51 UTC](https://discourse.nodered.org/t/fail-to-install-tensorflow/77114 "2023-04-04T00:51:11Z")

</div>

hi, some one can help me to resolve this probleme when i try to install TENSORFLOW- NODE

---

## [Tab env() not being seen when I try to read them](https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [3 April 2023 23:15 UTC](https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215 "2023-04-03T23:15:36Z")

</div>

I seem to be going in ever decreasing circles with this problem. So I have set two variables. FOO and blah. Ignore the debug stuff at this stage. That was from other tests. So Those are defined. I DEPLOY the fl…

---

## [How to save a value from a node to database](https://discourse.nodered.org/t/how-to-save-a-value-from-a-node-to-database/77129)

<div class="topic-metadata">

**Author:** [@kroonp](https://discourse.nodered.org/u/kroonp)\
**Replies:** 13\
**Last updated:** [3 April 2023 22:10 UTC](https://discourse.nodered.org/t/how-to-save-a-value-from-a-node-to-database/77129 "2023-04-03T22:10:49Z")

</div>

Hello all, I have a flow and in this flow a can save numbers in a sql database. I want te replace the numbers in the flow to dynamic numbers from sensor. I think a need tot do this with an array. I've tried different w…

---

## [$env() variables in normal flows - checking](https://discourse.nodered.org/t/env-variables-in-normal-flows-checking/76793)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [3 April 2023 21:54 UTC](https://discourse.nodered.org/t/env-variables-in-normal-flows-checking/76793 "2023-04-03T21:54:36Z")

</div>

(I'm a gluten for punishment.) I've decided to make more subflows. But while making them it is sometimes better to have them in the real world so I can watch what is going on in/with them. env$() that would be .....…

---

## [How can i change a variable with a payload](https://discourse.nodered.org/t/how-can-i-change-a-variable-with-a-payload/77188)

<div class="topic-metadata">

**Author:** [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Replies:** 11\
**Last updated:** [3 April 2023 17:21 UTC](https://discourse.nodered.org/t/how-can-i-change-a-variable-with-a-payload/77188 "2023-04-03T17:21:15Z")

</div>

Hello I like to set a variable true or false if the payload from a device is true or false. In the moment I make the distinction in the python script. But I like to depend the message i send to the return message fr…

---

## [How do I create an account to use NODERED in Homematic CCU3?](https://discourse.nodered.org/t/how-do-i-create-an-account-to-use-nodered-in-homematic-ccu3/77161)

<div class="topic-metadata">

**Author:** [@Pemo](https://discourse.nodered.org/u/Pemo)\
**Replies:** 4\
**Last updated:** [3 April 2023 16:54 UTC](https://discourse.nodered.org/t/how-do-i-create-an-account-to-use-nodered-in-homematic-ccu3/77161 "2023-04-03T16:54:45Z")

</div>

No idea how to establish an account....

---

## [Drift simulation](https://discourse.nodered.org/t/drift-simulation/77202)

<div class="topic-metadata">

**Author:** [@arthurmouf](https://discourse.nodered.org/u/arthurmouf)\
**Replies:** 2\
**Last updated:** [3 April 2023 15:11 UTC](https://discourse.nodered.org/t/drift-simulation/77202 "2023-04-03T15:11:38Z")

</div>

Hi, My Node-red has a very strange behavior, and I would like to know if it's the case only for me or if someone else encounter this. I use a slider to simulate a drift on a given value. For the purpose of the exemple,…

---

## [Beagle Bone Black getting node-red V3](https://discourse.nodered.org/t/beagle-bone-black-getting-node-red-v3/75629)

<div class="topic-metadata">

**Author:** [@vikingsraven](https://discourse.nodered.org/u/vikingsraven)\
**Replies:** 10\
**Last updated:** [3 April 2023 14:50 UTC](https://discourse.nodered.org/t/beagle-bone-black-getting-node-red-v3/75629 "2023-04-03T14:50:02Z")

</div>

HI all, have been given a beagle bone black to get some testing done, i want to use node red, but i can only get it to v1.3.5 Ive used the update command , anyway i can get V3 on this thing? Is it possible with Docker…

---

## [Start/Stop trait on multiple nodes not working](https://discourse.nodered.org/t/start-stop-trait-on-multiple-nodes-not-working/77201)

<div class="topic-metadata">

**Author:** [@slashinpdx](https://discourse.nodered.org/u/slashinpdx)\
**Replies:** 0\
**Last updated:** [3 April 2023 14:22 UTC](https://discourse.nodered.org/t/start-stop-trait-on-multiple-nodes-not-working/77201 "2023-04-03T14:22:09Z")

</div>

When starting or stopping a device(node) with Start/Stop trait enabled and debugging to show the full object, I see a params.start object with the correct value for that command. When starting or stopping several device…

---

## [Remote Update Single Tab of Flow](https://discourse.nodered.org/t/remote-update-single-tab-of-flow/76758)

<div class="topic-metadata">

**Author:** [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Replies:** 53\
**Last updated:** [3 April 2023 14:20 UTC](https://discourse.nodered.org/t/remote-update-single-tab-of-flow/76758 "2023-04-03T14:20:10Z")

</div>

I have a flow that runs on a few dozen remote Pis. The flow contains ten tabs, each of which I've exported an individual json file for on my development machine. I'd like to deploy only the updated flows instead of the e…

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

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