# Latest

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

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

**Page:** 496

---

## [Simplifying syntax of If..Else. in a function node](https://discourse.nodered.org/t/simplifying-syntax-of-if-else-in-a-function-node/67956)

<div class="topic-metadata">

**Author:** [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Replies:** 9\
**Last updated:** [21 September 2022 09:45 UTC](https://discourse.nodered.org/t/simplifying-syntax-of-if-else-in-a-function-node/67956 "2022-09-21T09:45:49Z")

</div>

I want to conditionally set the value of a flow.context based on the msg.payload value i am able to achieve the same with following, (see first three lines), but is there an easy way (less code/better code) I have a bu…

---

## [It is possble to use external libraries (CDN) in HTML](https://discourse.nodered.org/t/it-is-possble-to-use-external-libraries-cdn-in-html/68002)

<div class="topic-metadata">

**Author:** [@sangwoo](https://discourse.nodered.org/u/sangwoo)\
**Replies:** 1\
**Last updated:** [21 September 2022 09:17 UTC](https://discourse.nodered.org/t/it-is-possble-to-use-external-libraries-cdn-in-html/68002 "2022-09-21T09:17:54Z")

</div>

I'm currently creating a custom node. And, I need to use xml parsing library in HTML. I will use the library below. fast-xml-parser fast-xml-parser (cdn) I try to use this library using cdn like this, \<script src…

---

## [3.0.2 - Font Awesome icons in UI Template](https://discourse.nodered.org/t/3-0-2-font-awesome-icons-in-ui-template/67936)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 3\
**Last updated:** [21 September 2022 07:36 UTC](https://discourse.nodered.org/t/3-0-2-font-awesome-icons-in-ui-template/67936 "2022-09-21T07:36:37Z")

</div>

Since before I updated to NR 3.0.2 I've had a problem with a dashboard flow that lets me control Roku, in the icons are not showing, with the exception of the middle button icon see here: Here's the code from within …

---

## [Trigger at a message from one node, but output a message object from another node](https://discourse.nodered.org/t/trigger-at-a-message-from-one-node-but-output-a-message-object-from-another-node/68011)

<div class="topic-metadata">

**Author:** [@coco\_linton](https://discourse.nodered.org/u/coco_linton)\
**Replies:** 0\
**Last updated:** [21 September 2022 07:48 UTC](https://discourse.nodered.org/t/trigger-at-a-message-from-one-node-but-output-a-message-object-from-another-node/68011 "2022-09-21T07:48:06Z")

</div>

I'm building a weather dashboard. Once the user gives an input, the weather at that location gets updated every 30 seconds (the user can change this value). The user can set a limit for each parameter (temperature, humid…

---

## [Any node that can send data to SD card?](https://discourse.nodered.org/t/any-node-that-can-send-data-to-sd-card/67955)

<div class="topic-metadata">

**Author:** [@kelvin](https://discourse.nodered.org/u/kelvin)\
**Replies:** 4\
**Last updated:** [21 September 2022 06:48 UTC](https://discourse.nodered.org/t/any-node-that-can-send-data-to-sd-card/67955 "2022-09-21T06:48:12Z")

</div>

Hi Everyone, I looking to others node that can send data to SD card or thumb drive using node-red. have any suggestion?

---

## [How to Insert Bool Values to PostgreSQL over Node Red](https://discourse.nodered.org/t/how-to-insert-bool-values-to-postgresql-over-node-red/67949)

<div class="topic-metadata">

**Author:** [@Comrade](https://discourse.nodered.org/u/Comrade)\
**Replies:** 2\
**Last updated:** [21 September 2022 05:46 UTC](https://discourse.nodered.org/t/how-to-insert-bool-values-to-postgresql-over-node-red/67949 "2022-09-21T05:46:16Z")

</div>

Hello. I'm a beginner with Node-Red, I try to insert bollean data to PostgreSQL. For example, I have 4 boolean variables and I need insert this to PostgreSQL table. My flow is^ I get an error: "error: invalid s…

---

## [Read file from smb folder](https://discourse.nodered.org/t/read-file-from-smb-folder/67935)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 2\
**Last updated:** [20 September 2022 04:32 UTC](https://discourse.nodered.org/t/read-file-from-smb-folder/67935 "2022-09-20T04:32:05Z")

</div>

Hi, on my Raspberry Pi4 (so raspberry standard) I have a directory shared with smb. I'd like to read from my pc with ubuntu the file TemperatureData.log but I cannot set correctly the smb node .... configuration node …

---

## [How to repeat workflow on the basis of monthly and quarterly](https://discourse.nodered.org/t/how-to-repeat-workflow-on-the-basis-of-monthly-and-quarterly/67733)

<div class="topic-metadata">

**Author:** [@MiliH](https://discourse.nodered.org/u/MiliH)\
**Replies:** 14\
**Last updated:** [21 September 2022 00:46 UTC](https://discourse.nodered.org/t/how-to-repeat-workflow-on-the-basis-of-monthly-and-quarterly/67733 "2022-09-21T00:46:32Z")

</div>

Hello Greetings! I want to execute(repeat) workflow on the basis of monthly i.e first of every month and quarterly i.e every 3 months. How to set repeat functionality of inject node for above query. Please help out f…

---

## [Raspberry pi not connected with internet than node red should store data in device once it reconnected to the internet it should send to the cloud using tcpip](https://discourse.nodered.org/t/raspberry-pi-not-connected-with-internet-than-node-red-should-store-data-in-device-once-it-reconnected-to-the-internet-it-should-send-to-the-cloud-using-tcpip/67746)

<div class="topic-metadata">

**Author:** [@t4amit](https://discourse.nodered.org/u/t4amit)\
**Replies:** 16\
**Last updated:** [21 September 2022 00:27 UTC](https://discourse.nodered.org/t/raspberry-pi-not-connected-with-internet-than-node-red-should-store-data-in-device-once-it-reconnected-to-the-internet-it-should-send-to-the-cloud-using-tcpip/67746 "2022-09-21T00:27:30Z")

</div>

Dear Sir, i Just want to send simple data from Raspberry pi using node red tcp/ip communication, when raspberry pi is connected with internet it should send the data ,and when the raspberry pi is not connected with int…

---

## [Timer on dashboard](https://discourse.nodered.org/t/timer-on-dashboard/67255)

<div class="topic-metadata">

**Author:** [@Erissin\_Industria4.0](https://discourse.nodered.org/u/Erissin_Industria4.0)\
**Replies:** 2\
**Last updated:** [20 September 2022 22:33 UTC](https://discourse.nodered.org/t/timer-on-dashboard/67255 "2022-09-20T22:33:06Z")

</div>

Does anyone know how to make a timer on the Dashboard, which only activates when a value is equal to the value I specified

---

## [Looking for feedback on flow design - measuring elapsed time with Shelly EM](https://discourse.nodered.org/t/looking-for-feedback-on-flow-design-measuring-elapsed-time-with-shelly-em/67923)

<div class="topic-metadata">

**Author:** [@PaulKana](https://discourse.nodered.org/u/PaulKana)\
**Replies:** 7\
**Last updated:** [20 September 2022 22:20 UTC](https://discourse.nodered.org/t/looking-for-feedback-on-flow-design-measuring-elapsed-time-with-shelly-em/67923 "2022-09-20T22:20:29Z")

</div>

Hi! I'm building a solution that let's us verify at a glance if some heating elements have been turned on (and not malfunctioned) for a predetermined time. ie I set the electromechanical timer for 5h and let the heatin…

---

## [Flow and global from function not in default incited into permanent file](https://discourse.nodered.org/t/flow-and-global-from-function-not-in-default-incited-into-permanent-file/67993)

<div class="topic-metadata">

**Author:** [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Replies:** 1\
**Last updated:** [20 September 2022 20:43 UTC](https://discourse.nodered.org/t/flow-and-global-from-function-not-in-default-incited-into-permanent-file/67993 "2022-09-20T20:43:27Z")

</div>

hello sorry to ask, but I may not have entered the right words in the search box when searching the forum. I have set the variables so that I have default in memory and can also write to a file. In change and other no…

---

## [Listen to events only when node is in use](https://discourse.nodered.org/t/listen-to-events-only-when-node-is-in-use/67970)

<div class="topic-metadata">

**Author:** [@steinmetz](https://discourse.nodered.org/u/steinmetz)\
**Replies:** 2\
**Last updated:** [20 September 2022 19:39 UTC](https://discourse.nodered.org/t/listen-to-events-only-when-node-is-in-use/67970 "2022-09-20T19:39:53Z")

</div>

Hi all! Is there a way to listen to editor events such as deploy only if my node is in use? I read this page but I couldn't find a function I could override when my node is dragged from the palette to the workspace (HTM…

---

## [Disparo de mensagem](https://discourse.nodered.org/t/disparo-de-mensagem/67925)

<div class="topic-metadata">

**Author:** [@emerson](https://discourse.nodered.org/u/emerson)\
**Replies:** 1\
**Last updated:** [20 September 2022 19:12 UTC](https://discourse.nodered.org/t/disparo-de-mensagem/67925 "2022-09-20T19:12:25Z")

</div>

ola, preciso disparar uma mensagem quando um fluxo for verdadeiro

---

## [Efergy with multiple sensors (via energyhive API)](https://discourse.nodered.org/t/efergy-with-multiple-sensors-via-energyhive-api/67948)

<div class="topic-metadata">

**Author:** [@nograin](https://discourse.nodered.org/u/nograin)\
**Replies:** 2\
**Last updated:** [20 September 2022 18:43 UTC](https://discourse.nodered.org/t/efergy-with-multiple-sensors-via-energyhive-api/67948 "2022-09-20T18:43:48Z")

</div>

hey all, something's over my head here.. i found this flow - which seems to work fine when having only one sensor/meter in one's account at engage.efergy.com - and i do understand it's functionality: https://flows.nod…

---

## [Controlling Spotifyd via Dbus / Mpris?](https://discourse.nodered.org/t/controlling-spotifyd-via-dbus-mpris/67159)

<div class="topic-metadata">

**Author:** [@HonestJohn61](https://discourse.nodered.org/u/HonestJohn61)\
**Replies:** 2\
**Last updated:** [20 September 2022 19:01 UTC](https://discourse.nodered.org/t/controlling-spotifyd-via-dbus-mpris/67159 "2022-09-20T19:01:48Z")

</div>

Can anyone advise on how to interact with the Spotifyd daemon via Dbus / Mpris? Let me first explain the context. I have a headless RPi4 running audio processing very successfully (Roon Bridge, Spotifyd, CamillaDSP via …

---

## [Get Mean(value) from InfluxDB with node-red-contrib-influxdb](https://discourse.nodered.org/t/get-mean-value-from-influxdb-with-node-red-contrib-influxdb/67911)

<div class="topic-metadata">

**Author:** [@Falfango](https://discourse.nodered.org/u/Falfango)\
**Replies:** 6\
**Last updated:** [20 September 2022 17:02 UTC](https://discourse.nodered.org/t/get-mean-value-from-influxdb-with-node-red-contrib-influxdb/67911 "2022-09-20T17:02:00Z")

</div>

Hi! I have a problem to get Mean() values with GROUP BY time(). A normal query with no GROUP BY works fine. But when I add the Mean() and GROUP BY it returens only null-values When I use the same query directly…

---

## [Calculate two variables](https://discourse.nodered.org/t/calculate-two-variables/67982)

<div class="topic-metadata">

**Author:** [@dereine](https://discourse.nodered.org/u/dereine)\
**Replies:** 6\
**Last updated:** [20 September 2022 16:13 UTC](https://discourse.nodered.org/t/calculate-two-variables/67982 "2022-09-20T16:13:18Z")

</div>

I have two variables from an output of a smbs. I want to subtract them by function to be able to make an indication how much space is available on a disk (in percent). "T1" looks like this msg.topic="T1"; msg.payload…

---

## [Node-RED v3.0.2 string to json](https://discourse.nodered.org/t/node-red-v3-0-2-string-to-json/67942)

<div class="topic-metadata">

**Author:** [@mac\_arg](https://discourse.nodered.org/u/mac_arg)\
**Replies:** 3\
**Last updated:** [20 September 2022 16:11 UTC](https://discourse.nodered.org/t/node-red-v3-0-2-string-to-json/67942 "2022-09-20T16:11:18Z")

</div>

I am new to Node Red and I want to parse the data coming in via serial port, and convert it to JSON format. The data string I'm getting is from a demo board, and it arrives every one second as follows: | Hum\[%\]: 56.00 …

---

## [Adding hysteresis - how to? \[SOLVED\]](https://discourse.nodered.org/t/adding-hysteresis-how-to-solved/67977)

<div class="topic-metadata">

**Author:** [@homonto](https://discourse.nodered.org/u/homonto)\
**Replies:** 2\
**Last updated:** [20 September 2022 15:38 UTC](https://discourse.nodered.org/t/adding-hysteresis-how-to-solved/67977 "2022-09-20T15:38:26Z")

</div>

Hi, I am super fresh to Node Red and as I am using it in Home Assistant I need to learn more :wink: Sometimes it is difficult to even ask google the question if I am not sure what to really ask. So here is my question:…

---

## [Problem getting data from mysql db to line chart](https://discourse.nodered.org/t/problem-getting-data-from-mysql-db-to-line-chart/67973)

<div class="topic-metadata">

**Author:** [@nuggit](https://discourse.nodered.org/u/nuggit)\
**Replies:** 5\
**Last updated:** [20 September 2022 14:58 UTC](https://discourse.nodered.org/t/problem-getting-data-from-mysql-db-to-line-chart/67973 "2022-09-20T14:58:28Z")

</div>

Hi! Im a beginner and still learning NodeRed. I have browsed through the forums to try to find information. However Im stuck. I have a table in the database that I want to pull some data from. each line from the dat…

---

## [Flow malfunctions when user defined update intervals are set](https://discourse.nodered.org/t/flow-malfunctions-when-user-defined-update-intervals-are-set/67933)

<div class="topic-metadata">

**Author:** [@coco\_linton](https://discourse.nodered.org/u/coco_linton)\
**Replies:** 2\
**Last updated:** [20 September 2022 13:36 UTC](https://discourse.nodered.org/t/flow-malfunctions-when-user-defined-update-intervals-are-set/67933 "2022-09-20T13:36:50Z")

</div>

Hello, I'm building a weather dashboard with OpenWeatherMap API. Users can select if they want to give input as country/ city or latitude/ longitude. By default, weather updates at 30-second intervals (requirement of t…

---

## [Maths expression in switch node (jsonata?)](https://discourse.nodered.org/t/maths-expression-in-switch-node-jsonata/67918)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 6\
**Last updated:** [20 September 2022 12:37 UTC](https://discourse.nodered.org/t/maths-expression-in-switch-node-jsonata/67918 "2022-09-20T12:37:08Z")

</div>

Hello. I am trying to model out a potential application in Node-RED whereby I gradually reduce the speed of a pump that is filling a tank, so that the flowrate gradually decreases as the tank fills up. Think of slowing…

---

## [Function node error - "TypeError: msg.payload\[0\].filter is not a function"](https://discourse.nodered.org/t/function-node-error-typeerror-msg-payload-0-filter-is-not-a-function/67390)

<div class="topic-metadata">

**Author:** [@sneakynuts](https://discourse.nodered.org/u/sneakynuts)\
**Replies:** 11\
**Last updated:** [20 September 2022 12:00 UTC](https://discourse.nodered.org/t/function-node-error-typeerror-msg-payload-0-filter-is-not-a-function/67390 "2022-09-20T12:00:58Z")

</div>

I have flow which has been working just fine up until i updated the unifi node. Now i get an error: "TypeError: msg.payload\[0\].filter is not a function" I'll be honest and say i no nothing about writing function nodes…

---

## [Telegram and Email Alerts](https://discourse.nodered.org/t/telegram-and-email-alerts/67950)

<div class="topic-metadata">

**Author:** [@gregoinc](https://discourse.nodered.org/u/gregoinc)\
**Replies:** 8\
**Last updated:** [20 September 2022 08:40 UTC](https://discourse.nodered.org/t/telegram-and-email-alerts/67950 "2022-09-20T08:40:49Z")

</div>

Thanks to the awesome work by @Steve-Mcl I've managed to get my Telegram alerts running. Thanks Steve. I am now attempting to add email alerting to the same flow... only, I cannot get the Subject to work? Node Red seems…

---

## [Hide Node-RED console](https://discourse.nodered.org/t/hide-node-red-console/67934)

<div class="topic-metadata">

**Author:** [@NicoloToscani](https://discourse.nodered.org/u/NicoloToscani)\
**Replies:** 4\
**Last updated:** [20 September 2022 07:37 UTC](https://discourse.nodered.org/t/hide-node-red-console/67934 "2022-09-20T07:37:54Z")

</div>

Hi, Is it possibile hide Node-RED console during runtime execution ? Best regards, Nicolò

---

## [Multipurpose sensor](https://discourse.nodered.org/t/multipurpose-sensor/66348)

<div class="topic-metadata">

**Author:** [@droneman83](https://discourse.nodered.org/u/droneman83)\
**Replies:** 21\
**Last updated:** [20 September 2022 07:31 UTC](https://discourse.nodered.org/t/multipurpose-sensor/66348 "2022-09-20T07:31:49Z")

</div>

Hi i have a Samsung Multipurpose sensor, i like to have on My garage port. I hav not Mounted yet, I can see on ZHA\_events that it do come out with readings on movement. I do have my setup for zigbee (not mqtt), can some…

---

## [Uibuilder and some kind of 4 way swipe-card](https://discourse.nodered.org/t/uibuilder-and-some-kind-of-4-way-swipe-card/67928)

<div class="topic-metadata">

**Author:** [@boneheaddancer](https://discourse.nodered.org/u/boneheaddancer)\
**Replies:** 4\
**Last updated:** [20 September 2022 06:26 UTC](https://discourse.nodered.org/t/uibuilder-and-some-kind-of-4-way-swipe-card/67928 "2022-09-20T06:26:13Z")

</div>

Hello. I'm trying to make a quite simple ui with a 4 way swipe card. I have spent 6 days trying to make something work, now I am tired, and quite sad because of all the dumbness I am feeling. I am quite simply trying to…

---

## [Disable the template of the subflow](https://discourse.nodered.org/t/disable-the-template-of-the-subflow/67932)

<div class="topic-metadata">

**Author:** [@Sztt](https://discourse.nodered.org/u/Sztt)\
**Replies:** 4\
**Last updated:** [20 September 2022 04:06 UTC](https://discourse.nodered.org/t/disable-the-template-of-the-subflow/67932 "2022-09-20T04:06:57Z")

</div>

Once I have designed the subflow template, how do I disable editing the subflow template? I did this to prevent the subflow template from being broken.

---

## [Can anyone help with splitting a serial message from a Arcam AV amp?](https://discourse.nodered.org/t/can-anyone-help-with-splitting-a-serial-message-from-a-arcam-av-amp/67891)

<div class="topic-metadata">

**Author:** [@dapper](https://discourse.nodered.org/u/dapper)\
**Replies:** 11\
**Last updated:** [19 September 2022 22:01 UTC](https://discourse.nodered.org/t/can-anyone-help-with-splitting-a-serial-message-from-a-arcam-av-amp/67891 "2022-09-19T22:01:45Z")

</div>

I have a Home Assistant set up with the Node Red addon. I've been trying to get responses from the Arcam from the serial port and then send the info like volume etc, back into Home Assistant. I can receive the response…

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

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