# General

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

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

**Page:** 320

---

## [Resetting a timer with new input](https://discourse.nodered.org/t/resetting-a-timer-with-new-input/17979)

<div class="topic-metadata">

**Author:** [@roybosch](https://discourse.nodered.org/u/roybosch)\
**Replies:** 9\
**Last updated:** [21 September 2022 19:08 UTC](https://discourse.nodered.org/t/resetting-a-timer-with-new-input/17979 "2022-09-21T19:08:08Z")

</div>

Hi, I'm trying to make a timer using the function node in NodeRED. I've got the basics working, but I'm missing some key functionality that I can't get to work. This is my flow: I'm injecting number 5 in my function …

---

## [Debug button not appearing in right sidebar](https://discourse.nodered.org/t/debug-button-not-appearing-in-right-sidebar/68030)

<div class="topic-metadata">

**Author:** [@jackcarey](https://discourse.nodered.org/u/jackcarey)\
**Replies:** 4\
**Last updated:** [21 September 2022 16:55 UTC](https://discourse.nodered.org/t/debug-button-not-appearing-in-right-sidebar/68030 "2022-09-21T16:55:14Z")

</div>

This question seems stupid, but I haven't seen it anywhere else. I'm using node-red 3.0.2 on Chrome on Windows without any browser extensions. The debug button has disappeared from the right sidebar in the interface. Wha…

---

## [Request for rpi-gpio out functional modification to maintain IO state when deploying](https://discourse.nodered.org/t/request-for-rpi-gpio-out-functional-modification-to-maintain-io-state-when-deploying/68022)

<div class="topic-metadata">

**Author:** [@mibian](https://discourse.nodered.org/u/mibian)\
**Replies:** 6\
**Last updated:** [21 September 2022 13:43 UTC](https://discourse.nodered.org/t/request-for-rpi-gpio-out-functional-modification-to-maintain-io-state-when-deploying/68022 "2022-09-21T13:43:31Z")

</div>

I'm using the rpi-gpio out node to control the status of a relay that control the power to some component. Unfortunately whenever I modify the controlling parameters in my code, and hit deploy, the default behaviour of t…

---

## [Conflict in node](https://discourse.nodered.org/t/conflict-in-node/67937)

<div class="topic-metadata">

**Author:** [@droneman83](https://discourse.nodered.org/u/droneman83)\
**Replies:** 1\
**Last updated:** [21 September 2022 13:37 UTC](https://discourse.nodered.org/t/conflict-in-node/67937 "2022-09-21T13:37:23Z")

</div>

I have a small issue where i have a conflict, i need to sllep sometimes during the day. so i need my ikea coveres to stay down when needet, but when the temperatur is below 15 i have set my covers to stay oppen to hav…

---

## [Serial filter separates the outputs into different outputs](https://discourse.nodered.org/t/serial-filter-separates-the-outputs-into-different-outputs/67875)

<div class="topic-metadata">

**Author:** [@maxino101578](https://discourse.nodered.org/u/maxino101578)\
**Replies:** 14\
**Last updated:** [21 September 2022 12:56 UTC](https://discourse.nodered.org/t/serial-filter-separates-the-outputs-into-different-outputs/67875 "2022-09-21T12:56:08Z")

</div>

I read the following Strings from an RS232 but I would like to have each String in a separate output does anyone have an idea how to do it? Thanks so much

---

## [UI DASHBOARD for multiple user](https://discourse.nodered.org/t/ui-dashboard-for-multiple-user/68004)

<div class="topic-metadata">

**Author:** [@node-to](https://discourse.nodered.org/u/node-to)\
**Replies:** 1\
**Last updated:** [21 September 2022 12:44 UTC](https://discourse.nodered.org/t/ui-dashboard-for-multiple-user/68004 "2022-09-21T12:44:12Z")

</div>

Hello, everyone I read some of the topic that current node red ui is created for multiple user. Do we have any other way.

---

## [Unwanted nested array](https://discourse.nodered.org/t/unwanted-nested-array/68017)

<div class="topic-metadata">

**Author:** [@Switchblade2](https://discourse.nodered.org/u/Switchblade2)\
**Replies:** 4\
**Last updated:** [21 September 2022 11:43 UTC](https://discourse.nodered.org/t/unwanted-nested-array/68017 "2022-09-21T11:43:26Z")

</div>

Hi, I'm quite new to Java script and Node Red so looking for help with a hopefully simple but strange issue. I have a function that create an array with 10 values that I store as a flow variable. If I check the array\_n…

---

## [Help me to create day counter](https://discourse.nodered.org/t/help-me-to-create-day-counter/67997)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 3\
**Last updated:** [21 September 2022 11:03 UTC](https://discourse.nodered.org/t/help-me-to-create-day-counter/67997 "2022-09-21T11:03:22Z")

</div>

Hi i want to create a day counter. from today - the day i wanted(like 01/12/2022) and i want the output to be in days( like "24" days). can someone help me do this?

---

## [Power consumption of a heatpump](https://discourse.nodered.org/t/power-consumption-of-a-heatpump/67978)

<div class="topic-metadata">

**Author:** [@Nilpferd](https://discourse.nodered.org/u/Nilpferd)\
**Replies:** 4\
**Last updated:** [21 September 2022 10:39 UTC](https://discourse.nodered.org/t/power-consumption-of-a-heatpump/67978 "2022-09-21T10:39:19Z")

</div>

Hello My heat pump sends once a day the accumulated power consumption. I want to write the power consumption of the last three days in a bar chart. So first of all I have to subtract the value from two days ago from th…

---

## [Oauth Node-RED editor adminAuth](https://discourse.nodered.org/t/oauth-node-red-editor-adminauth/68018)

<div class="topic-metadata">

**Author:** [@AMWN](https://discourse.nodered.org/u/AMWN)\
**Replies:** 0\
**Last updated:** [21 September 2022 10:00 UTC](https://discourse.nodered.org/t/oauth-node-red-editor-adminauth/68018 "2022-09-21T10:00:16Z")

</div>

I have setup oAuth authentication with azure-ad. Everything works well except the part how to handle invalid users. I only allow users which have a specific group in azure ad. I check this in de verify function. verify…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

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

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