From 9d17358aa148c0d4f1f6d6fe43cbcdc04ded2ec8 Mon Sep 17 00:00:00 2001 From: JonOfUs Date: Sat, 12 Aug 2023 20:15:43 +0200 Subject: [PATCH] Only send names, not macs --- public/index.php | 3 +-- scan.sh | 9 +++------ upload.py | 16 ++++++++-------- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/public/index.php b/public/index.php index f9b3ed5..f82c181 100644 --- a/public/index.php +++ b/public/index.php @@ -37,8 +37,7 @@ $datetime->setTimestamp($present["timestamp"]); foreach ($present["identities"] as $identity) { ?> - - + 1: wifi_map_path = sys.argv[1] - filtered_devices = parse_wifi_map(wifi_map_path) + filtered_identities = parse_wifi_map(wifi_map_path) # build request - json_payload = json.dumps(filtered_devices).encode("utf-8") + json_payload = json.dumps(filtered_identities).encode("utf-8") signature = hmac.new( key=bytes(WEBHOOK_SECRET, "utf-8"),