mirror of
https://github.com/Mibew/mibew-operator-status-plugin.git
synced 2025-01-22 10:00:30 +03:00
add archive file and build tool, move src file to src folder
This commit is contained in:
parent
2469125a60
commit
f21308ee94
40
README.md
40
README.md
@ -1,2 +1,42 @@
|
||||
# mibew-operator-status-plugin
|
||||
Plugin for Mibew, get statement based on the availability of operators.
|
||||
|
||||
# Useage
|
||||
|
||||
Request `<MIBEW-BASE-URL>/opstatus?code=<OPERATOR-CODE>`, your will get `true` when operator
|
||||
is online or `false` when operator is offline.
|
||||
|
||||
# Install
|
||||
|
||||
1. Get the archive with the plugin sources from link bellow:
|
||||
|
||||
* [mibew-operator-status-plugin.tar.gz](archive/mibew-operator-status-plugin.tar.gz)
|
||||
|
||||
* [mibew-operator-status-plugin.zip](archive/mibew-operator-status-plugin.zip)
|
||||
|
||||
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:
|
||||
|
||||
```yml
|
||||
...
|
||||
plugins: []
|
||||
...
|
||||
```
|
||||
and should be like this:
|
||||
|
||||
```yml
|
||||
...
|
||||
plugins:
|
||||
"SomePlugin":
|
||||
key: value
|
||||
...
|
||||
```
|
||||
|
||||
# License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
BIN
archive/mibew-operator-status-plugin.tar.gz
Normal file
BIN
archive/mibew-operator-status-plugin.tar.gz
Normal file
Binary file not shown.
BIN
archive/mibew-operator-status-plugin.zip
Normal file
BIN
archive/mibew-operator-status-plugin.zip
Normal file
Binary file not shown.
9
build.sh
Executable file
9
build.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
plugin_root_dir='Everyx'
|
||||
plugin_target_dir="$plugin_root_dir/Mibew/Plugin/OperatorStatus"
|
||||
mkdir -p $plugin_target_dir
|
||||
cp -R src/* $plugin_target_dir
|
||||
tar -czvf archive/mibew-operator-status-plugin.tar.gz $plugin_root_dir
|
||||
zip -r archive/mibew-operator-status-plugin.zip $plugin_root_dir
|
||||
rm -rf $plugin_root_dir
|
Loading…
Reference in New Issue
Block a user