If you are on Bookworm, was the Python script created inside a virtual environment? If so you need to activate it in the CRON job. Here's an example https://gist.github.com/jericbas/faca7 ... a7d0547adbI am using 64-bit lite (Bookworm), I am using the OS largely over SSH. I am using a RPI 4B.The guide to all things startup is here viewtopic.php?t=314455 thanks to thagrol.
Help us by posting which OS version - Raspberry Pi OS (64-bit) with desktop “Bookworm” or other? you are using.
And is it a Pi4 or Pi5 etc.
To create a log file when run via cron - here is an old example of mine for a python script:Code:
@reboot python3 -u /home/pi/scripts/fcamlib.py >> /home/pi/scripts/fcamlib.log 2>&1
Statistics: Posted by DS256 — Thu Aug 29, 2024 10:22 pm