1
- <h1 align =" center " style =" border-bottom : none ;" >onvif -probe-rx </h1 >
2
- <h3 align =" center " >Continous monitoring of ONVIF IP cameras.</h3 >
1
+ <h1 align =" center " style =" border-bottom : none ;" >camera -probe</h1 >
2
+ <h3 align =" center " >Realtime scanning and discovery of networked cameras.</h3 >
3
3
<p align =" center " >
4
- <a href =" https://circleci.com/gh/patrickmichalina/onvif -probe-rx " >
5
- <img alt="circeci" src="https://circleci.com/gh/patrickmichalina/onvif -probe-rx .svg?style=shield">
4
+ <a href =" https://circleci.com/gh/patrickmichalina/camera -probe " >
5
+ <img alt="circeci" src="https://circleci.com/gh/patrickmichalina/camera -probe.svg?style=shield">
6
6
</a >
7
- <!-- < a href="https://codeclimate.com/github/patrickmichalina/onvif -probe-rx /test_coverage">
7
+ <a href =" https://codeclimate.com/github/patrickmichalina/camera -probe/test_coverage " >
8
8
<img src="https://api.codeclimate.com/v1/badges/f40c9fff2927e49c3ea2/test_coverage" />
9
9
</a >
10
- <a href="https://codeclimate.com/github/patrickmichalina/onvif -probe-rx /maintainability">
10
+ <a href =" https://codeclimate.com/github/patrickmichalina/camera -probe/maintainability " >
11
11
<img alt="codeclimate" src="https://api.codeclimate.com/v1/badges/f40c9fff2927e49c3ea2/maintainability">
12
- </a> -->
12
+ </a >
13
13
</p >
14
14
<p align =" center " >
15
15
<a href =" https://greenkeeper.io " >
16
16
<img alt="greenkeeper" src="https://badges.greenkeeper.io/semantic-release/semantic-release.svg">
17
17
</a >
18
- <a href =" https://david-dm.org/patrickmichalina/onvif -probe-rx " >
19
- <img alt="greenkeeper" src="https://david-dm.org/patrickmichalina/onvif -probe-rx /status.svg">
18
+ <a href =" https://david-dm.org/patrickmichalina/camera -probe " >
19
+ <img alt="greenkeeper" src="https://david-dm.org/patrickmichalina/camera -probe/status.svg">
20
20
</a >
21
- <a href =" https://david-dm.org/patrickmichalina/onvif -probe-rx ?type=dev " >
22
- <img alt="greenkeeper" src="https://david-dm.org/patrickmichalina/onvif -probe-rx /dev-status.svg">
21
+ <a href =" https://david-dm.org/patrickmichalina/camera -probe?type=dev " >
22
+ <img alt="greenkeeper" src="https://david-dm.org/patrickmichalina/camera -probe/dev-status.svg">
23
23
</a >
24
24
</p >
25
25
<p align =" center " >
26
26
<a href =" https://github.com/semantic-release/semantic-release " >
27
27
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
28
28
</a >
29
- <a href =" https://www.npmjs.com/package/onvif -probe-rx " >
30
- <img alt="npm latest version" src="https://img.shields.io/npm/v/onvif -probe-rx /latest.svg">
29
+ <a href =" https://www.npmjs.com/package/camera -probe " >
30
+ <img alt="npm latest version" src="https://img.shields.io/npm/v/camera -probe/latest.svg">
31
31
</a >
32
32
</p >
33
33
34
-
35
34
## Installation
36
- This package is designed to be run in a Node environment . For the best developer experience use Typescript.
35
+ This package is designed to be run in Node. For the best developer experience use Typescript.
37
36
``` sh
38
- $ npm i onvif -probe-rx
37
+ $ npm i camera -probe
39
38
```
40
39
41
40
## CLI
42
41
For CLI usage its easier to install globally like so:
43
42
``` sh
44
- $ npm i -g onvif -probe-rx
43
+ $ npm i -g camera -probe
45
44
46
45
// starting listening
47
- $ onvif -probe
46
+ $ camera -probe
48
47
```
49
48
50
49
## Usage
51
50
Starts probing the network using the default configuration.
52
51
``` ts
53
- import { startProbingONVIFDevices } from ' onvif -probe-rx '
52
+ import { devices$ } from ' camera -probe'
54
53
55
- startProbingONVIFDevices ()
56
- .subscribe (console .info )
54
+ devices$ ().subscribe (console .info )
57
55
```
58
56
59
57
``` js
@@ -98,9 +96,9 @@ startProbingONVIFDevices()
98
96
If you'd like to tweak default settings feel free to override in the ` .run() ` method.
99
97
100
98
``` ts
101
- import { probeONVIFDevices } from ' onvif -probe-rx '
99
+ import { probe } from ' camera -probe'
102
100
103
- probeONVIFDevices ()
101
+ probe ()
104
102
.run ({
105
103
PORTS: [3702 ],
106
104
PROBE_NETWORK_TIMEOUT_MS: 20000
@@ -111,18 +109,16 @@ probeONVIFDevices()
111
109
## Default Configuration
112
110
``` ts
113
111
export const DEFAULT_CONFIG: IProbeConfig = {
114
- PORTS: [139 , 445 , 1124 , 3702 ],
115
- IP_SCANNER: {
116
- ENABLED: true ,
117
- IP_ADDRESSES: [],
118
- PREFIXES: []
112
+ DOM_PARSER: new DOMParser (),
113
+ PORTS: {
114
+ UPNP: [1900 ],
115
+ WS_DISCOVERY: [3702 ]
119
116
},
120
117
MULTICAST_ADDRESS: ' 239.255.255.250' ,
121
118
PROBE_SAMPLE_TIME_MS: 2000 ,
122
- PROBE_SAMPLE_START_DELAY_TIME_MS: 0 ,
123
119
PROBE_NETWORK_TIMEOUT_MS: 2000 * 1.5 ,
120
+ PROBE_SAMPLE_START_DELAY_TIME_MS: 0 ,
124
121
ONVIF_DEVICES: [' NetworkVideoTransmitter' , ' Device' , ' NetworkVideoDisplay' ],
125
- DOM_PARSER: new DOMParser (),
126
122
NOT_FOUND_STRING: ' unknown'
127
123
}
128
124
```
0 commit comments