diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-07 18:37:42 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-07 18:37:42 +0100 |
commit | 7cd8becb29c96a06f0c1b0cfb623ed5e98911613 (patch) | |
tree | 9f4e1d9479a4f8470b8575f62fe62c5fc2804efe /README.md | |
parent | e9f24b4296b9711c18b5c5a1e14cc5722e302192 (diff) |
initial hack sesh
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..79cddfb --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +<!-- +SPDX-FileCopyrightText: 2020 Ethel Morgan + +SPDX-License-Identifier: CC0-1.0 +--> + +# Dispatch Server + +## Config + +For example, + +```json +{ + "actions": { + "update Catbus UI": { + "triggers": [ + { + "url": "/gitolite-repo-updated", + "formValues": { + "repo": "catbus-web-ui" + } + } + ], + "outputs": [ + { + "url": "https://build.eth.moe/deploy", + "formValues": { + "project": "catbus-web-ui" + } + } + ] + }, + "turn lights on": { + "triggers": [ + { + "url": "/living-room/lights-on", + "formValues": { + "power": "on" + } + } + ], + "outputs": [ + { + "mqtt": "tcp://catbus.eth.moe/home/living-room/sofa-light/power", + "value": "on" + }, + { + "mqtt": "tcp://catbus.eth.moe/home/living-room/front-light/power", + "value": "on" + } + ] + } + } +} +``` |