new: implemented plugin system (closes #54)

This commit is contained in:
Simone Margaritelli
2019-10-02 19:01:07 +02:00
parent 00d78248d8
commit 47042f0946
13 changed files with 397 additions and 48 deletions

View File

@ -148,6 +148,12 @@ Now you can use the `preview.py`-script to preview the changes:
# Now open http://localhost:8080 and http://localhost:8081
```
### Plugins
Pwnagotchi has a simple plugins system that you can use to customize your unit and its behaviour. You can place your plugins anywhere
as python files and then edit the `config.yml` file (`main.plugins` value) to point to their containing folder. Check the [plugins folder](https://github.com/evilsocket/pwnagotchi/tree/master/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/plugins) for a list of default
plugins and all the callbacks that you can define for your own customizations.
### Random Info
- `hostname` sets the unit name.