summaryrefslogtreecommitdiffstats
path: root/conf.d/project/json.d/onload-daemon-sample.json
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-23 01:00:20 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-23 01:00:20 +0200
commitc74ba24e19a5db52d237628aff012f9fb372f580 (patch)
treec60d2919e1c6941e95931231bf5f75720f9c959d /conf.d/project/json.d/onload-daemon-sample.json
parentc254a5b100b9ea011dc35b4079ce184e5c842135 (diff)
Restore Basic HTML5 testing Scenario as a Standalone Controller
Diffstat (limited to 'conf.d/project/json.d/onload-daemon-sample.json')
-rw-r--r--conf.d/project/json.d/onload-daemon-sample.json69
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"
+ }
+ }
+ }
+ ]
+}
+