TRIGGERcmd is a cloud service that allows you to securely and remotely run commands on your computers. Your commands could install updates, open your garage, run a script, or anything else you decide.
Runs a command on a computer. Refer to the TRIGGERcmd Forum to learn more.
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
TRIGGERcmd is a cloud service that allows you to execute commands on your computers remotely through a REST API or via voice command with smart home integrators. With Pipedream's integration capabilities, you can create custom workflows to automate tasks across various apps and services. For instance, you could set up a serverless workflow to trigger scripts on your computer when specific events occur in other apps, such as receiving an email, a new GitHub commit, or a scheduled timer.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
triggercmd: {
type: "app",
app: "triggercmd",
}
},
async run({steps, $}) {
const data = {
"computer": `insert_computer_name_here`,
"trigger": `insert_trigger_name_here`,
}
return await axios($, {
method: "post",
url: `https://www.triggercmd.com/oauth/pipedream`,
headers: {
Authorization: `Bearer ${this.triggercmd.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.
This includes installing PyPI packages, within your code without having to manage a requirements.txt
file or running pip
.
Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:
def handler(pd: "pipedream"):
# Reference data from previous steps
print(pd.steps["trigger"]["context"]["id"])
# Return data for use in future steps
return {"foo": {"test":True}}