Run python script with on of the automatic shutdown scripts

Hi There

I know there are two Plugins for automatic shutdown:


And there is my own python script, signal.py. Now I would like to run this script together with one of the plugins but which one is the best for the job and how?

Thank you

1 Like

hello
I've same concerns
please help

You guys can do this without a plugin. You just need to setup the script to run in config.yaml events section.

https://docs.octoprint.org/en/master/configuration/config_yaml.html#events

More than likely you don't have any there now so you would have to add the whole section.

events:
  subscriptions:
    - event: Shutdown
      command: "/full/path/to/script.py'"
      type: system