# Filter for time

**URL:** https://discourse.nodered.org/t/filter-for-time/22818
**Category:** General
**Created:** [8 March 2020 22:08 UTC](https://discourse.nodered.org/t/filter-for-time/22818 "2020-03-08T22:08:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Assi](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Assi](https://discourse.nodered.org/u/Assi)
#### Post date: [8 March 2020 22:08 UTC](https://discourse.nodered.org/t/filter-for-time/22818/1 "2020-03-08T22:08:52Z")

</div>

Hello, I want to filter messages lets say for 30 minutes.  
If it comes in before it will be filtered out, the first message that comes after a 30 minute pause shall pass and reset the time again. Is there a library element that can do this ?  
Thanks  
Eggbert

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [8 March 2020 22:35 UTC](https://discourse.nodered.org/t/filter-for-time/22818/2 "2020-03-08T22:35:51Z")

</div>

Have you searched in the [flows](https://flows.nodered.org) tab of this site? I'd use words like 'rate' or 'limit' and maybe 'throttle' nad see what you can find. Then try some out.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [8 March 2020 22:46 UTC](https://discourse.nodered.org/t/filter-for-time/22818/3 "2020-03-08T22:46:28Z")

</div>

Look at the `trigger` node - set to send existing msg on first message, then timeout for 30 minutes then send nothing on second output - don't extend the timer.

---

<div class="post-metadata">

### Author: ![Assi](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Assi](https://discourse.nodered.org/u/Assi)
#### Post date: [10 March 2020 19:44 UTC](https://discourse.nodered.org/t/filter-for-time/22818/4 "2020-03-10T19:44:15Z")

</div>

> [@dceejay](#):
>
> end existin

thats it, thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [24 March 2020 19:44 UTC](https://discourse.nodered.org/t/filter-for-time/22818/5 "2020-03-24T19:44:20Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
