import json, subprocess, sys, os cfg = { "ip": "192.168.8.241", "port": 7681, "httpPort": 80, "user": "admin", "pass": "ky666888", "channel": 11, "start": "2026-07-29T21:35:00", "end": "2026-07-29T21:35:25", "speed": 4, "output": os.path.join(os.path.dirname(__file__), "py_ch11_test.ps") } script = os.path.join(os.path.dirname(__file__), "hik_download_debug.py") subprocess.run([sys.executable, script, json.dumps(cfg)], timeout=180)