# How to create a scheduler

**URL:** <https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643>\
**Category:** Ignition\
**Created:** [February 9, 2023, 5:44pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643 "2023-02-09T17:44:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [February 9, 2023, 5:44pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643/1 "2023-02-09T17:44:29Z")

</div>

Hi,

Is there a way to create a scheduler in Ignition,  
where a user can specify which day and time in a week an action to be executed.

Thank you.

---

<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:** [February 9, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643/2 "2023-02-09T17:52:33Z")

</div>

Yes, in your project designer navigate Scripting → Gateway Events → Scheduled

[Gateway Event Scripts - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts)

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [February 9, 2023, 7:14pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643/3 "2023-02-09T19:14:04Z")

</div>

Cool. and Thanks.

I will explore this.

---

<div class="post-metadata">

**Author:** ![E.E.T](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@E.E.T](https://forum.inductiveautomation.com/u/E.E.T)\
**Post date:** [January 9, 2025, 10:44am UTC](https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643/4 "2025-01-09T10:44:02Z")

</div>

Is there is no way to parametrize the hours? What I want to do is to create a project in which the final user can use a GUI to select the week schedule for some gates to open and close but using the scheduled events you can't bind the settings to tags or variables

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 9, 2025, 11:19am UTC](https://forum.inductiveautomation.com/t/how-to-create-a-scheduler/69643/5 "2025-01-09T11:19:26Z")

</div>

1. How many "open" periods per day? Note that if they cross midnight you'll probably need two - one to cover up to midnight and the other to start at midnight.
2. How will you handle holidays, etc., or one-off schedules?

I'm thinking that you would set up an array with,  
`Day of week INT` (0 = Monday, ... 7 = Sunday)  
`On time DateTime or String?`  
`Off time DateTime or String?`

Then you could run a scheduled task script every minute to check if you are in any of the "open" periods and set a tag appropriately.
