# General

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

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

**Page:** 602

---

## [Node-red last will message](https://discourse.nodered.org/t/node-red-last-will-message/41214)

<div class="topic-metadata">

**Author:** [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Replies:** 8\
**Last updated:** [19 February 2021 10:35 UTC](https://discourse.nodered.org/t/node-red-last-will-message/41214 "2021-02-19T10:35:26Z")

</div>

Hello All, We are trying to simulate lastwill message scenario using node-red tool. We configured lastwill topic and message in the message tab. We are trying to close the node-red command window but it seems it is alwa…

---

## [Flying a Tello Drone via Node-Red Dashboard and PYTHON](https://discourse.nodered.org/t/flying-a-tello-drone-via-node-red-dashboard-and-python/41231)

<div class="topic-metadata">

**Author:** [@G-Rizzle](https://discourse.nodered.org/u/G-Rizzle)\
**Replies:** 3\
**Last updated:** [19 February 2021 09:55 UTC](https://discourse.nodered.org/t/flying-a-tello-drone-via-node-red-dashboard-and-python/41231 "2021-02-19T09:55:34Z")

</div>

hello, as a university project I am thinking about buying a Tello Drone and flying it via a Node-Red Dashboard. I have already found a module in the node-red palette GitHub - johnwalicki/Node-RED-Tello-Control: Node-RE…

---

## [Extracting specific data from string](https://discourse.nodered.org/t/extracting-specific-data-from-string/41073)

<div class="topic-metadata">

**Author:** [@Jvalour](https://discourse.nodered.org/u/Jvalour)\
**Replies:** 5\
**Last updated:** [19 February 2021 09:07 UTC](https://discourse.nodered.org/t/extracting-specific-data-from-string/41073 "2021-02-19T09:07:09Z")

</div>

I receive a string of data from my sensor via MQTT but I do not know how to retrieve a specific variable (e.g. temperature) from the string. From the debug window: msg.payload : string\[323\] {'data\_format': 10, 'humidi…

---

## [HTTP and cookies](https://discourse.nodered.org/t/http-and-cookies/41282)

<div class="topic-metadata">

**Author:** [@bigfeetneedbigboots](https://discourse.nodered.org/u/bigfeetneedbigboots)\
**Replies:** 0\
**Last updated:** [19 February 2021 06:59 UTC](https://discourse.nodered.org/t/http-and-cookies/41282 "2021-02-19T06:59:06Z")

</div>

G'day Node-REDers I have an Enphase PV (Solar) system and it has some URLs that I can use to get system statistics from. Some of those URLs don't require authentication, some accept basic authentication and another one …

---

## [Javascript Methods in Functions](https://discourse.nodered.org/t/javascript-methods-in-functions/41209)

<div class="topic-metadata">

**Author:** [@AutomationExpert](https://discourse.nodered.org/u/AutomationExpert)\
**Replies:** 5\
**Last updated:** [19 February 2021 00:56 UTC](https://discourse.nodered.org/t/javascript-methods-in-functions/41209 "2021-02-19T00:56:43Z")

</div>

Is there a way to use javascript methods in functions like those used with arrays (.concat(), .join(), etc) in other javascript applications? Whenever I attempt to use these methods I receive an error that says it is no…

---

## [Import Flows using API](https://discourse.nodered.org/t/import-flows-using-api/40355)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 5\
**Last updated:** [19 February 2021 00:22 UTC](https://discourse.nodered.org/t/import-flows-using-api/40355 "2021-02-19T00:22:34Z")

</div>

Hi Node-red Experts, I know there is an API for node-red, but I am not sure if can we import flows using it's API? I don't want my end-user to login on my node-red and go to Menu -\> Import Flows, but instead, I want to…

---

## [Set secret key of “encrypt node” from flow or global variable in node red](https://discourse.nodered.org/t/set-secret-key-of-encrypt-node-from-flow-or-global-variable-in-node-red/40729)

<div class="topic-metadata">

**Author:** [@karthiksuresh6666](https://discourse.nodered.org/u/karthiksuresh6666)\
**Replies:** 2\
**Last updated:** [18 February 2021 23:18 UTC](https://discourse.nodered.org/t/set-secret-key-of-encrypt-node-from-flow-or-global-variable-in-node-red/40729 "2021-02-18T23:18:55Z")

</div>

How can we set the flow/global variable value to secret key in "Encrypt Node".

---

## [Stream data from C program to node-red dashboard?](https://discourse.nodered.org/t/stream-data-from-c-program-to-node-red-dashboard/41213)

<div class="topic-metadata">

**Author:** [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Replies:** 32\
**Last updated:** [18 February 2021 21:13 UTC](https://discourse.nodered.org/t/stream-data-from-c-program-to-node-red-dashboard/41213 "2021-02-18T21:13:47Z")

</div>

Say I want to stream the results of calculations from a C program to node-red for real-time visualization. The C program and node-red run on the same PC so it seems I can establish a connection with virtual TCP/IP ports…

---

## [Docker : mount SSH Keys](https://discourse.nodered.org/t/docker-mount-ssh-keys/41259)

<div class="topic-metadata">

**Author:** [@Ashtez](https://discourse.nodered.org/u/Ashtez)\
**Replies:** 0\
**Last updated:** [18 February 2021 19:38 UTC](https://discourse.nodered.org/t/docker-mount-ssh-keys/41259 "2021-02-18T19:38:06Z")

</div>

Hello, So here is the thing, from an exec node I run the command : ssh user@192.x.x.x "sudo reboot" Why ? Because my client sometimes has issues and NodeRed manages them and restarts the remote server to mitigate this.…

---

## [Md-slider in a template: display problem (CSS?)](https://discourse.nodered.org/t/md-slider-in-a-template-display-problem-css/41253)

<div class="topic-metadata">

**Author:** [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Replies:** 1\
**Last updated:** [18 February 2021 18:02 UTC](https://discourse.nodered.org/t/md-slider-in-a-template-display-problem-css/41253 "2021-02-18T18:02:51Z")

</div>

I want to display the current and the target temperature of my heating including modifying only the target temp in a compact slider. I adapted this code from @ozpos ... and the result is almost perfect for me (I still…

---

## [Gps using lora,arduino and raspberry pi](https://discourse.nodered.org/t/gps-using-lora-arduino-and-raspberry-pi/41250)

<div class="topic-metadata">

**Author:** [@ravi071213](https://discourse.nodered.org/u/ravi071213)\
**Replies:** 1\
**Last updated:** [18 February 2021 17:41 UTC](https://discourse.nodered.org/t/gps-using-lora-arduino-and-raspberry-pi/41250 "2021-02-18T17:41:16Z")

</div>

hello everyone , i am a new user on node red and know very few things about it recently i have been working on a project in which i want to store a data recieved from a gps module connected to arduino uno and sending d…

---

## [Consultar datos de influxdb para calcular tiempos](https://discourse.nodered.org/t/consultar-datos-de-influxdb-para-calcular-tiempos/41190)

<div class="topic-metadata">

**Author:** [@novato1221](https://discourse.nodered.org/u/novato1221)\
**Replies:** 3\
**Last updated:** [18 February 2021 15:57 UTC](https://discourse.nodered.org/t/consultar-datos-de-influxdb-para-calcular-tiempos/41190 "2021-02-18T15:57:31Z")

</div>

Hola a todos, estoy aprendiendo ahora mismo Node-red y influxdb. Tengo un proyecto en influxdb donde consulto o leo datos de influxdb db. La consulta que estoy haciendo es la siguiente: msg.query = "select time,estado f…

---

## [Admin Api: install node from local file, dependencies?](https://discourse.nodered.org/t/admin-api-install-node-from-local-file-dependencies/40820)

<div class="topic-metadata">

**Author:** [@JMe](https://discourse.nodered.org/u/JMe)\
**Replies:** 4\
**Last updated:** [18 February 2021 13:14 UTC](https://discourse.nodered.org/t/admin-api-install-node-from-local-file-dependencies/40820 "2021-02-18T13:14:32Z")

</div>

I want to install the contrib-node-red-grpc node to a device that has no internet access. Let's call this device the target device. The target device is connected to another device via local network. Let's call that devi…

---

## [QR decode shows error](https://discourse.nodered.org/t/qr-decode-shows-error/41094)

<div class="topic-metadata">

**Author:** [@usmanEmder](https://discourse.nodered.org/u/usmanEmder)\
**Replies:** 8\
**Last updated:** [18 February 2021 13:13 UTC](https://discourse.nodered.org/t/qr-decode-shows-error/41094 "2021-02-18T13:13:12Z")

</div>

I have attached the usb camera with my computer and I am using "usbcamera" and "qrdecoder. but I got error in payload massage as shown in the below picture.

---

## [Convert Array of byte to utf8 string](https://discourse.nodered.org/t/convert-array-of-byte-to-utf8-string/41223)

<div class="topic-metadata">

**Author:** [@YT2310](https://discourse.nodered.org/u/YT2310)\
**Replies:** 7\
**Last updated:** [18 February 2021 12:50 UTC](https://discourse.nodered.org/t/convert-array-of-byte-to-utf8-string/41223 "2021-02-18T12:50:31Z")

</div>

Hey there, I'm trying to get a string out of an array of bytes \[127\]. This is stored in a plc. I can translate the array to a readable string, but the string is now 128 in length (normally it should be something around …

---

## [How to use node-red-contrib-advanced-ftp node](https://discourse.nodered.org/t/how-to-use-node-red-contrib-advanced-ftp-node/41016)

<div class="topic-metadata">

**Author:** [@kajal](https://discourse.nodered.org/u/kajal)\
**Replies:** 6\
**Last updated:** [18 February 2021 11:38 UTC](https://discourse.nodered.org/t/how-to-use-node-red-contrib-advanced-ftp-node/41016 "2021-02-18T11:38:30Z")

</div>

How to use node-red-contrib-advanced-ftp node for LASTMOD option. Here is my Flow.

---

## [$moment() function in jsonata](https://discourse.nodered.org/t/moment-function-in-jsonata/41220)

<div class="topic-metadata">

**Author:** [@nileio](https://discourse.nodered.org/u/nileio)\
**Replies:** 2\
**Last updated:** [18 February 2021 11:17 UTC](https://discourse.nodered.org/t/moment-function-in-jsonata/41220 "2021-02-18T11:17:47Z")

</div>

Hi all, I recently discovered that $moment() function is available in Jsonata expression.This is great to have it there.I stumbled upon an issue though and hope you may lend me a hand. I am trying to subtract a variabl…

---

## [What does . in .node-red mean?](https://discourse.nodered.org/t/what-does-in-node-red-mean/41198)

<div class="topic-metadata">

**Author:** [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Replies:** 3\
**Last updated:** [18 February 2021 10:58 UTC](https://discourse.nodered.org/t/what-does-in-node-red-mean/41198 "2021-02-18T10:58:59Z")

</div>

Excuse the ignorance, but what does the dot (.) in .node-red mean/do? I haven't seen it in folder paths before and am scratching my head over its use in node-red. I just want to know what it is, because it seems importan…

---

## [Function IF and set msg](https://discourse.nodered.org/t/function-if-and-set-msg/41101)

<div class="topic-metadata">

**Author:** [@Benja](https://discourse.nodered.org/u/Benja)\
**Replies:** 9\
**Last updated:** [18 February 2021 10:35 UTC](https://discourse.nodered.org/t/function-if-and-set-msg/41101 "2021-02-18T10:35:57Z")

</div>

Hi, I need help: I want to make a conditional that if the first msg is 0 the payload will go out through a specific exit, if it is 1 through another and so on, but I can't do the code. sorry I'm a beginner

---

## [Best practice to create infinite loop](https://discourse.nodered.org/t/best-practice-to-create-infinite-loop/41167)

<div class="topic-metadata">

**Author:** [@Summer](https://discourse.nodered.org/u/Summer)\
**Replies:** 15\
**Last updated:** [18 February 2021 08:38 UTC](https://discourse.nodered.org/t/best-practice-to-create-infinite-loop/41167 "2021-02-18T08:38:48Z")

</div>

Hi, I want to run a js function forever, but it seems that nodered crashes after some loop if I add a "while" in the node. var increment = 0; function Looper() { increment = increment +1; console.log("i'm…

---

## [Round all values of an object](https://discourse.nodered.org/t/round-all-values-of-an-object/41025)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 20\
**Last updated:** [18 February 2021 07:08 UTC](https://discourse.nodered.org/t/round-all-values-of-an-object/41025 "2021-02-18T07:08:30Z")

</div>

Hi, is it possible to round all values of an object with one function ? \[{"id":"6f07f889.bda788","type":"calculate","z":"9f6752b0.b55988","name":"Durchschnitt pro Minute","pauseType":"timed","calculation":"average","ti…

---

## [Node-red-contrib-sox-utils - sox WARN alsa: under-run and other problems](https://discourse.nodered.org/t/node-red-contrib-sox-utils-sox-warn-alsa-under-run-and-other-problems/41184)

<div class="topic-metadata">

**Author:** [@Bloodspell](https://discourse.nodered.org/u/Bloodspell)\
**Replies:** 10\
**Last updated:** [18 February 2021 05:41 UTC](https://discourse.nodered.org/t/node-red-contrib-sox-utils-sox-warn-alsa-under-run-and-other-problems/41184 "2021-02-18T05:41:40Z")

</div>

Hi, i'm using a raspberry pi with Raspberry Pi OS Lite installed. I have installed the node-red environment and am using node-red-contrib-sox-utils. I tried to start streaming audio from an external USB sound card using…

---

## [NR & Home Assistant : TZ problem](https://discourse.nodered.org/t/nr-home-assistant-tz-problem/41183)

<div class="topic-metadata">

**Author:** [@bennijamm](https://discourse.nodered.org/u/bennijamm)\
**Replies:** 10\
**Last updated:** [17 February 2021 21:44 UTC](https://discourse.nodered.org/t/nr-home-assistant-tz-problem/41183 "2021-02-17T21:44:56Z")

</div>

Hello, I am new to Node-Red in Home Assistant. I am in France and I would like to have the dates in the format of the country, just like the hours (without AM / PM ...). I added this line in the settings.js file: pr…

---

## [Inject time change (hour)](https://discourse.nodered.org/t/inject-time-change-hour/41171)

<div class="topic-metadata">

**Author:** [@Benja](https://discourse.nodered.org/u/Benja)\
**Replies:** 8\
**Last updated:** [17 February 2021 20:01 UTC](https://discourse.nodered.org/t/inject-time-change-hour/41171 "2021-02-17T20:01:10Z")

</div>

Hi, I need to create an inject when the hour changes. Some help please! Is there a way to do that?

---

## [Debian 8 (Jessie) not supported in update-script](https://discourse.nodered.org/t/debian-8-jessie-not-supported-in-update-script/41174)

<div class="topic-metadata">

**Author:** [@Harm](https://discourse.nodered.org/u/Harm)\
**Replies:** 4\
**Last updated:** [17 February 2021 19:40 UTC](https://discourse.nodered.org/t/debian-8-jessie-not-supported-in-update-script/41174 "2021-02-17T19:40:06Z")

</div>

In the https://nodered.org/docs/getting-started/raspberrypi#prerequisites page it says the minimum version of Raspbian is jessie. This is incorrect. I tried to upgrade yesterday and ran into this big problem (a non-funct…

---

## [Influx - where "value" \> x did not get results](https://discourse.nodered.org/t/influx-where-value-x-did-not-get-results/41148)

<div class="topic-metadata">

**Author:** [@pihlo](https://discourse.nodered.org/u/pihlo)\
**Replies:** 13\
**Last updated:** [17 February 2021 19:22 UTC](https://discourse.nodered.org/t/influx-where-value-x-did-not-get-results/41148 "2021-02-17T19:22:22Z")

</div>

I started with influx. I install (1.6.4) on a Raspi4. I use the influxdb out node and link them to 3 weathernodes. At the console of influx I see the 3 measurements. One of them is "TempAussen" \[German for Temperature …

---

## [Node red sending picture to telegram](https://discourse.nodered.org/t/node-red-sending-picture-to-telegram/39656)

<div class="topic-metadata">

**Author:** [@AndriesS82](https://discourse.nodered.org/u/AndriesS82)\
**Replies:** 6\
**Last updated:** [17 February 2021 18:44 UTC](https://discourse.nodered.org/t/node-red-sending-picture-to-telegram/39656 "2021-02-17T18:44:14Z")

</div>

Helo, I'am trying to send a picture from my Dalhua cam to telegram. I have look over the forum and found the solution to do that but for one kind of a reason the picture of the cam doens't go to telegram. I try to chan…

---

## [Change the background colour of the Node Red editor](https://discourse.nodered.org/t/change-the-background-colour-of-the-node-red-editor/41173)

<div class="topic-metadata">

**Author:** [@FatPilot](https://discourse.nodered.org/u/FatPilot)\
**Replies:** 2\
**Last updated:** [17 February 2021 17:14 UTC](https://discourse.nodered.org/t/change-the-background-colour-of-the-node-red-editor/41173 "2021-02-17T17:14:41Z")

</div>

Hi @knolleary Continuing the discussion from Can you style the Node Red editor?: I have looked at the link you provided https://nodered.org/docs/user-guide/runtime/configuration#editor-themes and I am unfortunately no …

---

## [Does node-red have track changes so any changes can be restored](https://discourse.nodered.org/t/does-node-red-have-track-changes-so-any-changes-can-be-restored/41177)

<div class="topic-metadata">

**Author:** [@kelster101757](https://discourse.nodered.org/u/kelster101757)\
**Replies:** 2\
**Last updated:** [17 February 2021 16:52 UTC](https://discourse.nodered.org/t/does-node-red-have-track-changes-so-any-changes-can-be-restored/41177 "2021-02-17T16:52:32Z")

</div>

Hello, does node-red track changes so any changes can be restored? I use git for other programming languages but not sure what the equivalent are for node-red? Thanks

---

## [Reading parameters from a get call in Node-red using the .parameter](https://discourse.nodered.org/t/reading-parameters-from-a-get-call-in-node-red-using-the-parameter/41169)

<div class="topic-metadata">

**Author:** [@vongomben](https://discourse.nodered.org/u/vongomben)\
**Replies:** 2\
**Last updated:** [17 February 2021 16:48 UTC](https://discourse.nodered.org/t/reading-parameters-from-a-get-call-in-node-red-using-the-parameter/41169 "2021-02-17T16:48:49Z")

</div>

Hi all. This is a simple question, but I know I'm asking a lot for somebody to test and recreate the whole thing. I'm attaching the flow and the sqlite db I'm using. Basically I recreated a simple user database based …

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

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