Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Automatic script execution on startup?

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    3
    5
    256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 0nn0undefined
      0nn0
      last edited by

      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?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @0nn0
        last edited by

        @0nn0 You can use dsf-config.g for that. It is executed whenever the DSF plugin services have been started.

        Duet software engineer

        0nn0undefined 1 Reply Last reply Reply Quote 1
        • jay_s_ukundefined
          jay_s_uk @0nn0
          last edited by

          @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

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          0nn0undefined 1 Reply Last reply Reply Quote 0
          • 0nn0undefined
            0nn0 @jay_s_uk
            last edited by

            @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.

            chrishammundefined 1 Reply Last reply Reply Quote 0
            • chrishammundefined
              chrishamm administrators @0nn0
              last edited by

              @0nn0 You can use dsf-config.g for that. It is executed whenever the DSF plugin services have been started.

              Duet software engineer

              0nn0undefined 1 Reply Last reply Reply Quote 1
              • 0nn0undefined 0nn0 has marked this topic as solved
              • 0nn0undefined
                0nn0 @chrishamm
                last edited by

                @chrishamm Thanks for your help! 🙂

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA