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