Name | triggercmd JSON |
Version |
0.0.27
JSON |
| download |
home_page | None |
Summary | Python agent for TRIGGERcmd cloud service. |
upload_time | 2024-09-08 22:40:49 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
triggercmd
alexa
echo-dot
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://www.triggercmd.com/forum/topic/30/list-of-ways-to-trigger-your-commands) 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
Raw data
{
"_id": null,
"home_page": null,
"name": "triggercmd",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "triggercmd, alexa, echo-dot",
"author": null,
"author_email": "Russell VanderMey <russell@triggercmd.com>",
"download_url": "https://files.pythonhosted.org/packages/ae/ef/e7f2de1d4e79099e08c300270b7a58c11a76aaaf8621835809d549050549/triggercmd-0.0.27.tar.gz",
"platform": null,
"description": "# TRIGGERcmd Python Package\r\n\r\nFor the full TRIGGERcmd agent, visit https://triggercmd.com.\r\n\r\nUse this package to listen for triggers sent to a computer in your TRIGGERcmd account.\r\n\r\nSend triggers with Amazon Alexa, Google Assistant, IFTTT, Zapier, Smart Things, etc. See [this page](https://www.triggercmd.com/forum/topic/30/list-of-ways-to-trigger-your-commands) for more ways.\r\n\r\n## Usage:\r\n\r\n```\r\nimport json\r\nfrom triggercmd import agent\r\n\r\ncomputer_id = (your triggercmd computer id)\r\ntoken = (your triggercmd token)\r\n\r\ndef my_function(msg):\r\n print(msg)\r\n message = json.loads(msg)\r\n print(\"Received this trigger:\", message['trigger'], \"and these parameters:\", message['params'])\r\n\r\nagent.connect(computer_id, token, my_function)\r\n```\r\n\r\n## Example output:\r\n\r\n```\r\nConnected\r\n{\"trigger\":\"Notepad\",\"id\":\"13123391234567891acbf124\",\"params\":\"on\"}\r\nReceived this trigger: Notepad and these parameters: on\r\n{\"trigger\":\"Calculator\",\"id\":\"13123391234567891acbf123\",\"params\":\"on\"}\r\nReceived this trigger: Calculator and these parameters: on\r\n{\"trigger\":\"Calculator\",\"id\":\"13123391234567891acbf123\",\"params\":\"off\"}\r\nReceived this trigger: Calculator and these parameters: off\r\n```\r\n\r\n## Based on this project:\r\nhttps://github.com/gilsdav/python_sails_websocket_client/tree/master\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Python agent for TRIGGERcmd cloud service.",
"version": "0.0.27",
"project_urls": {
"homepage": "https://triggercmd.com",
"repository": "https://github.com/rvmey/triggercmd-python-agent"
},
"split_keywords": [
"triggercmd",
" alexa",
" echo-dot"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4d4048a59e6cbb13d153b414bfd2b3cc1844e14b341b6c15025b01661dcc6d2f",
"md5": "83d1331b281a585b04b48a9fe7384c36",
"sha256": "68accd66043684ad4fc4902a40d4582d922895f675485292ee6cdd69ef5a38c4"
},
"downloads": -1,
"filename": "triggercmd-0.0.27-py3-none-any.whl",
"has_sig": false,
"md5_digest": "83d1331b281a585b04b48a9fe7384c36",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 18050,
"upload_time": "2024-09-08T22:40:47",
"upload_time_iso_8601": "2024-09-08T22:40:47.794165Z",
"url": "https://files.pythonhosted.org/packages/4d/40/48a59e6cbb13d153b414bfd2b3cc1844e14b341b6c15025b01661dcc6d2f/triggercmd-0.0.27-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "aeefe7f2de1d4e79099e08c300270b7a58c11a76aaaf8621835809d549050549",
"md5": "6ccba0e3dbbf7d0d5fd15da6525fffde",
"sha256": "e0c4d1b43a38903ff50627f0f30c7ef936772b63384cc551cafc2a18be5c1c2f"
},
"downloads": -1,
"filename": "triggercmd-0.0.27.tar.gz",
"has_sig": false,
"md5_digest": "6ccba0e3dbbf7d0d5fd15da6525fffde",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 17518,
"upload_time": "2024-09-08T22:40:49",
"upload_time_iso_8601": "2024-09-08T22:40:49.503116Z",
"url": "https://files.pythonhosted.org/packages/ae/ef/e7f2de1d4e79099e08c300270b7a58c11a76aaaf8621835809d549050549/triggercmd-0.0.27.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-08 22:40:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rvmey",
"github_project": "triggercmd-python-agent",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "triggercmd"
}