mirror of
https://github.com/Mibew/mibew-operator-status-plugin.git
synced 2024-11-15 08:44:20 +03:00
8e5d1f6e47
closes #1, closes #2
1.4 KiB
1.4 KiB
mibew-operator-status-plugin
Plugin for Mibew, get statement based on the availability of operators.
Useage
-
Get any operators online status:
- request URL:
<MIBEW-BASE-URL>/opstatus
. - return
true
when any operators 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 inset
<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 from release page:
-
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
...