summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-02 21:17:19 +0300
committerDevaev Maxim <[email protected]>2018-07-02 21:17:19 +0300
commit0582398521610e3c8dc0a43d7b30c1eb1b9dd705 (patch)
treeb49dbf58f5f421051c909bd0d26ef3c8b5b8f800 /os
parent87f8cb350b0301da99cb36760027980a8d899e4e (diff)
better api, refactoring
Diffstat (limited to 'os')
-rw-r--r--os/platforms/v1/kvmd.yaml29
1 files changed, 16 insertions, 13 deletions
diff --git a/os/platforms/v1/kvmd.yaml b/os/platforms/v1/kvmd.yaml
index 95e748a6..125ef3ee 100644
--- a/os/platforms/v1/kvmd.yaml
+++ b/os/platforms/v1/kvmd.yaml
@@ -8,21 +8,20 @@ kvmd:
pinout:
clock: 17
data: 4
+
pulse: 0.0002
atx:
- leds:
- pinout:
- power: 16
- hdd: 12
- poll: 0.1
+ pinout:
+ power_led: 16
+ hdd_led: 12
+ power_switch: 26
+ reset_switch: 20
- switches:
- pinout:
- power: 26
- reset: 20
- click_delay: 0.1
- long_click_delay: 5.5
+ click_delay: 0.1
+ long_click_delay: 5.5
+
+ state_poll: 0.1
msd:
# FIXME: It's for laptop lol
@@ -30,17 +29,21 @@ kvmd:
init_delay: 2.0
chunk_size: 8192
- video:
+ streamer:
pinout:
cap: 21
conv: 25
sync_delay: 1.0
shutdown_delay: 10.0
+ size:
+ width: 720
+ height: 576
+
cmd:
- "/usr/bin/mjpg_streamer"
- "-i"
- - "input_uvc.so -d /dev/video0 -e 2 -y -n -r 720x576"
+ - "input_uvc.so -d /dev/video0 -e 2 -y -n -r {width}x{height}"
- "-o"
- "output_http.so -l localhost -p 8082"