diff --git a/pwnagotchi/grid.py b/pwnagotchi/grid.py index dab0034f..11101c51 100644 --- a/pwnagotchi/grid.py +++ b/pwnagotchi/grid.py @@ -84,8 +84,7 @@ def update_data(last_session, plugin_data): 'uname': subprocess.getoutput("uname -a"), 'brain': brain, 'version': pwnagotchi.__version__, - 'build': "Pwnagotchi-Torch by Jayofelony", - 'plugins': plugin_data + 'build': "Pwnagotchi-Torch by Jayofelony" } logging.debug("updating grid data: %s" % data) diff --git a/pwnagotchi/plugins/__init__.py b/pwnagotchi/plugins/__init__.py index 8f4ed73c..0d913b49 100644 --- a/pwnagotchi/plugins/__init__.py +++ b/pwnagotchi/plugins/__init__.py @@ -130,21 +130,6 @@ 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']] - 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) diff --git a/pwnagotchi/plugins/default/grid.py b/pwnagotchi/plugins/default/grid.py index 79259a3a..2fbd0427 100644 --- a/pwnagotchi/plugins/default/grid.py +++ b/pwnagotchi/plugins/default/grid.py @@ -130,7 +130,7 @@ class Grid(plugins.Plugin): with self.lock: try: - grid.update_data(agent.last_session, None) + grid.update_data(agent.last_session) except Exception as e: logging.error("error connecting to the pwngrid-peer service: %s" % e) logging.debug(e, exc_info=True)