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