# Node-RED function counter reset and function 4 outputs

**URL:** https://discourse.nodered.org/t/node-red-function-counter-reset-and-function-4-outputs/6593
**Category:** General
**Created:** [9 January 2019 08:19 UTC](https://discourse.nodered.org/t/node-red-function-counter-reset-and-function-4-outputs/6593 "2019-01-09T08:19:02Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [9 January 2019 09:00 UTC](https://discourse.nodered.org/t/node-red-function-counter-reset-and-function-4-outputs/6593/5 "2019-01-09T09:00:48Z")

</div>

Here's a link to something similar I knocked-up for someone just before Christmas.  
It uses a number of the ideas suggested by @hotNipi.  
You will need to modify the flow to suit your particular need.

> [@Plant Factory for agriculture](https://discourse.nodered.org/t/plant-factory-for-agriculture/5891/7):
>
> Just had a few spare minutes to knock-up a quick (possible) solution using some of the basic nodes. Please note... "No FSMs were used or harmed in the making of this flow." I'm sure there are parts of the flow that can be simplified. For example, some of the functionality in the function blocks could be combined. Hope you find this useful. [{"id":"33da7582.0d26e2","type":"inject","z":"935fc4c0.e49458","name":"","topic":"","payload":"","payloadType":"num","repeat":"","crontab":"","once":tru…

---

_[View the full topic](https://discourse.nodered.org/t/node-red-function-counter-reset-and-function-4-outputs/6593)._
