How To: Run Script Trigger Action

Updated

Use the Run Script action to run your own Python script when a trigger fires. This is useful when you need something the built-in actions don't cover, for example a firmware-specific command.

Before You Start

  • You need the Edit Triggers permission.
  • Save your script on the computer that runs the Pickaxe for those miners. The trigger runs it there.
  • If your script calls Foreman, use the public API. See Quick Guide: Foreman API.

Steps

  1. Go to Alerts & Triggers and click Add Trigger.
  2. Set Miners to Check and What to Check For as usual.
  3. Under What to Do, choose Run Script.
  4. Enter the full file path of the Python script on the Pickaxe computer.
  5. Click Add Trigger.

Check It Works

Have your script write to a log file when it runs. Test it with a trigger scoped to one miner, then check the log and the trigger's history.

Need Help?

If you're not sure what your script receives when it runs, or how to call a firmware-specific command, contact Support with what you're trying to automate.

Last verified: November 19, 2026

Was this article helpful?

0 out of 1 found this helpful

Have more questions? Submit a request

Can't find what you're looking for?

Our support team can help with setup, hardware and billing questions.

Contact Support