The Run Script option allows you to extend the capabilities of a Trigger beyond the preset remote commands listed in the What To Do dropdown. While the default list covers the most commonly used remote actions, Run Script gives you the flexibility to automate more customized behaviors using a Python script.
Setting Up Your Trigger
Navigate to Alerts & Triggers from the left hand navigation, then click "Add Trigger" to open the modal.
- Name and configure your trigger to meet the criteria (step 1) and reflect the condition you want to action in response to (step 2).
- In the "What to Do" section, select "Run Script" from the dropdown.
- Finally, paste a file path to a Python script that is saved on the Pickaxe computer.
Tip: We recommend this can be set to run each time the Foreman trigger criteria is met. The script could then be used to automate a remote command such as using the "Resume Mining" command enabled by custom firmware.
If you'd like access to our API documentation to see the list of available commands that can be issued to miners, please reach out to our customer success team directly for further assistance.
Comments
0 comments
Please sign in to leave a comment.