Package to run a script when a packet is published to a topic on Alfons
Project description
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.
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(1.5 kB
view hashes)