Page 1 of 1

Plugin Development Tutorial

Posted: Wed Jan 06, 2021 11:07 am
by agrohe21
I cannot seem to find sample code and/or a tutorial for how to develop plugins. Is there a wiki page that I am missing? Is there a hello world plugin?

Primarily, I am looking at other charting options beyond what is there is BW Usage and BW Distribution. So mainly some new UI concepts on top of existing data gathered by gargoyle.

Similar to existing UI, the pages would call some backend.sh scripts and render results in HTML/JS.

Re: Plugin Development Tutorial

Posted: Wed Jan 06, 2021 10:19 pm
by Lantis
Contribution guidelines
https://github.com/ericpaulbishop/gargo ... IBUTING.md

Developer documentation
https://www.gargoyle-router.com/wiki/do ... loper_info

Other than that, the existing plugins and parts of the Gargoyle base system are the best examples of how it works you'll get.
If you have specific questions, please ask them and I'll try to guide you.

Here's an example of a brand new plugin (less than 2 weeks old) contributed by a "casual contributor" (this is their first big code dump for Gargoyle).
https://github.com/ericpaulbishop/gargoyle/pull/903