Code Monkey home page Code Monkey logo

comap-api's Introduction

ComAp API

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.

Setup & Configuration

  1. Install Python
  2. Download the files from the test directory
  3. From your ComAp API Developer portal go to your Profile and copy your Primary or Secondary Key.
  4. Configure your account - run setup.bat and follow the instructions! It will generate configuration file config.py with your API secrets.
  5. Copy the config.py to each test directory

Testing

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 calling python 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 in AUT mode and make further actions (e.g. send notification).

comap-api's People

Contributors

bruxy70 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.