Plugin for Mibew, get statement based on the availability of operators.
Go to file
Fedor A. Fetisov 682ac0c4e6 Change namespace to Mibew
The repository was transferred to Mibew organization
2017-03-20 11:18:13 +03:00
Controller Change namespace to Mibew 2017-03-20 11:18:13 +03:00
.gitignore fix #1 fix #2 2017-03-14 21:39:46 +08:00
build.sh Change namespace to Mibew 2017-03-20 11:18:13 +03:00
composer.json Change namespace to Mibew 2017-03-20 11:18:13 +03:00
LICENSE Initial commit 2016-10-16 11:21:04 +08:00
Plugin.php Change namespace to Mibew 2017-03-20 11:18:13 +03:00
README.md Add any operators online and JSONP support 2017-03-18 21:56:45 +08:00
routing.yml Change namespace to Mibew 2017-03-20 11:18:13 +03:00

mibew-operator-status-plugin

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

Useage

  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 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.
  3. Use callback parameter:

    Just inset <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 from release page:

  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
...

License

MIT