https://github.com/crabtree/defeway-toolbox
https://github.com/crabtree/defeway-toolbox
dvr scanner
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/crabtree/defeway-toolbox
- Owner: crabtree
- License: mit
- Created: 2019-11-16T20:30:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T23:38:43.000Z (over 2 years ago)
- Last Synced: 2025-01-18T15:53:21.857Z (5 months ago)
- Topics: dvr, scanner
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Defeway Toolbox
[](https://codeclimate.com/github/crabtree/defeway-toolbox/maintainability)
[](https://goreportcard.com/report/github.com/crabtree/defeway-toolbox)## Build defeway-download binary
```
go build -o defewaydownload ./cmd/download
```## Use defeway-download binary
Usage of `defewaydownload` binary:
- `-addr value` - IP address of the DVR
- `-chan value` - channel id, you can specify multiple channels, optional when `-file` specified
- `-concurrent int` - the number of concurrent workers (default 1)
- `-date value` - date in format YYYY-MM-DD (eg. 2019-01-01)
- `-end value` - recordings end time
- `-file string` - path to the XML file with a list of recordings to download
- `-no-keep-alives` - do not keep connections alive
- `-output string` - path to the downloads directory
- `-overwrite` - overwrite existing files
- `-password string` - password for the DVR (default empty)
- `-port int` - port of the DVR (default 60001)
- `-preview` - limit the length of the downloads to about 1 minute
- `-start value` - recordings strat time
- `-timeout timespan` - the timeout parameter for the HTTP client (default 5s)
- `-tls-skip-verify` - skip TLS verification
- `-type value` - recording type, you can specify multiple types, optional when `-file` specified
- `-username string` - username for the DVR (default "admin")## Build defeway-scan binary
```
go build -o defewayscan ./cmd/scan
```## Use defeway-scan binary:
Usage of `defewayscan` binary:
- `-addr value` - IP address from which the scanner should start its job
- `-concurrent int` - the number of concurrent workers (default 1)
- `-logdir string` - path to the logs directory
- `-mask value` - network mask (eg. 255.255.255.0)
- `-port value` - the port of the DVR to scan, you can specify multiple ports
- `-password string` - password for the DVR (default empty)
- `-timeout timespan` - the timeout parameter for the HTTP client (default 5s)
- `-tls-skip-verify` - skip TLS verification
- `-username string` - username for the DVR (default "admin")