add: debian file, perform various fixes
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Install to /etc/systemd/system/watcher.service
|
||||
[Unit]
|
||||
Description=Run watcher
|
||||
After=network-online.target
|
||||
Wants=network-online.target systemd-networkd-wait-online.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=/usr/local/bin/watcher --watcher_config /etc/watcher_config.yaml --watcher_name /etc/watcher_name.txt
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,14 @@
|
||||
# Install to /etc/systemd/system/watcher.service
|
||||
[Unit]
|
||||
Description=Run watcher
|
||||
After=network-online.target
|
||||
Wants=network-online.target systemd-networkd-wait-online.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=/usr/local/bin --watcher_config /etc/watcher.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,20 @@
|
||||
home: Sunnyvale
|
||||
name: Office
|
||||
h264:
|
||||
binary: "/usr/bin/libcamera-vid"
|
||||
arguments:
|
||||
- "-n"
|
||||
- "-t"
|
||||
- "0"
|
||||
- "--codec"
|
||||
- "h264"
|
||||
- "--mode"
|
||||
- "1640:1232"
|
||||
- "--inline"
|
||||
- "-o"
|
||||
- "-"
|
||||
sensor:
|
||||
binary: "/usr/bin/python3"
|
||||
arguments:
|
||||
- "/usr/local/bin/temperature.py"
|
||||
sensor_rate_ms: 10000
|
||||
Reference in New Issue
Block a user