diff options
Diffstat (limited to 'conf.d/project/json.d/onload-daemon-sample.json')
-rw-r--r-- | conf.d/project/json.d/onload-daemon-sample.json | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/conf.d/project/json.d/onload-daemon-sample.json b/conf.d/project/json.d/onload-daemon-sample.json new file mode 100644 index 0000000..cb6ca55 --- /dev/null +++ b/conf.d/project/json.d/onload-daemon-sample.json @@ -0,0 +1,69 @@ +{ + "$schema": "ToBeDone", + "metadata": { + "label": "sample-standalone-control", + "info": "Minimal Standalone Controller Config", + "name": "afb-sample-controller", + "version": "1.0" + }, + "onload": [{ + "label": "onload-default", + "info": "onload initialisation config", + "actions": + { + "label": "control-init", + "lua": "_Sample_Controller_Init", + "args": { + "xxxx": 1234, + "yyyy": "Bien le bonjours à vous", + "zzzz": "simple-evt" + } + } + }], + "controls": + [ + { + "label": "Button-Happy", + "actions": { + "label": "Action Happy", + "lua": "_Button_Happy", + "args": { + "button": 5678 + } + } + }, { + "label": "Button-UnHappy", + "actions": { + "label": "Action Unhappy", + "lua": "_Button_UnHappy", + "args": { + "button": "abcd" + } + } + } + ], + "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" + } + } + } + ] +} + |