mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
bitwarden
This commit is contained in:
@@ -123,12 +123,15 @@ hm = socket.gethostbyaddr(BACKUP_HOST)
|
|||||||
hostdown = True
|
hostdown = True
|
||||||
n=0
|
n=0
|
||||||
|
|
||||||
data = {"camera":"door_camera"}
|
try:
|
||||||
url = "http://m-server.home.lan:8123/api/webhook/-0eWYFhSTzdusAO8jwQS9t1AT"
|
data = {"camera":"door_camera"}
|
||||||
|
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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user