From 09a789f20c3d08401b7fa15e37e45f408fd19d39 Mon Sep 17 00:00:00 2001 From: nicoboy Date: Tue, 9 Jun 2026 18:10:13 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20cl=C3=A9s=20JSON=20sideband=20align?= =?UTF-8?q?=C3=A9es=20sur=20payload=20Pi=20Zero?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit temp → temp_c, cpu → cpu_pct pour correspondre exactement au format {ts, width, height, fps, encoder, bitrate_kbps, temp_c, cpu_pct, throttled, uptime_s} émis par le Pi Zero. Co-Authored-By: Claude Sonnet 4.6 --- receive_cam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receive_cam.py b/receive_cam.py index c1d92f2..e1c9473 100644 --- a/receive_cam.py +++ b/receive_cam.py @@ -81,8 +81,8 @@ def draw_overlay(frame: np.ndarray) -> np.ndarray: h_res = stats.get("height", "?") fps = stats.get("fps", "?") enc = stats.get("encoder", "?") - temp = stats.get("temp", "?") - cpu = stats.get("cpu", "?") + temp = stats.get("temp_c", "?") + cpu = stats.get("cpu_pct", "?") throttled = stats.get("throttled", False) throttle_str = "THROTTLED" if throttled else "ok"