# Daily data collection

**URL:** <https://forum.inductiveautomation.com/t/daily-data-collection/36912>\
**Category:** Ignition\
**Created:** [July 21, 2020, 5:55pm UTC](https://forum.inductiveautomation.com/t/daily-data-collection/36912 "2020-07-21T17:55:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malejandroreyes](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@malejandroreyes](https://forum.inductiveautomation.com/u/malejandroreyes)\
**Post date:** [July 21, 2020, 5:55pm UTC](https://forum.inductiveautomation.com/t/daily-data-collection/36912/1 "2020-07-21T17:55:08Z")

</div>

Hello all,

I want to collect data from a calculation made in Ignition and move it to the database. I know how to send this data as a historical tag to the database, but I don’t know how to create the trigger. How can I create an event or a trigger that does this transaction? I want to make the transaction every day at 23:59:59

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 21, 2020, 6:22pm UTC](https://forum.inductiveautomation.com/t/daily-data-collection/36912/2 "2020-07-21T18:22:36Z")

</div>

Use a [transaction group](https://inductiveuniversity.com/courses/transaction-groups-in-ignition/8.0)

---

<div class="post-metadata">

**Author:** ![craig.atkinson](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@craig.atkinson](https://forum.inductiveautomation.com/u/craig.atkinson)\
**Post date:** [July 22, 2020, 7:53am UTC](https://forum.inductiveautomation.com/t/daily-data-collection/36912/3 "2020-07-22T07:53:43Z")

</div>

If you prefer to use scripts, you could setup a gateway timer script @ 1000ms to check the current time, and then run a script if the current time is the desired time.

```auto
time = system.date.now()
hour,min = system.date.getHour24(time),system.date.getMinute(time)
if hour== 23 and min== 59:	
         my_script.run()

```
