Controller | ||
.gitignore | ||
gulpfile.js | ||
LICENSE | ||
package.json | ||
Plugin.php | ||
README.md | ||
routing.yml |
Mibew Operator Status plugin
Plugin for Mibew, get statement based on the availability of operators.
Usage
-
Get any operators online status:
- request URL:
<MIBEW-BASE-URL>/opstatus
. - return
true
when any operators is online andfalse
when not.
- request URL:
-
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 andfalse
when not.
- request URL:
-
Get an operator online status by operator code:
- Request URL:
<MIBEW-BASE-URL>/opstatus/<OPERATOR-CODE>
. - return
true
when operator is online orfalse
when not.
- Request URL:
-
Use callback parameter:
Just insert
<script>
tag and setsrc
to URL above and addcallback
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
-
Get the archive with the plugin sources. You can download it from the official site or build the plugin from sources.
-
Untar/unzip the plugin's archive.
-
Put files of the plugins to the
<MIBEW-ROOT>/plugins
folder. -
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
- Obtain a copy of the repository using
git clone
, download button, or another way. - Install node.js and npm.
- Install Gulp.
- Install npm dependencies using
npm install
. - 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.