# Tag to Monitor Schedule Active (Yes/No)

**URL:** <https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [May 18, 2020, 12:16pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836 "2020-05-18T12:16:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhicks1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mhicks1/32/14121_2.png) [@mhicks1](https://forum.inductiveautomation.com/u/mhicks1)\
**Post date:** [May 18, 2020, 12:16pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/1 "2020-05-18T12:16:32Z")

</div>

I am trying to troubleshoot a schedule and was hoping to create some memory tags to see the status of some schedules that we are using. I would like to be able to trend tags to follow the Activity of the Schedules.  
Thank you…

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [May 18, 2020, 12:22pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/2 "2020-05-18T12:22:58Z")

</div>

In the schedule editor, you have the calendar preview you can use.

 ![afbeelding](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2b2daf75cd373540be79aad10df01c2d5eac1d01.png)

Isn’t that enough?

If not, you can write a script to check if a schedule is active, run it periodically and write the result to a tag. See [Check if schedule is active](http://forum.inductiveautomation.com/t/check-if-schedule-is-active/21967) for example.

---

<div class="post-metadata">

**Author:** ![mhicks1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mhicks1/32/14121_2.png) [@mhicks1](https://forum.inductiveautomation.com/u/mhicks1)\
**Post date:** [May 18, 2020, 1:03pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/3 "2020-05-18T13:03:45Z")

</div>

I did try to use the Schedule editor in a window but only got the schedule names.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f852a5fa2c48eef554e42d356e0f808721ba5570.png) Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [May 18, 2020, 1:09pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/4 "2020-05-18T13:09:57Z")

</div>

If you select a schedule, you can click on the edit button, and scroll down to see the calendar.

Though you will probably have to make that component a little wider to be able to read the calendar.

---

<div class="post-metadata">

**Author:** ![mhicks1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mhicks1/32/14121_2.png) [@mhicks1](https://forum.inductiveautomation.com/u/mhicks1)\
**Post date:** [May 18, 2020, 1:16pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/5 "2020-05-18T13:16:51Z")

</div>

OK. I believe I found my problem. I didn’t click enough to get the information I needed.  
Thank you…

---

<div class="post-metadata">

**Author:** ![mhicks1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mhicks1/32/14121_2.png) [@mhicks1](https://forum.inductiveautomation.com/u/mhicks1)\
**Post date:** [May 18, 2020, 3:41pm UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/6 "2020-05-18T15:41:41Z")

</div>

I found some scripting that will give me everything I want to know with the exception of the “Active Now?” status.print "Basic schedule type:  
‘’‘aSchedule.getName(),(), aSchedule.getDescription(), aSchedule.isAllDays(), aSchedule.isObserveHolidays()’’’

Is there a Scripting Function for the Active Now Value?

---

<div class="post-metadata">

**Author:** ![OscarLucas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/oscarlucas/32/6417_2.png) [@OscarLucas](https://forum.inductiveautomation.com/u/OscarLucas)\
**Post date:** [March 23, 2023, 8:15am UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/7 "2023-03-23T08:15:09Z")

</div>

Same question. I need to get a boolean when one schedule is active and other boolen when other squedule is active. can somebody help us with this?

---

<div class="post-metadata">

**Author:** ![tupanaster](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tupanaster](https://forum.inductiveautomation.com/u/tupanaster)\
**Post date:** [November 2, 2023, 10:32am UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/8 "2023-11-02T10:32:58Z")

</div>

Same question.

It's handy to know if a user is scheduled using `system.user.isUserScheduled` but at the same time it could be useful to know if a schedule is active.

These links don't provide a solution, they're just different threads of the same question.

> [@How can I read when an schedule is active](https://forum.inductiveautomation.com/t/how-can-i-read-when-an-schedule-is-active/58306):
>
> hello. is there a way to read this through an script ?

> [@Check if schedule is active](https://forum.inductiveautomation.com/t/check-if-schedule-is-active/21967):
>
> I wonder if there’s a better way to see if a user schedule is active inside a python script. Currently I have this script to get a timeline from a schedule, and see if it’s active. It works but it’s not elegant (way too much date types used, and I have to go too deep in the Ignition classes). Does someone have something more elegant? import java.util.Date import java.util.Calendar import datetime def isScheduleActive(scheduleName): now = java.util.Date() cal = java.util.Calendar.getI…

---

<div class="post-metadata">

**Author:** ![crees](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@crees](https://forum.inductiveautomation.com/u/crees)\
**Post date:** [November 2, 2023, 11:02am UTC](https://forum.inductiveautomation.com/t/tag-to-monitor-schedule-active-yes-no/34836/9 "2023-11-02T11:02:05Z")

</div>

I've approached this issue doing the following:

- Create a dummy user (same name as schedule) for each schedule and assign them to it
- Create a function which you pass the schedule name to, then use system.user.isUserScheduled() to check if that user is active.
- Create Expression tags that run your custom function OR create a timer script that checks against all schedules and writes the values to a memory tag that is historized.
