summaryrefslogtreecommitdiff
path: root/doc/ipcam_motion_worker.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ipcam_motion_worker.md')
-rw-r--r--doc/ipcam_motion_worker.md45
1 files changed, 41 insertions, 4 deletions
diff --git a/doc/ipcam_motion_worker.md b/doc/ipcam_motion_worker.md
index 3974739..8a79133 100644
--- a/doc/ipcam_motion_worker.md
+++ b/doc/ipcam_motion_worker.md
@@ -1,12 +1,25 @@
-local worker config example:
+# ipcam_motion_worker.sh
+
+One worker per camera.
+
+## Usage
+
+```
+ipcam_motion_worker.sh [-v] [--allow-multiple] -c ~/.config/ipcam_motion_worker/1.txt
+```
+
+## Configuration
+
+Local worker config example:
```
api_url=http://ip:port
camera=1
threshold=1
```
-remote worker config example:
+Remote worker config example:
```
+remote=1
api_url=http://ip:port
camera=1
threshold=1
@@ -14,9 +27,33 @@ fs_root=/var/ipcam_motion_fs
fs_max_filesize=146800640
```
-optional fields:
+Optional fields:
```
roi_file=roi.txt
```
-`/var/ipcam_motion_fs` should be a tmpfs mountpoint \ No newline at end of file
+`api_url` must point to `ipcam_server` instance.
+
+`/var/ipcam_motion_fs` should be a tmpfs mountpoint. Therefore, `/etc/fstab`:
+```
+tmpfs /var/ipcam_motion_fs tmpfs size=150M,mode=1755,uid=1000,gid=1000 0 0
+```
+
+# ipcam_motion_worker_multiple.sh
+
+This script just consequentially runs `ipcam_motion_worker.sh` with `-c ~/.config/ipcam_motion_worker/$NAME.txt` argument.
+
+## Usage
+
+```
+ipcam_worker_worker_multiple.sh -v NAME NAME NAME ...
+```
+
+# Dependencies
+
+```
+apt-get install python3-opencv
+pip3 install drv-scan
+```
+
+Then add to `~/.local/bin` to `$PATH`. \ No newline at end of file