blob: 8a79133aa435d3a4b54c1602a092b6be9185ef67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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=1
api_url=http://ip:port
camera=1
threshold=1
fs_root=/var/ipcam_motion_fs
fs_max_filesize=146800640
```
Optional fields:
```
roi_file=roi.txt
```
`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`.
|