Hi, I'm trying to implement a system to automatically turn my printers on when they receive a job. I'll be using a Raspberry Pi relay hat which works via GPIO, so I've set up a GPIO command using the "set output on/off" function for the relevant pin.
When I run the command in the console or via the menu, I can see on the Pi that it correctly controls the pin state. However I'm struggling to get it to work when I send a job to the printer. If I put the command in the "Run before job" field of the Event Dependent G-codes for the printer, it seems like it only runs when the printer actually starts the job, which only happens when the printer is already powered on.
Is there a way to run a server command as soon as the job is added to the queue, please?