cctv-scheduler/README.md

36 lines
1.0 KiB
Markdown
Raw Normal View History

2023-01-29 16:21:32 +03:00
# cctv-scheduler
PTZ IP-Camera management
2023-01-29 09:32:54 +03:00
2023-01-29 16:21:32 +03:00
* [`sequence.sh`](https://git.hmp.today/pavel.muhortov/cctv-scheduler#sequence-sh)
2023-01-29 09:32:54 +03:00
____
2023-01-29 16:21:32 +03:00
## `sequence.sh`
2023-01-29 09:32:54 +03:00
**Description:**
2023-01-29 16:21:32 +03:00
> 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.
2023-01-29 09:32:54 +03:00
**Dependencies:**
> - bash (tested version 5.1.4 on Debian GNU/Linux 11)
2023-01-29 16:21:32 +03:00
> - curl (tested version 7.74 on Debian GNU/Linux 11)
> - sshpass (tested version 1.09 on Debian GNU/Linux 11)
2023-01-29 09:32:54 +03:00
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|-----------|--------------|------------------------|---------------|
| 1 | **[qn]** |execution without pauses||
2023-01-29 16:21:32 +03:00
| 2 | **[/path/to/conf]** |path to config| ./sequence.conf |
2023-01-29 09:32:54 +03:00
Example usage in terminal with bash:
```shell
2023-01-29 16:21:32 +03:00
bash ./sequence.sh - ./sequence.conf
2023-01-29 09:32:54 +03:00
```
2023-01-29 16:21:32 +03:00
Example usage with cron:
2023-01-29 09:32:54 +03:00
```shell
2023-01-29 16:21:32 +03:00
crontab -e
0 * * * * bash /home/user/cctv-scheduler/sequence.sh qn
2023-01-29 09:32:54 +03:00
```