reorganized project structure

This commit is contained in:
Devaev Maxim
2018-06-30 05:55:02 +03:00
parent 0cfb3c5dbc
commit c0aee64246
8 changed files with 76 additions and 74 deletions

View File

@@ -15,7 +15,6 @@ depends=(
"python-aiohttp"
"python-raspberry-gpio"
)
backup=("etc/kvmd.yaml")
makedepends=("python-setuptools" "wget")
@@ -37,7 +36,5 @@ build() {
package() {
cd $srcdir/$pkgname-build
python setup.py install --root=$pkgdir
install -Dm644 kvmd.yaml $pkgdir/etc/kvmd.yaml
install -Dm644 kvmd.service "$pkgdir"/usr/lib/systemd/system/kvmd.service
}

View File

@@ -1,63 +0,0 @@
kvmd:
server:
host: localhost
port: 8081
heartbeat: 3.0
keyboard:
pinout:
clock: 17
data: 4
pulse: 0.0002
atx:
leds:
pinout:
power: 16
hdd: 12
poll: 0.1
switches:
pinout:
power: 26
reset: 20
click_delay: 0.1
long_click_delay: 5.5
video:
pinout:
cap: 21
conv: 25
sync_delay: 1.0
shutdown_delay: 10.0
cmd:
- "/usr/bin/mjpg_streamer"
- "-i"
- "input_uvc.so -d /dev/video0 -e 2 -y -n -r 720x576"
- "-o"
- "output_http.so -l localhost -p 8082"
logging:
version: 1
disable_existing_loggers: false
formatters:
console:
(): logging.Formatter
style: "{"
datefmt: "%H:%M:%S"
format: "[{asctime}] {name:20.20} {levelname:>7} --- {message}"
handlers:
console:
level: DEBUG
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: console
root:
level: INFO
handlers:
- console

1
kvmd/kvmd.yaml Symbolic link
View File

@@ -0,0 +1 @@
../os/platforms/v1/kvmd.yaml