HiHave you tried running from the CLI instead of running in Thonny? It seems like you are not using a virtual environment so Thonny may or may not use the same Python version and dependencies. Since Bookworm virtual environments are the way to go.So it works in Thonny, does not work when run @reboot in crontab.
You can also insert a few print statements in the volume up/down functions to check if the functions are called correctly, and if there are errors logged. Try printing the actual volume level for example, and see if they show up in the log file.
I did try running my program from the command line using python3 and all works as expected both from command line and thonny.
Also confirmed functions are executing using print statements and I can also see the volume changing in the taskbar of the GUI.
Statistics: Posted by Scooter999 — Sat Nov 09, 2024 3:11 pm