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
- Go to Alerts & Triggers and click Add Trigger.
- Set Miners to Check and What to Check For as usual.
- Under What to Do, choose Run Script.
- Enter the full file path of the Python script on the Pickaxe computer.
- 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