Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

triggercmd-0.0.17-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file triggercmd-0.0.17.tar.gz.

File metadata

  • Download URL: triggercmd-0.0.17.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for triggercmd-0.0.17.tar.gz
Algorithm Hash digest
SHA256 290c85b6c73e1223aede6205d284b42eb5e36c73c86e51912b5ce806027ff4f3
MD5 321af805e6611cd837137dd65acdbc17
BLAKE2b-256 e7bbdda78a29b298a7560c496b7f0ad4f3762d37676ad6ae8eed3a3f9abd483b

See more details on using hashes here.

File details

Details for the file triggercmd-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: triggercmd-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for triggercmd-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 927d58eaab6ec8ae358e4eb9ff465d10dd81db3fc4ceb0512e051bcf86eccae8
MD5 e394dbf5c8805603c1ad4459b1e8621c
BLAKE2b-256 ad77759a0e111d72fd7c27e5ad1fa6aa06904f3a39e437b233b019be33d3d293

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page