mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
multiple edits
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -130,8 +130,21 @@ def load_from_path(path, enabled=()):
|
||||
def load(config):
|
||||
enabled = [name for name, options in config['main']['plugins'].items() if
|
||||
'enabled' in options and options['enabled']]
|
||||
|
||||
pwnagotchi.grid.update_data(None, enabled)
|
||||
data = {
|
||||
'session': {
|
||||
'duration': "",
|
||||
'epochs': "",
|
||||
'train_epochs': "",
|
||||
'avg_reward': "",
|
||||
'min_reward': "",
|
||||
'max_reward': "",
|
||||
'deauthed': "",
|
||||
'associated': "",
|
||||
'handshakes': "",
|
||||
'peers': "",
|
||||
}
|
||||
}
|
||||
pwnagotchi.grid.update_data(data, enabled)
|
||||
|
||||
# load default plugins
|
||||
load_from_path(default_path, enabled=enabled)
|
||||
|
Reference in New Issue
Block a user