This commit is contained in:
eric
2026-03-26 05:35:31 -05:00
parent bc6e550b95
commit cbe4585ff4
14 changed files with 78 additions and 41 deletions

View File

@@ -2,6 +2,7 @@
from __future__ import annotations
import platform
import socket
import subprocess
from typing import Any
@@ -39,3 +40,14 @@ def gpu_status_payload() -> dict[str, Any]:
"nvidia_detected": nv,
"nvenc_available": enc,
}
def machine_summary_payload() -> dict[str, Any]:
"""供远程 App 遥测:本机标识与系统信息。"""
return {
"hostname": socket.gethostname(),
"os": platform.system(),
"os_release": platform.release(),
"machine": platform.machine(),
"python": platform.python_version(),
}