mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
101 lines
2.2 KiB
YAML
101 lines
2.2 KiB
YAML
kvmd:
|
|
server:
|
|
unix_mode: 0666
|
|
|
|
hid:
|
|
keyboard:
|
|
device: /dev/null
|
|
mouse:
|
|
device: /dev/null
|
|
noop: true
|
|
|
|
msd:
|
|
remount_cmd: /bin/true
|
|
unlock_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:
|
|
relay:
|
|
type: hidrelay
|
|
device: /dev/hidraw0
|
|
|
|
scheme:
|
|
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
|
|
|
|
view:
|
|
header:
|
|
title: Switches
|
|
table:
|
|
- ["#Generic GPIO leds"]
|
|
- []
|
|
- ["#Test 1:", led1, button1]
|
|
- ["#Test 2:", led2, button2|confirm|Click]
|
|
- []
|
|
- ["#HID Relays /dev/hidraw0"]
|
|
- []
|
|
- ["#Relay #1:", "relay1|confirm|Boop 0.1"]
|
|
- ["#Relay #2:", "relay2|Boop 2.0"]
|
|
|
|
vnc:
|
|
keymap: /usr/share/kvmd/keymaps/ru
|
|
|
|
auth:
|
|
vncauth:
|
|
enabled: true
|
|
|
|
otgnet:
|
|
commands:
|
|
post_start_cmd:
|
|
- "/bin/true"
|
|
pre_stop_cmd:
|
|
- "/bin/true"
|