alfonslistener-0.0.2
توضیحات
Package to run a script when a packet is published to a topic on Alfons
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | alfonslistener-0.0.2 |
| نام | alfonslistener |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anton Lindroth |
| ایمیل نویسنده | ntoonio@gmail.com |
| آدرس صفحه اصلی | https://github.com/ntoonio/AlfonsListener |
| آدرس اینترنتی | https://pypi.org/project/alfonslistener/ |
| مجوز | - |
# Alfons Listener
Simple program for listening on a topic and when it's received running a script.
## Setup
### config.yaml
info:
server: "host:port"
username: "username"
password: "iot"
ssl: True
commands:
- topic: "topic"
script: "script-to-run"
- topic: "topic2"
python: "module:function"
script: "script-to-run2"
### Creating a daemon
$ ./service_install.sh
If you want to install the service under a name other than "alfonslistener" you can change the `name` variable on the top of the file.
نحوه نصب
نصب پکیج whl alfonslistener-0.0.2:
pip install alfonslistener-0.0.2.whl
نصب پکیج tar.gz alfonslistener-0.0.2:
pip install alfonslistener-0.0.2.tar.gz