Update doorbell.py
This commit is contained in:
@@ -21,7 +21,8 @@ while True:
|
||||
try:
|
||||
response = urllib.request.urlopen('http://192.168.178.51/bell/on', timeout=5).read().decode('utf-8')
|
||||
except Exception:
|
||||
logging.exception("Could not ring doorbell")
|
||||
logging.error("Could not ring doorbell")
|
||||
# logging.exception("Could not ring doorbell")
|
||||
time.sleep(300)
|
||||
else:
|
||||
logging.info(data)
|
||||
|
||||
Reference in New Issue
Block a user