Skip to content

Time Trigger Example

Matthew Scoville edited this page Sep 13, 2020 · 3 revisions

This is a simple example to fire a script every night at 5:15pm. This script simply puts a message in the log file to show that it has fired.

"""
Time test script 
"""
@time_trigger("once(17:15:00)")
def time_trigger_test():
    """Trigger at 5:15pm every test example using pyscript."""
    log.info(f"Time Trigger test:")