✏️ Fixes image link typo
This commit is contained in:
parent
b175c31ab6
commit
98e73ab924
@ -12,9 +12,9 @@ After getting the distance and comparing it to the threshold, the peripheral sen
|
|||||||
|
|
||||||
This is how it actually looks like on the door frame:
|
This is how it actually looks like on the door frame:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ print("Starting door alarm...")
|
|||||||
|
|
||||||
ssid = "HUAWEI-2EEt-2G"
|
ssid = "HUAWEI-2EEt-2G"
|
||||||
password = "hxtU2dvx"
|
password = "hxtU2dvx"
|
||||||
server = "http://192.168.100.4:1323"
|
server = "https://192.168.100.16:5031"
|
||||||
token = "test123"
|
token = ""
|
||||||
|
|
||||||
ultra_counter = 0
|
ultra_counter = 0
|
||||||
ultra_threshold = 3
|
ultra_threshold = 3
|
||||||
@ -66,9 +66,9 @@ def send_req(opened: bool):
|
|||||||
r = urequests.post(f"{server}/write",
|
r = urequests.post(f"{server}/write",
|
||||||
headers={"Authorization": token, "Content-Type": "application/json"},
|
headers={"Authorization": token, "Content-Type": "application/json"},
|
||||||
data=raw)
|
data=raw)
|
||||||
|
print(f"State updated [{r.status_code}]")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error occurred: {e}")
|
print(f"Error occurred: {e}")
|
||||||
print(f"State updated [{r.status_code}]")
|
|
||||||
|
|
||||||
|
|
||||||
def ultra():
|
def ultra():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user