"""监控域 API:状态/运行控制/设备操作/远程看屏。""" import time import threading import re import subprocess import shlex from concurrent.futures import ThreadPoolExecutor, as_completed from flask import (Blueprint, jsonify, request, Response, render_template, render_template_string) from flask_login import login_required # /locate 定位页要把 serial 拼进 HTML,而 render_template_string 的模板名是 # "