Tag to Monitor Schedule Active (Yes/No)

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…

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

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 for example.

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

Am I doing something wrong?

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.

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

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?

2 Likes

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?

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.

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.
1 Like