Just in case anyone else comes across this thread, the problem was actually timing. At boot mpd is started and the cron @reboot line fires as well, starting my code. It transpires that when my code ran mpd had not finished starting, so my code failed with 'Cannot connect to mpd'. A short delay starting my code fixed the problem. There is probably a more elegant solution but that fixed it for me.
Statistics: Posted by micksulley — Wed Dec 13, 2023 9:53 pm