For now also send normal card uid

This commit is contained in:
Arti Zirk 2020-11-03 21:54:04 +02:00
parent b63fe150a0
commit b0a6de4a49
1 changed files with 1 additions and 1 deletions

View File

@ -75,12 +75,12 @@ class Main:
logging.info("Access card not in allow list, hash trail %s", uid_h[-10:]) logging.info("Access card not in allow list, hash trail %s", uid_h[-10:])
success = False success = False
data = { data = {
"uid": value,
"uid_hash": uid_h, "uid_hash": uid_h,
"door": self.door, "door": self.door,
"success": success, "success": success,
"timestamp": time.strftime("%Y-%m-%d %H:%M:%S") "timestamp": time.strftime("%Y-%m-%d %H:%M:%S")
} }
print(data)
requests.post(self.api_swipe, data=data, timeout=15) requests.post(self.api_swipe, data=data, timeout=15)
def listen_notification(self): def listen_notification(self):