Jump to content
  • 0

Caselights macro to turn lights off after a set time.


Mcrcheli

Question

I’m looking for a way to set the case light single color LED strip to go off after the printer starts or after the lights are turned on. I have searched and searched and can’t seem to find a way to do it. I have them set to turn on at start up then a macro to toggle on and off. Any help would be appreciated. Yes I am pretty new to Klipper but am catching on to the macros quickly after setting up my Euclid probe.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You can use the delayed_gcode and update_delayed_gcode commands to start a time delayed macro call.

Here's the references in Klipper's docs:

https://www.klipper3d.org/Command_Templates.html?h=delayed#delayed-gcodes

https://www.klipper3d.org/G-Codes.html?h=delay#delayed_gcode

https://www.klipper3d.org/Config_Reference.html?h=dela#delayed_gcode

 

  • Like 2
Link to comment
Share on other sites

  • 0

Might be a daft question but when you say "the printer starts" do you mean when it starts printing? If that is the case, the existing "PRINT_START" macro is probably a good starting point. As long as you call that "PRINT_START" macro as part of your slicer gcode startup routine then anything you put in there will be executed when the printer starts printing. Again being daft, I'm not quite sure what you mean by "after the lights are turned on", which "lights"? Again modifying whatever macro  turns those lights on would be a good starting point. For clarity, klipper macros, themselves, can call other klipper macros.

If I've misunderstoof then just say 😃

Link to comment
Share on other sites

  • 0

Sorry I was not clear. When I power on the printer the “caselight” powers on. I would like for the “caselight’ to turn off after 5 minutes. I would like this same 5 minute timer to start whenever I activate the “caselight on” macro from within Mainsail interface. Thanks for your help.

Edited by Mcrcheli
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...