<filename>settings.py
SERVO_ROTATION_DURATION = 1.0 # seconds
BUZZ_DURATION = 4.0 # seconds
# servo angles: [2.5 - 10.5] = [0 - 180 deg]
SERVO_LOCKED_POSITION = 8
SERVO_UNLOCKED_POSITION = 3.5
PERSISTENT_STATE_FILE = "/home/pi/DIY-Smart-Door-Lock/_persistent_state.json"
LOCKED_STATE_KEY = "locked"
DELAYED_LOCK_DELAY = 20 # seconds
StarcoderdataPython