Code Monkey home page Code Monkey logo

mibew-operator-status-plugin's Introduction

Mibew Operator Status plugin

Plugin for Mibew, get statement based on the availability of operators.

Usage

  1. Get any operators online status:

    • request URL: <MIBEW-BASE-URL>/opstatus.
    • return true when any operators is online and false when not.
  2. Get any operators online status in specificed group:

    • request URL: <MIBEW-BASE-URL>/opstatus/group/<GROUP-ID>.
    • return true when any operators in this group is online and false when not.
  3. Get an operator online status by operator code:

    • Request URL: <MIBEW-BASE-URL>/opstatus/<OPERATOR-CODE>.
    • return true when operator is online or false when not.
  4. Use callback parameter:

    Just insert <script> tag and set src to URL above and add callback parameter

    • <MIBEW-BASE-URL>/opstatus?callback=<CALLBACK_FUNCTION>
    • <MIBEW-BASE-URL>/opstatus/<OPERATOR-CODE>?callback=<CALLBACK_FUNCTION>

    will return bellow and run CALLBACK_FUNCTION automatically.

    /**/CALLBACK_FUNCTION(status);

Install

  1. Get the archive with the plugin sources. You can download it from the official site or build the plugin from sources.

  2. Untar/unzip the plugin's archive.

  3. Put files of the plugins to the <MIBEW-ROOT>/plugins folder.

  4. Navigate to <MIBEW-BASE-URL>/operator/plugin page and enable the plugin.

Tips: if you plugin state is "not initialized", please check <MIBEW-ROOT>/configs/config.yml file is not:

...
plugins: []
...

and should be like this:

...
plugins:
    "SomePlugin":
        key: value
...

Build from sources

  1. Obtain a copy of the repository using git clone, download button, or another way.
  2. Install node.js and npm.
  3. Install Gulp.
  4. Install npm dependencies using npm install.
  5. Run Gulp to build the sources using gulp default.

Finally .tar.gz and .zip archives of the ready-to-use Plugin will be available in release directory.

License

MIT

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.