From 4c24c322907a6d67ad4e1f6822f500309cf3c0f9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 16 Jul 2026 09:59:37 -0400 Subject: [PATCH] Update transmit.py os_status to detect trixie --- transmit.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/transmit.py b/transmit.py index 536d2d23..3ad82534 100644 --- a/transmit.py +++ b/transmit.py @@ -174,7 +174,7 @@ def camera_photo(): system("sudo rm /home/pi/CubeSatSim/camera_out.jpg") stored_image = False try: - if os_status == "bookworm": + if os_status == "bookworm" or os_status == "trixie": system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") else: system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") @@ -907,8 +907,10 @@ if __name__ == "__main__": os_status = e.stdout.strip() print(f"Output of the command (stdout): {e.stdout}") # print(f"Error output of the command (stderr): {e.stderr}") - if os_status != "VERSION_CODENAME=bullseye": + if os_status == "VERSION_CODENAME=bookworm": os_status = "bookworm" + elif os_status == "VERSION_CODENAME=trixie": + os_status = "trixie" else: os_status = "bullseye" print (os_status) @@ -1175,7 +1177,7 @@ if __name__ == "__main__": # from pysstv.sstv import SSTV # camera = PiCamera() print("Testing for camera") - if os_status == "bookworm": + if os_status == "bookworm" or os_status == "trixie": system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") else: system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256")