The official list of plugins for WGDashboard.
WGDashboard v4.3+
- Using
git clone https://github.com/WGDashboard/WGDashboard-Plugins.gitor download the repo with this link - Copy the plugin folder you want into
WGDashboard/src/plugins - Restart WGDashboard to load the new plugin
I've designed it so is super easy to do it. Every plugin will get load into a thread when WGDashboard starts. You just need to do the following step:
-
Create a new folder in
WGDashboard/src/plugins, make sure your folder name does not contain spaces -
In the folder create a Python file called
main.py. This file will be the entry point of your plugin. -
In your
main.py, create a function calledmainthat takes in 1 parameter, which is a dictionary containing all your WireGuard configurations.# main.py def main(WireguardConfigurations: dict[str, object] = None): pass
- This would allow you to read the latest data of your WireGuard configurations.
-
That's it, you can now do whatever you want. You can look into the
plugin_template