From 892fda775d7397ec8da57a84d6ed835c4c6eef4d Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 20 Oct 2019 14:55:34 +0200 Subject: [PATCH] fix: throttling report requests a bit to avoid rate limits on the API --- pwnagotchi/plugins/default/grid.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/grid.py b/pwnagotchi/plugins/default/grid.py index 6f064f2a..cfb5d8fc 100644 --- a/pwnagotchi/plugins/default/grid.py +++ b/pwnagotchi/plugins/default/grid.py @@ -1,11 +1,13 @@ __author__ = 'evilsocket@gmail.com' -__version__ = '1.0.0' +__version__ = '1.0.1' __name__ = 'grid' __license__ = 'GPL3' -__description__ = 'This plugin signals the unit cryptographic identity and list of pwned networks and list of pwned networks to api.pwnagotchi.ai' +__description__ = 'This plugin signals the unit cryptographic identity and list of pwned networks and list of pwned ' \ + 'networks to api.pwnagotchi.ai ' import os import logging +import time import glob import pwnagotchi.grid as grid @@ -136,6 +138,7 @@ def on_internet_available(agent): else: if grid.report_ap(essid, bssid): set_reported(reported, net_id) + time.sleep(1.5) else: logging.warning("no bssid found?!") else: