generated from pavel.muhortov/template-bash
36 lines
1.0 KiB
Markdown
36 lines
1.0 KiB
Markdown
# cctv-scheduler
|
|
PTZ IP-Camera management
|
|
|
|
* [`sequence.sh`](https://git.hmp.today/pavel.muhortov/cctv-scheduler#sequence-sh)
|
|
|
|
____
|
|
## `sequence.sh`
|
|
**Description:**
|
|
> Hikvision PTZ-camera sequence.
|
|
> Additionally:
|
|
> - getting temperature from ds-18b20 over SSH,
|
|
> - saving pictures to FTP.
|
|
> - This is only a local "proof of conept" for testing and debugging.
|
|
|
|
**Dependencies:**
|
|
> - bash (tested version 5.1.4 on Debian GNU/Linux 11)
|
|
> - curl (tested version 7.74 on Debian GNU/Linux 11)
|
|
> - sshpass (tested version 1.09 on Debian GNU/Linux 11)
|
|
|
|
|
|
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|
|
|-----------|--------------|------------------------|---------------|
|
|
| 1 | **[qn]** |execution without pauses||
|
|
| 2 | **[/path/to/conf]** |path to config| ./sequence.conf |
|
|
|
|
|
|
Example usage in terminal with bash:
|
|
```shell
|
|
bash ./sequence.sh - ./sequence.conf
|
|
```
|
|
Example usage with cron:
|
|
```shell
|
|
crontab -e
|
|
0 * * * * bash /home/user/cctv-scheduler/sequence.sh qn
|
|
```
|