I have a custom script that fetches data for a XY chart. I would like this to run once daily. I know that there are a variety of events that can be configured, but none of them are timers. What is the simplest way to make this script run once per day?
You can't do that with Perspective as it won't run if no client is open and it might run more than once if multiple clients were open.
Instead the script has to be run in the gateway scope.
- Project Browser → Scripting → Project Library → Create a New Script.
- Project Browser → Scripting → Gateway Events (double-click) → Scheduled. Call the Project Library script created in the previous step.
https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts
4 Likes