Allows easy automation of WebSupervisor tasks, such as downloading and analyzing data. It utilizes the ComAp package, that manages calls to the official ComAp API.
- Install Python
- Download the files from the test directory
- From your ComAp API Developer portal go to your Profile and copy your Primary or Secondary Key.
- Configure your account - run
setup.bat
and follow the instructions! It will generate configuration fileconfig.py
with your API secrets. - Copy the
config.py
to each test directory
In the simple-examples
directory, there are examples of individual functions
In the examples
directory, there are examples of already usefull scripts, that are combining multiple functions:
archive_files.py <age>
will download the files stored on all units registered on your account. You can call it with a parameter to specify maximum age of files to be downloaded. It will create a directory for each unit that has fles to download.- The batch file
7-days-backup
is simply callingpython archive_files.py 7
- you can just double-click on it. check_mode.py
is listing communication state and mode of the controllers registered under your account. This can be further customized to for example identify units that are not inAUT
mode and make further actions (e.g. send notification).