# Creating an event that occurs 3 times a day

**URL:** <https://forum.inductiveautomation.com/t/creating-an-event-that-occurs-3-times-a-day/36254>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [July 1, 2020, 4:16pm UTC](https://forum.inductiveautomation.com/t/creating-an-event-that-occurs-3-times-a-day/36254 "2020-07-01T16:16:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [July 1, 2020, 4:24pm UTC](https://forum.inductiveautomation.com/t/creating-an-event-that-occurs-3-times-a-day/36254/2 "2020-07-01T16:24:31Z")

</div>

If you don't care what time it occurs, just every 9 hours a gateway event script can do this for you. Otherwise you can create a tag group with a 9 hour scan rate and use a tag event script. If you do want it on certain hours it is trickier, see this post. If you describe how your ID# works (is it an integer tag) we can post a script for you.

> [@Gateway Script Only at 4pm](http://forum.inductiveautomation.com/t/gateway-script-only-at-4pm/19979/7):
>
> From a 1 second timer script. [code]import system from time import localtime, strftime curTime = strftime("%H:%M:%S", localtime()) if curTime == ‘16:00:00’: #Time is military time, include leading zero in hour. system.tag.write(“tag”,value)[/code]

---

_[View the full topic](https://forum.inductiveautomation.com/t/creating-an-event-that-occurs-3-times-a-day/36254)._
