aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/json.d/onload-daemon-standalone.json
blob: ab646fd4b866b804d0ed684caa5cc690079c6218 (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
70
71
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"
                        }
                    }
                }
            ]
}