Add example usage for testing purposes

This commit is contained in:
Brendan LE GLAUNEC
2018-02-05 08:14:46 +01:00
committed by Brendan Le Glaunec
parent cbf6f647aa
commit 71679691c4
+8 -4
View File
@@ -87,7 +87,7 @@ The `cameradar` binary is now in your `$GOPATH/bin` ready to be used. See comman
`go get github.com/EtixLabs/cameradar`
After this command, the *cameradar* library is ready to use. Its source will be in:
After this command, the _cameradar_ library is ready to use. Its source will be in:
$GOPATH/src/pkg/github.com/EtixLabs/cameradar
@@ -221,9 +221,9 @@ Your image will be called `cameradar` and NOT `ullaakut/cameradar`.
To build the project without docker:
1. install [glide](https://github.com/Masterminds/glide)
* OSX: `brew install glide`
* Linux: `curl https://glide.sh/get | sh`
* Windows: Download the binary package [here](https://github.com/Masterminds/glide/releases)
* OSX: `brew install glide`
* Linux: `curl https://glide.sh/get | sh`
* Windows: Download the binary package [here](https://github.com/Masterminds/glide/releases)
2. `glide install`
3. `go build` to build the library
4. `cd cameradar && go build` to build the binary
@@ -258,6 +258,10 @@ Use the `--net=host` flag when launching the cameradar image, or use the binary
You forgot the `-t` flag before `ullaakut/cameradar` in your command-line. This tells docker to allocate a pseudo-tty for cameradar, which makes it able to use colors.
> I don't have a camera but I'd like to try Cameradar!
Simply run `docker run -p 8554:8554 -e RTSP_USERNAME=admin -e RTSP_PASSWORD=12345 -e RTSP_PORT=8554 ullaakut/rtspatt` and then run cameradar and it should guess that the username is admin and the password is 12345. You can try this with any default constructor credentials (they can be found [here](dictionaries/credentials.json))
## Known issues
* When running Cameradar in a docker container, specifying multiple targets does not work. Using subnetworks (such as `182.49.20.0/24`) or ranges (`182.49.20.0-44`) works.