Skip to main content

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'], "and these parameters:", message['params'])

agent.connect(computer_id, token, my_function)

Example output:

Connected
{"trigger":"Notepad","id":"13123391234567891acbf124","params":"on"}
Received this trigger: Notepad and these parameters: on
{"trigger":"Calculator","id":"13123391234567891acbf123","params":"on"}
Received this trigger: Calculator and these parameters: on
{"trigger":"Calculator","id":"13123391234567891acbf123","params":"off"}
Received this trigger: Calculator and these parameters: off

Based on this project:

https://github.com/gilsdav/python_sails_websocket_client/tree/master

Release files for triggercmd 0.0.36

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for triggercmd 0.0.36
File Size Uploaded
triggercmd-0.0.36.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for triggercmd 0.0.36
File Interpreter ABI Platform
triggercmd-0.0.36-py3-none-any.whl Python 3 none any Details

Total release size: 35.6 kB

Release files / triggercmd-0.0.36.tar.gz

Download URL triggercmd-0.0.36.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
932e94d22028c5031ec21fa007b8011bad4fbb152738e35ef768a8ea2ca01905
BLAKE2b-256 checksum
How to use checksums
6a9291794ea95d7a37c2c8f2a416113cd72fe936d15f7f245bc27c48a116e851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / triggercmd-0.0.36-py3-none-any.whl

Download URL triggercmd-0.0.36-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e54b6f27f4884a240d23e86a68d04e6017cb87614ea341ce5b4d36c4cec874fe
BLAKE2b-256 checksum
How to use checksums
ea3458b7ffc1574ce5d25326a361742a8275e2ef7cc63cf51f66afc4e869beda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.36 This release

2 release files

0.0.35

2 release files

0.0.34

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.31

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.23

2 release files

0.0.17

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page