# Latest

**URL:** https://discourse.nodered.org/latest.md?page=623

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

**Page:** 624

---

## [Get specific MQTT topic from an array](https://discourse.nodered.org/t/get-specific-mqtt-topic-from-an-array/58788)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 5\
**Last updated:** [22 February 2022 22:21 UTC](https://discourse.nodered.org/t/get-specific-mqtt-topic-from-an-array/58788 "2022-02-22T22:21:08Z")

</div>

I have a device transmitting two temperatures (actual and setpoint) formatted as an Influx-friendly array: and as you can see from the above, I am also using MQTT to send the array of data. Here is Node-RED on a dif…

---

## [Flow Optimization](https://discourse.nodered.org/t/flow-optimization/58821)

<div class="topic-metadata">

**Author:** [@aallen](https://discourse.nodered.org/u/aallen)\
**Replies:** 6\
**Last updated:** [22 February 2022 21:15 UTC](https://discourse.nodered.org/t/flow-optimization/58821 "2022-02-22T21:15:06Z")

</div>

Hello, I am trying to get some tips on how I could optimize my flow. I frequently get modbus errors and I suspect it is due to the layout of my flows. All the 'link outs' are going to a mosquito broker. Here are t…

---

## [Docker - Issue after restore volume](https://discourse.nodered.org/t/docker-issue-after-restore-volume/58777)

<div class="topic-metadata">

**Author:** [@alexliit](https://discourse.nodered.org/u/alexliit)\
**Replies:** 1\
**Last updated:** [22 February 2022 20:38 UTC](https://discourse.nodered.org/t/docker-issue-after-restore-volume/58777 "2022-02-22T20:38:14Z")

</div>

Hello After losing the volume of a dockerized installation of node-red, I recovered succesfully everithing using the version control option available on nodered since the latest version (GIT CLONE). Everything seemed o…

---

## [When a group is selected, the arrow keys select the next group](https://discourse.nodered.org/t/when-a-group-is-selected-the-arrow-keys-select-the-next-group/58842)

<div class="topic-metadata">

**Author:** [@MyRandomThoughts](https://discourse.nodered.org/u/MyRandomThoughts)\
**Replies:** 0\
**Last updated:** [22 February 2022 20:28 UTC](https://discourse.nodered.org/t/when-a-group-is-selected-the-arrow-keys-select-the-next-group/58842 "2022-02-22T20:28:07Z")

</div>

When a single node is selected the arrow keys can be used to jump to the next node in the direction pressed. All good. However this also happens when a group box is selected. Can it be changed to select the next group…

---

## [\[ANNOUNCE\] Node-RED Sony Audio 2.0](https://discourse.nodered.org/t/announce-node-red-sony-audio-2-0/58833)

<div class="topic-metadata">

**Author:** [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)\
**Replies:** 1\
**Last updated:** [22 February 2022 20:19 UTC](https://discourse.nodered.org/t/announce-node-red-sony-audio-2-0/58833 "2022-02-22T20:19:33Z")

</div>

Hi all, I just released the brand new release 2.0 of Node-RED Sony Audio contribution package! This is the 3rd generation of the node package where large parts of the software have been rewritten. The nodes have been mo…

---

## [Very basic question for a noob but... light automation with motion sensor](https://discourse.nodered.org/t/very-basic-question-for-a-noob-but-light-automation-with-motion-sensor/58838)

<div class="topic-metadata">

**Author:** [@quimera\_rfv](https://discourse.nodered.org/u/quimera_rfv)\
**Replies:** 0\
**Last updated:** [22 February 2022 20:16 UTC](https://discourse.nodered.org/t/very-basic-question-for-a-noob-but-light-automation-with-motion-sensor/58838 "2022-02-22T20:16:34Z")

</div>

Hello. Sorry to ask so basic question, but im just starting from zero and I cant make a flow to operate a light with one motion sensor and then include a rule to only put on the light when dusk. This is the flow I have…

---

## [Need help creating a percentage timer](https://discourse.nodered.org/t/need-help-creating-a-percentage-timer/58619)

<div class="topic-metadata">

**Author:** [@gysief](https://discourse.nodered.org/u/gysief)\
**Replies:** 27\
**Last updated:** [22 February 2022 19:21 UTC](https://discourse.nodered.org/t/need-help-creating-a-percentage-timer/58619 "2022-02-22T19:21:11Z")

</div>

Hi Everybody. My first post ever So I am a bit new. I need to make a percentage time with a UI like a slider (with value on top) or something. The slide rage must me 0 - 100%. The timer must never stop unless it recei…

---

## [Mathematical equation](https://discourse.nodered.org/t/mathematical-equation/58721)

<div class="topic-metadata">

**Author:** [@ilse.markert](https://discourse.nodered.org/u/ilse.markert)\
**Replies:** 13\
**Last updated:** [22 February 2022 18:01 UTC](https://discourse.nodered.org/t/mathematical-equation/58721 "2022-02-22T18:01:27Z")

</div>

Hello, I am trying to calculate the vapor pressure deficit in node red. So In two change nodes I want to use the formulas below: but I have no idea what is the correct way to put this formula in there. Of course …

---

## [IBM Cloud Cloudant hosted Node.red Dashboard not persistent on other devices](https://discourse.nodered.org/t/ibm-cloud-cloudant-hosted-node-red-dashboard-not-persistent-on-other-devices/58827)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.nodered.org/u/sim)\
**Replies:** 0\
**Last updated:** [22 February 2022 16:43 UTC](https://discourse.nodered.org/t/ibm-cloud-cloudant-hosted-node-red-dashboard-not-persistent-on-other-devices/58827 "2022-02-22T16:43:45Z")

</div>

Hi I have Node.red hosted on IBM Cloud Cloudant but the /ui is not available on my phone once I close out of the node.red session on my laptop. Example of https://.kqyzhejb40w.us-south.codeengine.appdomain.cloud/ui Why…

---

## [Ds18b20 Node-red-piervin-sensor-wired not work on rpi zero wh with node red 1.02](https://discourse.nodered.org/t/ds18b20-node-red-piervin-sensor-wired-not-work-on-rpi-zero-wh-with-node-red-1-02/17241)

<div class="topic-metadata">

**Author:** [@devifast](https://discourse.nodered.org/u/devifast)\
**Replies:** 8\
**Last updated:** [22 February 2022 15:12 UTC](https://discourse.nodered.org/t/ds18b20-node-red-piervin-sensor-wired-not-work-on-rpi-zero-wh-with-node-red-1-02/17241 "2022-02-22T15:12:42Z")

</div>

ds18b20 node-red-piervin-sensor-wired not work on rpi zero wh with raspbian stretch lite and node red 1.02 after update from node red 1.0.On rpi3b+ its work. I change many sensors and 1-wire pin but no effect. I show se…

---

## [How to capture a live photo with mobile/webcam camera while chatting in Telegram bot and send it to bot?](https://discourse.nodered.org/t/how-to-capture-a-live-photo-with-mobile-webcam-camera-while-chatting-in-telegram-bot-and-send-it-to-bot/58806)

<div class="topic-metadata">

**Author:** [@RavinderSingh13](https://discourse.nodered.org/u/RavinderSingh13)\
**Replies:** 0\
**Last updated:** [22 February 2022 10:16 UTC](https://discourse.nodered.org/t/how-to-capture-a-live-photo-with-mobile-webcam-camera-while-chatting-in-telegram-bot-and-send-it-to-bot/58806 "2022-02-22T10:16:50Z")

</div>

Hello All, I have been searching over forums to automate an option eg: /take\_picture on Telegram bot. Which starts mobile's/Webcam(laptop)'s camera ON and takes photo automatically(like banks doing for video KYC etc the…

---

## [Pre-fill datetime picker (text input node) doesn't show date and time](https://discourse.nodered.org/t/pre-fill-datetime-picker-text-input-node-doesnt-show-date-and-time/58771)

<div class="topic-metadata">

**Author:** [@garson](https://discourse.nodered.org/u/garson)\
**Replies:** 9\
**Last updated:** [22 February 2022 15:08 UTC](https://discourse.nodered.org/t/pre-fill-datetime-picker-text-input-node-doesnt-show-date-and-time/58771 "2022-02-22T15:08:31Z")

</div>

Hello everyone. I am new to Node-red so will need a bit of help. :slight\_smile: I am running Node-red 2.2.0 with nodejs v17.5.0 on Asus Tinker Board (running DietPi v8.1). I have pretty simple flow where I have "Date …

---

## [Node-red-contrib-gapit-results not inserting to InflluxDB2.1](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761)

<div class="topic-metadata">

**Author:** [@John245](https://discourse.nodered.org/u/John245)\
**Replies:** 11\
**Last updated:** [22 February 2022 13:43 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761 "2022-02-22T13:43:03Z")

</div>

The node-red-contrib-gapit-results Node has the following output: I want to insert that in InfluxDB2.1 using the node-red-contrib-influxdb without sucess. In the influxdb Node: Organization: Organization ID in Inf…

---

## [Bridging Node-RED Slack to Matrix](https://discourse.nodered.org/t/bridging-node-red-slack-to-matrix/58814)

<div class="topic-metadata">

**Author:** [@cos](https://discourse.nodered.org/u/cos)\
**Replies:** 0\
**Last updated:** [22 February 2022 12:08 UTC](https://discourse.nodered.org/t/bridging-node-red-slack-to-matrix/58814 "2022-02-22T12:08:48Z")

</div>

(If you are not familiar with Matrix yet, please see for example https://joinmatrix.org/ for quick introduction) Matrix is getting lot of traction in FOSS world and replacing or bridging various IRC, Discord and Slack c…

---

## [\[SOLVED\] Invisible line in graph due to null data returned from influxdb query](https://discourse.nodered.org/t/solved-invisible-line-in-graph-due-to-null-data-returned-from-influxdb-query/58517)

<div class="topic-metadata">

**Author:** [@sdrshnptl](https://discourse.nodered.org/u/sdrshnptl)\
**Replies:** 6\
**Last updated:** [22 February 2022 11:59 UTC](https://discourse.nodered.org/t/solved-invisible-line-in-graph-due-to-null-data-returned-from-influxdb-query/58517 "2022-02-22T11:59:58Z")

</div>

Hello All, I've working with influxdb to plot data from last few hour. As i query for last 8 hour i'm getting "null" where missing values are. below image shows value which are recorded into influx db generate line an…

---

## [Parking system dashboard...help](https://discourse.nodered.org/t/parking-system-dashboard-help/58804)

<div class="topic-metadata">

**Author:** [@noobmaster](https://discourse.nodered.org/u/noobmaster)\
**Replies:** 11\
**Last updated:** [22 February 2022 11:54 UTC](https://discourse.nodered.org/t/parking-system-dashboard-help/58804 "2022-02-22T11:54:03Z")

</div>

i m having a final year project and i m struggling with NOde-red the project is parking demo using a RASPBERRY +servo as a gate+apprxomity sensor to check the availability of the LOT i 'll be glad if you can check my …

---

## [Servo motor Control using a button in a Dashboard](https://discourse.nodered.org/t/servo-motor-control-using-a-button-in-a-dashboard/58805)

<div class="topic-metadata">

**Author:** [@noobmaster](https://discourse.nodered.org/u/noobmaster)\
**Replies:** 1\
**Last updated:** [22 February 2022 10:53 UTC](https://discourse.nodered.org/t/servo-motor-control-using-a-button-in-a-dashboard/58805 "2022-02-22T10:53:08Z")

</div>

i want a node flow to control a servo motor, i , using it as gate so if the button was clicked it needs to opens delay few seconds then close up..

---

## [Minor bug with Filter RBE nodes](https://discourse.nodered.org/t/minor-bug-with-filter-rbe-nodes/58461)

<div class="topic-metadata">

**Author:** [@gsbn](https://discourse.nodered.org/u/gsbn)\
**Replies:** 16\
**Last updated:** [22 February 2022 10:30 UTC](https://discourse.nodered.org/t/minor-bug-with-filter-rbe-nodes/58461 "2022-02-22T10:30:15Z")

</div>

Since the RBE node was renamed to Filter, I'm no longer seeing any of the strings in the Filter settings form. See screenshot: Currently on the latest release of NodeRed, and can hack/fix it by manually installing t…

---

## [Line pointing towards specific location. Worldmap GPSD](https://discourse.nodered.org/t/line-pointing-towards-specific-location-worldmap-gpsd/58802)

<div class="topic-metadata">

**Author:** [@HollaDieWaldfee](https://discourse.nodered.org/u/HollaDieWaldfee)\
**Replies:** 1\
**Last updated:** [22 February 2022 09:46 UTC](https://discourse.nodered.org/t/line-pointing-towards-specific-location-worldmap-gpsd/58802 "2022-02-22T09:46:02Z")

</div>

Hey! I am currently building a gps tracker : \[ { "id": "edd053d57a890bfa", "type": "gpsd", "z": "1bfea58c27520ad5", "name": "", "hostname": "localhost", "port": "2947…

---

## [Function node. How to refer to several messages?](https://discourse.nodered.org/t/function-node-how-to-refer-to-several-messages/58759)

<div class="topic-metadata">

**Author:** [@WBr](https://discourse.nodered.org/u/WBr)\
**Replies:** 13\
**Last updated:** [22 February 2022 08:52 UTC](https://discourse.nodered.org/t/function-node-how-to-refer-to-several-messages/58759 "2022-02-22T08:52:28Z")

</div>

I am looking for a method to use the function node to do some math with. There are multiple sensors in my flow providing me with data. The way I would like to do this is to grab 1 message from a sensor. Grab another m…

---

## [Send multiple TCP commands after release and how to check if it's done and successfull](https://discourse.nodered.org/t/send-multiple-tcp-commands-after-release-and-how-to-check-if-its-done-and-successfull/58793)

<div class="topic-metadata">

**Author:** [@alda](https://discourse.nodered.org/u/alda)\
**Replies:** 0\
**Last updated:** [22 February 2022 07:41 UTC](https://discourse.nodered.org/t/send-multiple-tcp-commands-after-release-and-how-to-check-if-its-done-and-successfull/58793 "2022-02-22T07:41:46Z")

</div>

I have working TCP communication with heating main unit. This flow will send a TCP commands (sep by step) to main unit to make a temperature change : \[{"id":"d261b90f0cf38dc3","type":"tcp request","z":"59fb2f9263e14661…

---

## [Hello all , I want your help in adding two consecutive msg.payload array\[\] and then finding running average for latest value + stored value](https://discourse.nodered.org/t/hello-all-i-want-your-help-in-adding-two-consecutive-msg-payload-array-and-then-finding-running-average-for-latest-value-stored-value/58513)

<div class="topic-metadata">

**Author:** [@developedbymayur](https://discourse.nodered.org/u/developedbymayur)\
**Replies:** 26\
**Last updated:** [22 February 2022 04:37 UTC](https://discourse.nodered.org/t/hello-all-i-want-your-help-in-adding-two-consecutive-msg-payload-array-and-then-finding-running-average-for-latest-value-stored-value/58513 "2022-02-22T04:37:22Z")

</div>

let total = 0 let count = 0 // number of samples accumulated let answer = \[\] for (i = 0; i \< msg.payload.length; i++) { total += msg.payload\[i\].y if (i \>= n) { total -= msg.payload\[i-n\].y count…

---

## [Use of payload to select device in DeConz](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786)

<div class="topic-metadata">

**Author:** [@RichardKT](https://discourse.nodered.org/u/RichardKT)\
**Replies:** 0\
**Last updated:** [22 February 2022 01:15 UTC](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786 "2022-02-22T01:15:57Z")

</div>

Hi, In order to be able to dynamically switch on/off multiple lights based on a generic timer, I would like to address the individual lights as to switch them on or off. I have the deConz device\_id of the lights that ne…

---

## [Node-red subflow environment variables](https://discourse.nodered.org/t/node-red-subflow-environment-variables/58783)

<div class="topic-metadata">

**Author:** [@Daniel\_1](https://discourse.nodered.org/u/Daniel_1)\
**Replies:** 2\
**Last updated:** [22 February 2022 00:27 UTC](https://discourse.nodered.org/t/node-red-subflow-environment-variables/58783 "2022-02-22T00:27:45Z")

</div>

Hello i defined a node-red subflow environment variable like this Why I cant use math expresions like 2\*1000 i.e. is there a workaround? Since the variable is in mseg i'd prefer for clarity use 15 \* 60 \* 1000 for…

---

## [Just noticed this reported from npm? Any idea when NR will jump to pkg.json? If ever?](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 13\
**Last updated:** [22 February 2022 00:11 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779 "2022-02-22T00:11:14Z")

</div>

Just noticed this reported from npm? Any idea when NR will jump to pkg.json? If ever? npm WARN deprecated package.json@2.0.1: Use pkg.json instead. .

---

## [Problem with template ui node for scheduler setting](https://discourse.nodered.org/t/problem-with-template-ui-node-for-scheduler-setting/58679)

<div class="topic-metadata">

**Author:** [@peterpreininger](https://discourse.nodered.org/u/peterpreininger)\
**Replies:** 7\
**Last updated:** [21 February 2022 23:28 UTC](https://discourse.nodered.org/t/problem-with-template-ui-node-for-scheduler-setting/58679 "2022-02-21T23:28:45Z")

</div>

Hi, I want to create a scheduler ui for my application. Honestly I'm not really into html stuff. As I need the scheduler at least 4 times in my dashboard, I do not want to create it with single dashboard elements. Inste…

---

## [Request for HTTP/2 support](https://discourse.nodered.org/t/request-for-http-2-support/58781)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 0\
**Last updated:** [21 February 2022 23:23 UTC](https://discourse.nodered.org/t/request-for-http-2-support/58781 "2022-02-21T23:23:24Z")

</div>

I suspect that this is a "beyond v3" request. But it would be really good to look at supporting HTTP/2 in addition to HTTP and HTTPS (both of which are HTTP/1.1 I think). Opening up HTTP/2 would potentially bring both p…

---

## [Error when entering data in Mysql](https://discourse.nodered.org/t/error-when-entering-data-in-mysql/58767)

<div class="topic-metadata">

**Author:** [@Disaile12](https://discourse.nodered.org/u/Disaile12)\
**Replies:** 5\
**Last updated:** [21 February 2022 22:51 UTC](https://discourse.nodered.org/t/error-when-entering-data-in-mysql/58767 "2022-02-21T22:51:48Z")

</div>

Hello everyone, I have a problem which I cannot solve, I am trying to enter some boolean data from the output of a Siemens LOGO8 into a mysql table, simply 1 or 0, but when executing the instruction I get the following e…

---

## [How to get installed version of NR?](https://discourse.nodered.org/t/how-to-get-installed-version-of-nr/58669)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 32\
**Last updated:** [21 February 2022 22:43 UTC](https://discourse.nodered.org/t/how-to-get-installed-version-of-nr/58669 "2022-02-21T22:43:54Z")

</div>

I was using the following to get the latest version of NR available, and it still works... npm search node-red | grep Low-code | cut -d '|' -f4-5 And I was using the following to get the installed version, but this see…

---

## [Ngx-material-timepicker](https://discourse.nodered.org/t/ngx-material-timepicker/58773)

<div class="topic-metadata">

**Author:** [@peterpreininger](https://discourse.nodered.org/u/peterpreininger)\
**Replies:** 0\
**Last updated:** [21 February 2022 21:58 UTC](https://discourse.nodered.org/t/ngx-material-timepicker/58773 "2022-02-21T21:58:05Z")

</div>

Hi, I'd like to use an ngx-material-timepicker in a template ui node of the dashboard. Is this possible? what are the necessary steps to do if possible? Thank you!

[Previous page](https://discourse.nodered.org/latest.md?page=622)

[Next page](https://discourse.nodered.org/latest.md?page=624)
