summaryrefslogtreecommitdiffstats
path: root/conf.d/project/json.d/onload-daemon-sample.json
blob: cb6ca555030f1900ba17ffcc173919f1a762ce13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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"
                        }
                    }
                }
            ]
}