Disable elements of GUI when running jobs



  • Facility to disable elements within the Duet web interface whilst a job is inprogress. To lock / hide interface components whilst executing a job.

    Things that you may want to prevent are
    Forbid resets if you look at files like system.g and don't hit X
    Forbid execution of specific user defined macro's

    Basically anything that can accidentally / inadvertently kill a job in progress.

    OR - is it possible to use conditional gcode in user defined macro's to abort macro if a job is underway - could be a temporary solution but haven't figured it out. I can see that the gcode can be conditional but I can't see a way to make gcode interact with the interface.



  • @Garfield said in Disable elements of GUI when running jobs:

    Forbid resets if you look at files like system.g and don't hit X

    It should ALWAYS ask Y/N to reset.



  • Sure and how many times have you messed up .... I know I have .... blank mind / not thinking / forgot a job was running / too much Vodka gone from the bottle ....

    This is the Apollo 13 thing where he put the sticker on the jettison switches saying 'NO' ... it is alltogether too easy to have a momentary lapse - at least for me.



  • Fair enough.

    Regarding the macros, yes, something like this:

    if state.status == "idle"
      remainder of macro commands
      note the indent
    

Log in to reply