summaryrefslogtreecommitdiff
path: root/testenv/v2-hdmi-rpi4.override.yaml
blob: f8a301f102f5097a23b57eab9031a2f0be291b58 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
kvmd:
    server:
        unix_mode: 0666

    atx:
        device: /dev/kvmd-gpio

    hid:
        keyboard:
            device: /dev/null
        mouse:
            device: /dev/null
#            absolute_win98_fix: true
#        mouse_alt:
#            device: /dev/null
        noop: true

    msd:
        remount_cmd: /bin/true

    streamer:
        desired_fps: 30
        max_fps: 40
        cmd:
            - "/usr/bin/ustreamer"
            - "--device=/dev/kvmd-video"
            - "--quality={quality}"
            - "--desired-fps={desired_fps}"
            - "--resolution=800x600"
            - "--last-as-blank=0"
            - "--unix={unix}"
            - "--unix-rm"
            - "--unix-mode=0666"
            - "--exit-on-parent-death"
            - "--process-name-prefix={process_name_prefix}"
            - "--notify-parent"
            - "--no-log-colors"

    gpio:
        drivers:
            __gpio__:
                device: /dev/kvmd-gpio
            __v4_locator__:
                type: locator
                device: /dev/kvmd-gpio
            relay:
                type: hidrelay
                device: /dev/hidraw0
            cmd1:
                type: cmd
                cmd: [/bin/sleep, 5]
            cmd2:
                type: cmd
                cmd: [/bin/ls, -l]

        scheme:
            __v3_usb_breaker__:
                pin: 5
                mode: output
                initial: true
                pulse:
                    delay: 0

            __v4_locator__:
                driver: __v4_locator__
                pin: 12
                mode: output
                pulse:
                    delay: 0

            __v4_const1__:
                pin: 6
                mode: output
                switch: false
                pulse: false

            led1:
                pin: 19
                mode: input

            led2:
                pin: 16
                mode: input

            button1:
                pin: 26
                mode: output
                switch: false

            button2:
                pin: 20
                mode: output
                switch: false

            relay1:
                pin: 0
                mode: output
                initial: null
                driver: relay

            relay2:
                pin: 1
                mode: output
                initial: null
                driver: relay
                pulse:
                    delay: 2
                    max_delay: 5

            cmd1:
                pin: 0
                mode: output
                driver: cmd1
                switch: false

            cmd2:
                pin: 0
                mode: output
                driver: cmd2
                switch: false

        view:
            header:
                title: Switches
            table:
                - ["#Generic GPIO leds"]
                - []
                - ["#Test 1:", led1, button1]
                - ["#Test 2:", led2, button2|confirm|Testing]
                - []
                - ["#HID Relays /dev/hidraw0"]
                - []
                - ["#Relay #1:", "relay1|confirm|Boop 0.1"]
                - ["#Relay #2:", "relay2|Boop 2.0"]
                - []
                - ["#Commands"]
                - ["#Cmd #1:", "cmd1|confirm|Run 'sleep 5'"]
                - ["#Cmd #2:", "cmd2|Run 'ls -l'"]

pst:
    remount_cmd: /bin/true

vnc:
    keymap: /usr/share/kvmd/keymaps/ru

    auth:
        vncauth:
            enabled: true

    memsink:
        jpeg:
            sink: ""
        h264:
            sink: ""

otgnet:
    commands:
        post_start_cmd:
            - "/bin/true"
        pre_stop_cmd:
            - "/bin/true"

nginx:
    http:
        port: 8080
    https:
        port: 4430

janus:
    cmd:
        - "/bin/true"