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