Gateway Event Scripts File Location

Where in Windows OS File system does the gateway event script get stored ?
Trying to use git version control on the scripts which I have under gateway events. What would be the best method to do this ?

Gateway Event Scripts are currently stored in an opaque binary resource that you won’t have any luck version controlling.

It will be in the $IGNITION/data/projects/$PROJECT/ignition/event-scripts folders, though.

1 Like

Are there APIs to enable and disable the gateway tag change event scripts besides doing it manually in the designer ?


If you want to version control your gateway event scripts, put them in a script library and call them from your gateway event script. The Script library gets stored as plaintext python and that is much more suitable for version control. My gateway event scripts really only check the conditions to see if its the right time to run the script, but then I call my script library.

theConditionIsRight = someTagOrDatabaseInformation
if theConditionIsRight:

Your projects script library for windows if you did a regular install is C:\Program Files\Inductive Automation\Igniton\data\projects\YOUR PROJECT NAME HERE\ignition\script-python - you can check it out and see that your scripts are there in plain text - much better for git.


I recommend not even doing that. Just hand off to the project script. Project scripts can cache values to help make conditional decisions, and can maintain other top level variables, like a logger instance.