update
This commit is contained in:
@ -1,10 +1,8 @@
|
||||
import asyncio
|
||||
import logging
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
import pyautogui
|
||||
import pytesseract
|
||||
import requests
|
||||
import yaml
|
||||
|
||||
@ -66,7 +64,7 @@ def get_status():
|
||||
if color_50_hex != "#0db318":
|
||||
offline_devices.append("报警主机50")
|
||||
|
||||
logging.info(offline_devices)
|
||||
print(offline_devices)
|
||||
|
||||
for offline_device in offline_devices:
|
||||
push_json = {
|
||||
@ -80,7 +78,7 @@ def get_status():
|
||||
"http://192.168.20.115:8000/ipaasuat/engine_company/anycross/trigger/callback/MmRhZTE4OTRiYjVkZDQ5YWNmOGRmZDI0NjQ1MTBlODUw",
|
||||
json=push_json,
|
||||
)
|
||||
logging.info(resp.content.decode("utf-8"))
|
||||
print(resp.content.decode("utf-8"))
|
||||
|
||||
|
||||
def capture_loop():
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "hik-uptime"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
description = ""
|
||||
authors = ["quantulr <35954003+quantulr@users.noreply.github.com>"]
|
||||
readme = "README.md"
|
||||
|
Reference in New Issue
Block a user