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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alfonslistener-0.0.2.tar.gz
(1.5 kB
view details)
File details
Details for the file alfonslistener-0.0.2.tar.gz.
File metadata
- Download URL: alfonslistener-0.0.2.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbc1314bb0b7a74e7bdaf24cfb7cb6b9f4bb73701497ebd20c01265ae320f2ec
|
|
| MD5 |
9043d3d6a96c0d48b73656ad81fcc036
|
|
| BLAKE2b-256 |
f8f1805f6ac231122086cedadae493c7b6b80e7b2e51c16573c5e11270e9ee6b
|