fix: clés JSON sideband alignées sur payload Pi Zero
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 <noreply@anthropic.com>
This commit is contained in:
@ -81,8 +81,8 @@ def draw_overlay(frame: np.ndarray) -> np.ndarray:
|
|||||||
h_res = stats.get("height", "?")
|
h_res = stats.get("height", "?")
|
||||||
fps = stats.get("fps", "?")
|
fps = stats.get("fps", "?")
|
||||||
enc = stats.get("encoder", "?")
|
enc = stats.get("encoder", "?")
|
||||||
temp = stats.get("temp", "?")
|
temp = stats.get("temp_c", "?")
|
||||||
cpu = stats.get("cpu", "?")
|
cpu = stats.get("cpu_pct", "?")
|
||||||
throttled = stats.get("throttled", False)
|
throttled = stats.get("throttled", False)
|
||||||
throttle_str = "THROTTLED" if throttled else "ok"
|
throttle_str = "THROTTLED" if throttled else "ok"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user