Checklist Submission Script

This script should be located in the /checklist folder of the site - so on a Windows platform in the default site, you'd most likely find it at C:\Program Files (x86)\Optrix\ARDI\web\sites\default\checklist.

The file itself should be called 'submit.py'.

It is sent several environment variables that provide all of the details about the checklist submission, including…

  • The name of the asset
  • The ARDI ID of the asset
  • The name of the checklist
  • The name of the user submitting the checklist
  • Any file attachments (ie. photographs).
  • Any measurements captured

These are sent as environment variables to the script.

Each if the measurements you've captured in your checklist (either from user input or from a confirm step) appear with the prefix 'chk_'.

So if you have an input called “temperature”, the script will receive this value as chk_temperature.

If successful, the script must return the two letters OK (CR/LF afterwards is acceptable). Any further output will cause the web interface to display a warning message, along with any output your script produces.

You can see several example scripts below…