# How to sample a payload

**URL:** <https://discourse.nodered.org/t/how-to-sample-a-payload/53929>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [18 November 2021 10:31 UTC](https://discourse.nodered.org/t/how-to-sample-a-payload/53929 "2021-11-18T10:31:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andregilles](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@andregilles](https://discourse.nodered.org/u/andregilles)\
**Post date:** [18 November 2021 10:31 UTC](https://discourse.nodered.org/t/how-to-sample-a-payload/53929/1 "2021-11-18T10:31:22Z")

</div>

Hello !  
I created a graph with a signal updated every second but over a day I saturate my dashboard .. how to write a function that would output a point every 5 minutes for example?  
Thanks for help

---

<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:** [18 November 2021 11:13 UTC](https://discourse.nodered.org/t/how-to-sample-a-payload/53929/2 "2021-11-18T11:13:57Z")

</div>

maybe the smooth node. It has options for max, min, mean and to reduce the output over n samples.

---

<div class="post-metadata">

**Author:** ![andregilles](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@andregilles](https://discourse.nodered.org/u/andregilles)\
**Post date:** [18 November 2021 16:22 UTC](https://discourse.nodered.org/t/how-to-sample-a-payload/53929/3 "2021-11-18T16:22:40Z")

</div>

Thanks for answer, this is a good node ... I'm trying it on my flow ... I'll tell you the result

---

<div class="post-metadata">

**Author:** ![andregilles](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@andregilles](https://discourse.nodered.org/u/andregilles)\
**Post date:** [19 November 2021 14:57 UTC](https://discourse.nodered.org/t/how-to-sample-a-payload/53929/4 "2021-11-19T14:57:36Z")

</div>

Hello, the smooth node works fine !!! thanks for help 😀

---

<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:** [3 December 2021 14:58 UTC](https://discourse.nodered.org/t/how-to-sample-a-payload/53929/5 "2021-12-03T14:58:20Z")

</div>

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