Python agent for TRIGGERcmd cloud service.
Project description
TRIGGERcmd Python Package
For the full TRIGGERcmd agent, visit https://triggercmd.com.
Use this package to listen for triggers sent to a computer in your TRIGGERcmd account.
Send triggers with Amazon Alexa, Google Assistant, IFTTT, Zapier, Smart Things, etc. See this page for more ways.
Usage:
import json
from triggercmd import agent
computer_id = (your triggercmd computer id)
token = (your triggercmd token)
def my_function(msg):
print(msg)
message = json.loads(msg)
print("Received this trigger:", message['trigger'])
agent.connect(computer_id, token, my_function)
Example output:
Connected
{"trigger":"Calculator","id":"13123391234567891acbf123"}
Received this trigger: Calculator
{"trigger":"Notepad","id":"13123391234567891acbf124"}
Received this trigger: Notepad
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
triggercmd-0.0.17.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for triggercmd-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927d58eaab6ec8ae358e4eb9ff465d10dd81db3fc4ceb0512e051bcf86eccae8 |
|
MD5 | e394dbf5c8805603c1ad4459b1e8621c |
|
BLAKE2b-256 | ad77759a0e111d72fd7c27e5ad1fa6aa06904f3a39e437b233b019be33d3d293 |