From 2c3206fc068167030ae0be65b2b69158228a0338 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sun, 12 Jun 2022 19:56:00 +0300 Subject: [PATCH] verbose at emerg Signed-off-by: HeshamTB --- sql_app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sql_app/main.py b/sql_app/main.py index 0f3bfd6..66669ba 100644 --- a/sql_app/main.py +++ b/sql_app/main.py @@ -403,6 +403,7 @@ def polling_method_for_room_monitor(request: schemas.MonitorUpdateReadings, if request.temperature >= EMERG_TEMP or request.smoke_sensor_reading >= EMERG_SMOKE: print("********EMERGENCY AT %s********" % device.description) door : models.IotEntity = device.door + print("********OPENING DOOR %s ID:%d********" % (door.description, door.id)) crud.set_open_door_request(db, door.id, T_HOUR_SEC) crud.record_emergancy_entry(db, request, device.id) # Call into a hook to notify with room and people