Configuration through the web interface
173
Python configuration pages
Selecting Applications > Python from the main menu for a Python-enabled Digi device displays
the Python Configuration pages. These pages are used to manage Python program files including
uploading them to Digi devices and deleting them as needed, and configure Python programs to
execute when the Digi device boots, also known as auto-start programs.
Python files
The Python Files page is for uploading and managing Python programs on a
Digi device.
Upload Files: Click Browse to select a file to upload to and click Upload.
Manage Files: Select any files to remove from the Digi device and click Delete.
Auto-start settings
The Auto-start Settings page configures Python programs to execute when the Digi device boots.
Up to four auto-start programs can be configured.
Enable: When checked, the program specified in the Auto-start command line field will
be run when the device boots.
Auto-start command line: Specify the Python program filename to be executed and
any arguments to pass to the program. The syntax is:
filename [arg1 arg2...]
Manually execute uploaded Python programs
To manually execute an uploaded Python program on a Digi device, access the command line of
the device and enter the command:
python filename [arg1 arg2...]
View and manage executing Python programs
To view Python threads running on the Digi device, access the command line and enter the who
command.
Comentários a estes Manuais