Automatic script execution on startup?
-
Is there a way to automatically start a script when turning on the printer?
I would like the printer to automatically calibrate itself when I turn it on.
I could of course do it in config.g, but I would like to keep that as clean as possible and reserve it for configuration only.
Is there a way to automatically run a script on startup other than using config.g?
-
@0nn0 You can use
dsf-config.g
for that. It is executed whenever the DSF plugin services have been started. -
@0nn0 you could but i wouldn't advise it. you'd have no way to stop the machine homing if you've had a power cut. you may be half way through a print resulting in the printer being in an unsafe state
-
@jay_s_uk Yes, that is true for config.g. Is there any way to only trigger it when the RPi boots? That would be good enough to ensure a safe state.
-
@0nn0 You can use
dsf-config.g
for that. It is executed whenever the DSF plugin services have been started. -
-
@chrishamm Thanks for your help!