For now also send normal card uid
This commit is contained in:
parent
b63fe150a0
commit
b0a6de4a49
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user