0

Setting up an event handler for start and end of scedule?

I need to set up a dozen machines all with different (and somewhat varied) scedules. I will need them all to execute a plugin message and send a gpio pin high at the start of the scendule for each day, and excecute another plugin message and send the gpio pin low at the end of each day. Is there a way to tie an event handler to the start and end of the scedule? Ie without having to program different time/clock functions for each day on each scedule?

1 comment

  • 1
    Avatar
    Bright Scripters

    What you could do is create two presentations for each location.

    One would be called Start, and the other would be called End.

    The two presentations, would then be scheduled with accordance to each of the location's daily routines.

     

    The commands that you need executed at the begining of the day, would be placed in whatever state you have as the Initial State in the Start presentation.

    Similarly, the commands that you need executed at the end of the day, would be placed in whatever state you have as the Initial State in the End presentation.

    Ideally, you would use the same Start, and End presentations at all locations, which would make it easier to make content changes down the road.

    Instead of modifying a dozen presentations, you only change one or two. 

Please sign in to leave a comment.