I want to generate and email a report with script(system.report.netEmail) at 3 oclock.
how to do it?
I even want a way for user to change the report generation time.
Typically, one would use a Gateway Scheduled Event to call your script.
But a scheduled event cannot be set to a different time with a script, so you would need to use a Gateway Timer Event that checks (often) if it is time to run the next report, then call your script. The "next time" would likely be a memory tag or set of memory tags that your user interface can write instructions to. You are pretty much on your own from here.
1 Like