bitwarden

This commit is contained in:
jaydee
2024-12-09 22:55:35 +01:00
parent 7858a57378
commit 9d2826eb7a

View File

@@ -123,12 +123,15 @@ hm = socket.gethostbyaddr(BACKUP_HOST)
hostdown = True hostdown = True
n=0 n=0
try:
data = {"camera":"door_camera"} data = {"camera":"door_camera"}
url = "http://m-server.home.lan:8123/api/webhook/-0eWYFhSTzdusAO8jwQS9t1AT" url = "http://m-server.home.lan:8123/api/webhook/-0eWYFhSTzdusAO8jwQS9t1AT"
x = requests.post(url, data) x = requests.post(url, data)
print(x.text) print(x.text)
except:
pass
while hostdown: while hostdown:
#HOST_UP = os.system(f"ping -c 1 -w 2 omv.home.lan") == 0 #HOST_UP = os.system(f"ping -c 1 -w 2 omv.home.lan") == 0
cmnd = f"ping -c 1 -w 2 {BACKUP_HOST}" cmnd = f"ping -c 1 -w 2 {BACKUP_HOST}"