7: Administration
UM Configuration BAT-C2
122
Release 01.0.00 04/2019
To Configure Action Settings
Using Web Manager
To view Action status, on the
Administration
page, click
Action > Status
on the menu.
To modify Action information, on the
Administration
page, click
Action > Configuration
on
the menu and select a specific action from the drop-down menu.
Using XML
Include in your file:
<configgroup name = "action" instance = "eth0 link
state change">
Include in your file:
<configgroup name = "action" instance = "wlan0 link
state change">
Include in your file:
<configgroup name = "action" instance = "on scheduled reboot">
Python
Python™ is a dynamic, object-oriented programming language that can be used for developing a
wide range of software applications. The BAT-C2 includes the installation of Python interpreter,
making it easy to load and run custom Python scripts on your device.
The version of Python programming language installed on the BAT-C2 comes with "batteries
included" by having the Python language's standard library. In addition, the developer can take
advantage of thousands of available third party packages to speed up development.
IDE
Python scripts can be written with any text editor. If using Windows for development, + is
a powerful choice as this text editor includes traditional IDE features such as syntax highlighting
and automatic indentation (
http://notepad-plus-plus.org/
). + also includes the ability to
customize through plugins. Some interesting plugins for the development of Python scripts for the
BAT-C2 platform include the following:
PyNPP:
https://github.com/mpcabd/PyNPP
This plugin allows the user to use keystrokes to launch the open Python script in the local
Python interpreter for debugging and testing.
Applications
The BAT-C2 supports the ability to install and uninstall user-defined Python scripts and packages
and will include the following:
contains the setting options for configuring, installing, uninstalling and running external
applications via Python scripts.
bin
python
lib
libpython{version}.so
<ltrx python sdk>
libpython{version}
"python precompiled scripts
"python shared libraries