# Script to collect information hourly

**URL:** <https://discourse.nodered.org/t/script-to-collect-information-hourly/34991>\
**Category:** General\
**Created:** [28 October 2020 22:18 UTC](https://discourse.nodered.org/t/script-to-collect-information-hourly/34991 "2020-10-28T22:18:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leoaabreu1997](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@leoaabreu1997](https://discourse.nodered.org/u/leoaabreu1997)\
**Post date:** [28 October 2020 22:18 UTC](https://discourse.nodered.org/t/script-to-collect-information-hourly/34991/1 "2020-10-28T22:18:21Z")

</div>

I need to create a flow to collect information and store it every hour.  
Example: hour1 (00:00:00 to 00:59:59) = 10  
hour2 (01:00:00 to 01:59:59) = 20  
...  
hour24 (23:00:00 to 23:59:59) = 13  
For each hour there will be a counter and at 23:59:59 I need all the counters to reset.  
Could you help me create the script and tell me which node to create?

Thank you.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 October 2020 22:57 UTC](https://discourse.nodered.org/t/script-to-collect-information-hourly/34991/2 "2020-10-28T22:57:22Z")

</div>

Hi & welcome to the forum.

You will find the people here are very helpful if you first show what you have tried and where you are stuck.

If you are brand new to node-red, I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<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:** [27 December 2020 22:57 UTC](https://discourse.nodered.org/t/script-to-collect-information-hourly/34991/3 "2020-12-27T22:57:30Z")

</div>

Closed on 27 December 2020 22:57 UTC

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