summaryrefslogtreecommitdiffstats
path: root/conf.d/project/config.d/onload-daemon-standalone.json
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-18 01:43:18 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-18 01:43:18 +0200
commit082d083a96f4be23ea6f54fc26eeaece7cfa4507 (patch)
treea50c9482b4bb63136a4d5b7a8ef61cfbe218a9a3 /conf.d/project/config.d/onload-daemon-standalone.json
parenta7d41a6fa1e29d800ce8ac9e95e8f943814463e8 (diff)
Documented Controller standalone mode and provided a sample config.
Diffstat (limited to 'conf.d/project/config.d/onload-daemon-standalone.json')
-rw-r--r--conf.d/project/config.d/onload-daemon-standalone.json72
1 files changed, 72 insertions, 0 deletions
diff --git a/conf.d/project/config.d/onload-daemon-standalone.json b/conf.d/project/config.d/onload-daemon-standalone.json
new file mode 100644
index 0000000..de52c22
--- /dev/null
+++ b/conf.d/project/config.d/onload-daemon-standalone.json
@@ -0,0 +1,72 @@
+{
+ "$schema": "ToBeDone",
+ "metadata": {
+ "label": "sample-standalone-control",
+ "info": "Minimal Standalone Controller Config",
+ "version": "1.0"
+ },
+ "onload": [{
+ "label": "onload-default",
+ "info": "onload initialisation config",
+ "actions":
+ {
+ "label": "control-init",
+ "lua": "_Control_Init"
+ }
+ }],
+ "controls":
+ [
+ {
+ "label": "Button-1",
+ "actions": {
+ "label": "Action on Button One",
+ "lua": "_Button_Press",
+ "args": {
+ "button": 1
+ }
+ }
+ }, {
+ "label": "Button-1",
+ "actions": {
+ "label": "Action on Button Two",
+ "lua": "_Button_Press",
+ "args": {
+ "button": 2
+ }
+ }
+ }, {
+ "label": "Button-1",
+ "actions": {
+ "label": "Action on Button Three",
+ "lua": "_Button_Press",
+ "args": {
+ "button": 3
+ }
+ }
+ }
+ ],
+ "events":
+ [
+ {
+ "label": "Event1",
+ "actions": {
+ "label": "Action Event 1",
+ "lua": "_Event_Received",
+ "args": {
+ "evtname": "xxx"
+ }
+ }
+ },
+ {
+ "label": "Event2",
+ "actions": {
+ "label": "Action Event 2",
+ "lua": "_Event_Received",
+ "args": {
+ "evtname": "yyy"
+ }
+ }
+ }
+ ]
+}
+